cvs commit: src ObsoleteFiles.inc

Jeremie Le Hen jeremie at le-hen.org
Sun Jul 24 10:28:53 GMT 2005


Hi Simon,

> 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).

Just for information, did you make benchmarks of installworld with and
without this feature ?  I'm afraid this could lead to a serious penalty
in term of time for slower machine (I personaly use a PII 266).

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >


More information about the cvs-src mailing list