Sendmail patch; brings up a questions about buildworld
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu Jun 15 00:34:59 UTC 2006
On Wed, 14 Jun 2006 19:15:14 -0500, Jonathan Horne <jhorne at 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 at 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 at 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
More information about the freebsd-questions
mailing list