Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2006 03:36:18 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jonathan Horne <jhorne@dfwlp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sendmail patch; brings up a questions about buildworld
Message-ID:  <86fyi7jlvh.fsf@gothmog.pc>
In-Reply-To: <200606141915.14613.jhorne@dfwlp.com> (Jonathan Horne's message of "Wed, 14 Jun 2006 19:15:14 -0500")
References:  <200606141915.14613.jhorne@dfwlp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Jun 2006 19:15:14 -0500, Jonathan Horne <jhorne@dfwlp.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fyi7jlvh.fsf>