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

Torfinn Ingolfsen torfinn.ingolfsen at getmail.no
Thu May 1 21:07:00 UTC 2014


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?

> 
> > Question 2: why does crochet need root?
> 
> As for requiring root:

This question has resulted in an interesting discussion; it seems like this might change in the future (given time and manpower).

Thanks to everyone for the answers.
-- 
Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>


More information about the freebsd-arm mailing list