crochet - why does it (try to) change files in /usr/src?

Ian Lepore ian at FreeBSD.org
Thu May 1 23:45:13 UTC 2014


On Thu, 2014-05-01 at 23:06 +0200, Torfinn Ingolfsen wrote:
> On Thu, 1 May 2014 09:45:58 -0700
> Tim Kientzle <tim at kientzle.com> wrote:
> 
> > 
> > On Apr 30, 2014, at 3:56 PM, Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no> wrote:
> > 
> > > ===> lib/libexpat (cleandir)
> > > rm -f bsdxml.h bsdxml_external.h libbsdxml.3.gz libbsdxml.3.cat.gz
> > > rm: bsdxml.h: Permission denied
> > > rm: bsdxml_external.h: Permission denied
> > > *** Error code 1
> > > 
> > > Stop.
> > > make[4]: stopped in /usr/src/lib/libexpat
> > > (I wasn't running crochet as root, and I suspect it is the reason for failure)
> > > 
> > > Question 1: it look to me like the script is trying to remove stuff (files) from /usr/src. Why is it doing that?
> > 
> > It’s not.
> > 
> > The ‘buildworld’ target is cleaning the appropriate /usr/obj directories in case there was a previous build there.
> 
> Ok. Given that the appropriate obj directories (in this case) is in the ./work sub directory of
> # pwd
> /usr/home/tingo/work/crochet-freebsd
> 
> should buildworld really try to touch /usr/obj at all?
> 

It's not, if the obj dir is inside ./work then surely the script has set
MKOBJDIRPREFIX to reflect that, and that's where it would be doing the
delete.

Is it possible you had run the script previously as root, and this time
you were not root?  If so, the object files from the previous run are
owned by root, and you don't have permission to delete them.

-- Ian




More information about the freebsd-arm mailing list