some options in src.conf has no effect (RELENG_8)

Roland Smith rsmith at xs4all.nl
Tue Dec 8 22:22:55 UTC 2009


On Tue, Dec 08, 2009 at 10:26:13PM +0200, nickolasbug at gmail.com wrote:
> 
> And there are options that have no effect:
> WITHOUT_CTM
> WITHOUT_CVS
> WITHOUT_FREEBSD_UPDATE
> WITHOUT_IPFW
> WITHOUT_PORTSNAP
> WITHOUT_RCS
> WITHOUT_ROUTED

I'm using WITHOUT_CTM and WITHOUT_CVS. When building the new system, cvs and
ctm* are _not_ built. But the old executables are not deleted; look at their
dates. According to src.conf(5):

	"The only purpose of src.conf is to control the compilation of
	 the FreeBSD source code..." 

So the fact that old executables and manual pages are not deleted is not
strictly a bug.

> I've done "make delete-old" and "make delete-old-libs" during upgrade.
> 
> Can somebody comment this?

Using "make delete-old" includes /usr/src/ObsoleteFiles.inc into the build
Makefile. This file contains the names of files that have been made obsolete
by newer FreeBSD versions. It does not have anything to do with things that do
not have to be installed because they are excluded by src.conf.

You could write an extension to the Makefile that build e.g. a
/usr/src/IgnoreFiles.inc based on the contents of /etc/src.conf. But it is
probable easier to run find(1) in /usr looking for files older than your
buildworld. 

E.g., I've rebuilt world on December 3rd. Looking for different binaries in
/usb/bin with the command 'find /usr/bin -type f -and -not -mtime 6 -ls'. If
you are sure this is all junk, replace -ls with -delete.

If you screw something up, re-run installworld. :-)

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20091208/1dbfaee1/attachment.pgp


More information about the freebsd-stable mailing list