Cleaning obsolete files after make installworld

Luís Fernando Schultz Xavier da Silveira schultz at ime.usp.br
Sat Dec 12 22:40:44 UTC 2015


Hi,

Actually, I do not think what you said is quite right.
The ObsoleteFiles.inc file seems to include only files that have been
made obsolete because of a package upgrade.

My problem is different. Suppose you just installed FreeBSD.
Now you decide you do not want stack smashing protection or the sendmail
program in the system, so you put
  WITHOUT_SENDMAIL =
  WITHOUT_SSP =
in /etc/src.conf.
When you recompile the system and issue `make installworld`, you expect
the sendmail executable and the file /usr/lib/libssp_nonshared.a to be
gone, but they do in fact remain in the system causing several problems.

What I wish to know is what is the standard procedure for removing those
files. It not wise to leave old files lingering in the system.

Thanks,
Luís Fernando

On Sat, Dec 05, 2015 at 10:40:51PM +0200, Anton Sayetsky wrote:
> Standard procedure is filing a PR, because it's a BUG. Someone adds
> WITHOUT_XXX option and forgets to update ObsoleteFiles.inc.
> 
> 2015-12-05 22:11 GMT+02:00 Luís Fernando Schultz Xavier da Silveira
> <schultz at ime.usp.br>:
> > Hi,
> >
> > I have edited /etc/src.conf to remove software which is not useful
> > to me. After compiling and installing the world, I have launched the
> > check-old, delete-old and delete-old-libs targets of /usr/src/Makefile.
> >
> > However, several old files still remain in the system. For example,
> > I have included WITHOUT_INETD in /etc/src.conf, but after peforming the
> > above procedure, the file /usr/sbin/inetd was still there, with a
> > modification time that predates the installation of the system.
> >
> > What is the standard procedure for removing these stale files?
> > I have used the -mtime option of find to locate and remove them, but
> > I doubt this is the recommended approach.
> >
> > Thanks.
> >
> >
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 


More information about the freebsd-questions mailing list