Date: Thu, 1 May 2014 11:29:24 -0600 From: Warner Losh <imp@bsdimp.com> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: freebsd-arm@freebsd.org Subject: Re: crochet - why does it (try to) change files in /usr/src? Message-ID: <D8FBB5CB-8D4C-4DB0-A06D-1F01F2825DD1@bsdimp.com> In-Reply-To: <536283D7.8070009@freebsd.org> References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> <C091DF3B-A989-4C6E-AC74-181214BC4253@kientzle.com> <536283D7.8070009@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On May 1, 2014, at 11:26 AM, Nathan Whitehorn <nwhitehorn@freebsd.org> wrote: > > On 05/01/14 09:45, Tim Kientzle wrote: >> On Apr 30, 2014, at 3:56 PM, Torfinn Ingolfsen <torfinn.ingolfsen@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. >> >>> Question 2: why does crochet need root? >> As for requiring root: >> >> * In theory, it should not require root. >> >> * In practice, Crochet relies on the FreeBSD build infrastructure, which until recently did require root. >> >> * In practice, FreeBSD’s build infrastructure now has most of the necessary tools to do full system builds and installs without requiring root. (As someone else pointed out, we don’t have tools for constructing disk images with multiple partitions, nor for creating FAT partitions.) > > This is not true. We *do* have tools for creating images with multiple partitions. See mkimg(1). This is quite recent though... >> * In practice, no one has stepped forward with Crochet patches to allow it to work without requiring root. It should be relatively simple to get Crochet to compile all the pieces without requiring root. Assembling the final disk image without root privileges will require more effort. This remains the key issue. There’s lots of pieces that people have cobbled together other solutions with but nobody has cobbled that together with crochet (or nanobsd) to generate even one set of images… We need somebody to step up to *that* plate... Warner [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJTYoR0AAoJEGwc0Sh9sBEA9QYQAM6FctHSor2AHKa/2MAo/mWt kIlf4IYjmVncmGSq97XN7hsL4N1fuWZN9rBoxzXx6YKvxuyhRYGE7GszTGNOjfST r9zwaXrdQ1agfTmiNZAmPhR6EdUPUBPO7IqXyKGkC4rCoyLXBVjVXTM9EG+pTiQE JVEKkiy1ZG2rkuYdsnp2AoYu7Ap68Zv86F3IZ0DoCxLlrbA/luFBF0IwYBcQg9/q QyhkK/aozvLYBDO5VW07+j697qbn5XzFI49naSixQwv7zjxoJjw9yNLjOtUU/7Sd lgzz9Ok1jsLTtqsOcXfrRCDbwlPh8Uvv0ozxy/oeR7qt+w+qIgmzPy1Z7Z24u2pg MxXXP5UiXteX/Fpw70NlicEY/xar6NPzMEwijBMPPLE5efincDUS9CTjuIQWat0J HLjLzkgxbeJiLqdZi3z97Fpa1wUTOWbr4o8jpihRoGjWbb8x8oP30xyrfd8DCu8E wMPmZdd95/3Pc8X2VQGPJRysNHYLxwcoXYq0HxGWi7tduh9dhedHwp7sOd2eR0rt iYS9TLNK73IX/oOkLppMQfVoTtVb83zmdAdMtQn0AVvzMiZHiIPcjoGmaJfbZRbq 9vwybFMkO2Xm3m1dGULIhuk1TCTdkNtMVpMR1OaV0tr7qoy+xXqv1fLav8z6awsD H+5PNepuvi5WsFxPZ4ul =fuCe -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D8FBB5CB-8D4C-4DB0-A06D-1F01F2825DD1>
