Subject: Re: misc/151: "make distribution" fails if mtree exits with error
To: Peter Galbavy <peter@wonderland.org>
From: Chris G. Demetriou <cgd@postgres.Berkeley.EDU>
List: netbsd-bugs
Date: 03/07/1994 01:28:55
> > > If I usr "make distribution" in src/etc, and mtree exists because something
> > > was corrected, then the make fails.
> > 
> > this is not a bug.  there's no reason that mtree should have to
> > correct any of the permissions on the directories.
> 
> OK, let me change this one to a "change-request". What I have done
> at times is when the BSD.*.dist files are updated, I will cd to
> /usr/src/etc and do "make distrib-dirs" mainly 'cause I can never
> remember all the args to mtree myself.

i still don't buy it.  if you want to do that, create a little (local)
script that'll do it for you.  or create a (local) target,
that does the mtree's for you, and ignores the result codes.

it's *not* a problem with the 'distrib-dirs' target, *or* with
mtree in general.

> > If it has to change the permissions on them, then something else
> > happened wrong someplace -- e.g. in a previous 'make distribution'
> > into that DESTDIR, something clobbered the correct permissions
> > on the directory in question.
> 
> Yeah, like someone has changed their idea of the contents of the mtree
> files, and I want to update my *main* tree - like "DESTDIR=/" :-(

like i said: write a little script to do it.


actually, you probably *shouldn't* be using the mtree default files
to keep your local tree 'checked', but that's another story...
(they're only meant as templates, not for 'real life' use...)

also, if you're using them to check your own tree, you prolly want
to kill the -d.  before you do -u w/o -d, though, i'd check the
output of mtree...



chris

------------------------------------------------------------------------------