From owner-freebsd-arm@FreeBSD.ORG Fri May 2 12:58:34 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B9B2DE8 for ; Fri, 2 May 2014 12:58:34 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0740114D0 for ; Fri, 2 May 2014 12:58:33 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id kp14so869353pab.26 for ; Fri, 02 May 2014 05:58:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=5NxRC4lcOa20+fP5hQYvHshRRLwqclayn/3/2dgWiu4=; b=BSiWqcrv2agSA5nC3NwRyDBj3IHbIQhPnevtO4WP6JmHxucxMh/8Wa7qeS8aNRi89W ALCqQIkO5Mq4FlhWIlToUZvssTODPWsWEDEpDxgN0scF6uvojQP5EJaL4949IasTNSSW 7hA1pnHVIKs13NzXKV54weptsYVDL4CQlNAzFGhZ0jVGLZbxa3HoVqaGKRfArSbOVj1d eEN7SfEV5gwbOtnIUlpv6J/H7z/5Stb6fqTepvPzdsTCjZN3JxTs1auF1qNvGMrL80yq +ISlm4cb8vX+f7uAAkRlnOlavUyl/CRiq0zD/o47LUvgjk6c6cFHUL7JhqGyNzDG8LOY mDHw== X-Gm-Message-State: ALoCoQn0I3N8EjF1o4Z+rBiVMST8Xa1MkmZnrW2/nXFrZ9Ho21+bl1XJmLd+SDRY6hur7nzZd6NK X-Received: by 10.67.5.7 with SMTP id ci7mr33831485pad.99.1399035507206; Fri, 02 May 2014 05:58:27 -0700 (PDT) Received: from [192.168.77.199] (S0106000db92912b0.cg.shawcable.net. [68.146.94.47]) by mx.google.com with ESMTPSA id xg8sm182588033pac.26.2014.05.02.05.58.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 05:58:25 -0700 (PDT) Message-ID: <5363966E.2070005@0x544745.com> Date: Fri, 02 May 2014 06:58:22 -0600 From: Tom Everett User-Agent: Postbox 3.0.9 (Macintosh/20140129) MIME-Version: 1.0 To: Tim Kientzle Subject: Re: crochet - why does it (try to) change files in /usr/src? References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 12:58:34 -0000 Previously when I tried to build crochet in an jail I ran into troubles creating md devices. I presume upgrading to these new tools would help that too? > Tim Kientzle > May 1, 2014 at 10:45 AM > On Apr 30, 2014, at 3:56 PM, Torfinn Ingolfsen 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.) > > * 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. > > Cheers, > > Tim > > _______________________________________________ > 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" > Torfinn Ingolfsen > April 30, 2014 at 4:56 PM > 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