cvs commit: src ObsoleteFiles.inc

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sun Jul 24 10:07:22 GMT 2005


On 24.07.2005, at 03:16, Maxime Henrion wrote:
> For what it's worth, I'd love to see a mechanism similar to the
> following:
>
> - We ensure every file installed when doing an installworld gets
>   installed through bsd.*.mk.  I thought this was already the case
>   but ru@ told me it's not.
>
> - We can then add some kind of special make target, for instance
>   build-files-list that generates a file with all the files going
>   to be installed by installworld.
>
> - At installworld time we install this special file somewhere.

I looked into this when I wanted to do this for DragonFly (but I got 
sidetracked). There are few methods in the tree (at least in DragonFly, 
I don't think it's completely different in FreeBSD) by which files get 
installed:
- mtree
- ${INSTALL}
- ln
- zic (needs more work)

there might be some other things as well, but that's the major part by 
which about 98% of all files are being covered.

This means, after converting all occurences of `ln' to ${LN} (done in 
DragonFly, tho there are some things you can overlook) and `mtree' to 
${MTREE}, ${INSTALL}, ${LN} and ${MTREE} can be replaced by wrapper 
scripts which parse the parameters and record the created files into 
some kind of log.

Storing these logs in, let's say /var/db/basefiles, let's you find out 
files which were removed just by looking if a file doesn't appear in 
the last log anymore.

I have to agree that wrapping the commands is a bit hackish, but it 
basically works. Oh, of course this system also needs a static list of 
files that were removed previously, so that it can bootstrap (it can 
only catch files that were removed since the last time you ran 
install-with-file-logging).

cheers
   simon

-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050724/53656462/PGP.bin


More information about the cvs-src mailing list