Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2014 19:56:41 -0600
From:      Tom Everett <tom@khubla.com>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: crochet - why does it (try to) change files in /usr/src?
Message-ID:  <CAB3ij4BCUTTzJ0Vzg-8JsrhTgdW7R227aof6ZJAue0MU6bt8Bg@mail.gmail.com>
In-Reply-To: <20140501005611.3401d271adf4db31cf8e9246@getmail.no>
References:  <20140501005611.3401d271adf4db31cf8e9246@getmail.no>

next in thread | previous in thread | raw e-mail | index | archive | help
The one place that comes to mind where crochet changes the source tree is
that in some cases, such as SOEKRIS, it copies a custom kernel config onto
the source tree.



On Wed, Apr 30, 2014 at 4:56 PM, Torfinn Ingolfsen <
torfinn.ingolfsen@getmail.no> wrote:

> I'm (finally) trying crochet today. Ultimate goal is to try and build for
> Cubieboard, but I'm starting with something easy first - RaspberryPi.
>
> First I had to get all the pieces (the script does a very nice job of
> explaining what what is missing. One possible refinement for a future
> version would be to list all missing pieces, not just the first one).
> Next I discovered that my world build failed. Lookiing at the log file
> work/_.buildworld.armv6.log I can see this:
> ===> 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?
>
> Question 2: why does crochet need root?
> - all prerequisites (that needs root) are already installed
> - the script is installed in ~/work/crochet-freebsd and all building takes
> place there
> so why does it need root?
>
> Details:
> build machine runs FreeBSD 10.0-release:
> $ uname -a
> FreeBSD kg-v7.kg4.no 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu
> Jan 16 22:34:59 UTC 2014
>      root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>
> build details:
> $ sh crochet.sh -b RaspberryPi
> Starting at Thu May 1 00:18:36 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 Thu May 1 00:18:36 CEST 2014
>     (Logging to
> /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log)
> Failed to build FreeBSD armv6 world.
> Log in /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log
>
> Stop.
> make[2]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
> --
> Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB3ij4BCUTTzJ0Vzg-8JsrhTgdW7R227aof6ZJAue0MU6bt8Bg>