From owner-freebsd-questions@FreeBSD.ORG Thu Jun 15 00:34:59 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 3FBFE16A41A for ; Thu, 15 Jun 2006 00:34:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7600843D45 for ; Thu, 15 Jun 2006 00:34:55 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k5F0Y2Hj011626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Jun 2006 03:34:13 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k5F0aIlh014451; Thu, 15 Jun 2006 03:36:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k5F0aIHJ014450; Thu, 15 Jun 2006 03:36:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) To: Jonathan Horne References: <200606141915.14613.jhorne@dfwlp.com> From: Giorgos Keramidas Date: Thu, 15 Jun 2006 03:36:18 +0300 In-Reply-To: <200606141915.14613.jhorne@dfwlp.com> (Jonathan Horne's message of "Wed, 14 Jun 2006 19:15:14 -0500") Message-ID: <86fyi7jlvh.fsf@gothmog.pc> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.133, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.27, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail patch; brings up a questions about buildworld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 00:34:59 -0000 On Wed, 14 Jun 2006 19:15:14 -0500, Jonathan Horne wrote: > with the sendmail patch that came out today, i ask this: > > when in installed this machine as 6.1-RELEASE, i did a buildworld and > buildkernel and updated to 6.1-STABLE. > > question: if i choose Patch Solution 1 from > http://security.freebsd.org/advisories/FreeBSD-SA-06:17.sendmail.asc, do i > need to build a new kernel to go with this, or can i just build the world and > be done with it? You don't need to rebuild everything for Sendmail. If you still have your /usr/obj tree around, something like the following should build all the Sendmail parts in order: % root@gothmog:/root# cat -n ~build/rebuild-sendmail.sh % 1 #!/bin/sh % 2 % 3 DIRS="" % 4 DIRS="${DIRS} ./lib/libmilter" % 5 DIRS="${DIRS} ./lib/libsm" % 6 DIRS="${DIRS} ./lib/libsmdb" % 7 DIRS="${DIRS} ./lib/libsmutil" % 8 DIRS="${DIRS} ./libexec/mail.local" % 9 DIRS="${DIRS} ./libexec/smrsh" % 10 DIRS="${DIRS} ./bin/rmail" % 11 DIRS="${DIRS} ./usr.bin/vacation" % 12 DIRS="${DIRS} ./usr.sbin/editmap" % 13 DIRS="${DIRS} ./usr.sbin/mailstats" % 14 DIRS="${DIRS} ./usr.sbin/makemap" % 15 DIRS="${DIRS} ./usr.sbin/praliases" % 16 DIRS="${DIRS} ./usr.sbin/sendmail" % 17 % 18 export MAKEOBJDIRPREFIX=/home/build/obj % 19 % 20 for dname in ${DIRS} ; do % 21 ( cd "${dname}" && make clean && make && make install ) % 22 if test $? -ne 0 ; then % 23 echo "" % 24 echo ">>> FAILED while rebuilding ${dname}" % 25 exit 1 % 26 fi % 27 done % root@gothmog:/root# Note that you may have to tweak the paths of this script (especially the `MAKEOBJDIRPREFIX' part) and run it from `/usr/src' instead of my local `/home/build/src' tree. - Giorgos