>>>>> "M" == M Warner Losh <[EMAIL PROTECTED]> writes:

    M> I think that we need a mtree.obsolete that goes through and
    M> deletes these sorts of things as part of installworld/upgrade
    M> scripts.

No solution like this will ever work for everyone, or in every
situation. For example, you generally want to nuke stale bits from
/usr/include, but doing the same in /usr/lib can lead to Interesting
Times. And you never know if I might be working on replacements for
obsoleted bits of the OS that I'm installing into their old
location. For example: adduser. Current would remove it in your
scenario, even though I've re-implemented it in it's old location in my
build/install tree. Yes, I could modify mtree.obsolete under /usr/src,
but that seems counter-productive for a -current
environment. (Thankfully, I don't own a bike, so I don't need to worry
about the colour of it's shed.)

One compromise is to have the 'install' target touch a timestamp file
before setting off to overwrite things. Then you can use 'find <mumble>
! -newer ...' to search for and display possibly stale files. (A
/usr/sbin/findstale script that wraps this might be a useful adjunct to
mergemaster.) I use /bin/cat as a timestamp file for rough analysis
purposes.

--lyndon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to