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

Torfinn Ingolfsen torfinn.ingolfsen at getmail.no
Sat May 3 12:15:28 UTC 2014


On Thu, 01 May 2014 17:45:08 -0600
Ian Lepore <ian at FreeBSD.org> wrote:

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

Agreed - it *should* do the delete there.



> Is it possible you had run the script previously as root, and this time
> you were not root?

Possible, but not likely. To be sure, I renamed the work directory and tried one more time:

$ mv work work_old
$ sh crochet.sh -b RaspberryPi
Starting at Sat May 3 12:24:09 CEST 2014
Board: RaspberryPi
Source version is: r265148
Building FreeBSD version: 10.0
Image name is:
    /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img
Building FreeBSD version: 10.0
Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src
Found suitable FreeBSD source tree in:
    /usr/src
Found FreeBSD xdev tools for armv6
Found U-Boot sources in:
    /usr/home/tingo/work/crochet-freebsd/u-boot-rpi
Building FreeBSD armv6 world at Sat May 3 12:24:09 CEST 2014
    (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log)
Building FreeBSD armv6-RPI-B kernel at Sat May 3 13:54:03 CEST 2014
    (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildkernel.armv6-RPI-B.log)
Building FreeBSD armv6-RPI-B ubldr at Sat May 3 14:02:04 CEST 2014
    (Logging to /usr/home/tingo/work/crochet-freebsd/work/ubldr-armv6-RPI-B/_.ubldr.armv6-RPI-B.build.log)
eval: cannot create /usr/home/tingo/work/crochet-freebsd/u-boot-rpi/_.uboot.to.be.configured: Permission denied

So something is still amiss here.
I'll checkout the FreeBSD source and try again.
-- 
Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>


More information about the freebsd-arm mailing list