From owner-freebsd-questions@FreeBSD.ORG Fri Nov 17 02:48:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBA0116A407 for ; Fri, 17 Nov 2006 02:48:48 +0000 (UTC) (envelope-from d1945@sbcglobal.net) Received: from smtp101.sbc.mail.mud.yahoo.com (smtp101.sbc.mail.mud.yahoo.com [68.142.198.200]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D82343D58 for ; Fri, 17 Nov 2006 02:48:48 +0000 (GMT) (envelope-from d1945@sbcglobal.net) Received: (qmail 72126 invoked from network); 17 Nov 2006 02:48:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Received:Date:From:To:Subject:Message-ID:Reply-To:Mail-Followup-To:Mime-Version:Content-Type:Content-Disposition:User-Agent; b=Kpwa1ecd/bklQ1wjLtbSlf10ajBQe+gDGWXZDhQLEEkmMbBZmi5vrwVKLQMb1OvVIHSHdfLYDUK4ZKBw/G4Pf4Sf8jRca73lwjQQMjwTr1hsCouqHEUUNU17ue7nb9h+gXoz2ci9eQ+HpirJBfhOE3F91eWHv7ccH1JbHmSpz50= ; Received: from unknown (HELO home) (d1945@sbcglobal.net@69.104.191.121 with login) by smtp101.sbc.mail.mud.yahoo.com with SMTP; 17 Nov 2006 02:48:47 -0000 X-YMail-OSG: gKRFiZoVM1kHEZwHnT2y6KWhmnc5dZHOciMcR.qT_EjZ_Shd0rFMl4qVnElbklmyMszAF9LmVCZ2tbqQOfRTp_Ttzun3W6f_ZLAJ5I4H5HtESsWw3rwq0JDfH.hmw0UcpjLC7gYi8oDq5VekcPZekAKmLPtO8je0rcU- Received: by home (sSMTP sendmail emulation); Thu, 16 Nov 2006 18:48:46 -0800 Date: Thu, 16 Nov 2006 18:48:46 -0800 From: George Allan To: freebsd-questions@freebsd.org Message-ID: <20061117024846.GA892@home> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Tracking for Multiple Machines X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 02:48:48 -0000 The section in the Handbook presents a solution for a scenario in which all machines in a build set are more less identical, or sufficiently generic enough that each machine's make.conf is the same, the exception being the build machine's own make.conf (which can specify that multiple kernels are built). Sounds reasonable, but I imagine a more likely (or at least common) scenario is one in which there's a variety of hardware and functions, and each system requires a customized make.conf, in addition to a custom kernel. With respect to the approach presented below, which of the following is most true: (a) It will work; (b) It won't work; (c) It might work, but I'd do it differently; (d) A build machine is a dumb idea; or (e) My name's not Dave you insensitive clod. ----------------------------------------------------------- #!/bin/sh # # Rudimentary build script. # /etc/make.conf.[hostname] sets KERNCONF BUILD_SET="host1 host2 host3 host4 host5 host6 host7 host8 host9 host10" echo "This is really going to take some time, Dave." echo "Maybe you want to come back tomorrow?" for MACHINE in ${BUILD_SET} ; do MAKECONF="/etc/make.conf.${MACHINE}" BUILD_DIR="/usr/obj/${MACHINE}" WORLD_LOG="/var/log/buildworld.${MACHINE}.log" KERNEL_LOG="/var/log/buildkernel.${MACHINE}.log" echo "Building world for ${MACHINE}." env MAKEOBJDIRPREFIX=${BUILD_DIR} __MAKE_CONF=${MAKECONF} \ make buildworld -j 4 | tee ${WORLD_LOG} echo "Building kernel for ${MACHINE}." env MAKEOBJDIRPREFIX=${BUILD_DIR} __MAKE_CONF=${MAKECONF} \ make buildkernel -j 4 | tee ${KERNEL_LOG} done ----------------------------------------------------------- Comments, questions and complaints all welcomed. Thanks.