From owner-freebsd-arm@FreeBSD.ORG Thu May 1 16:46:20 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 09E3A131 for ; Thu, 1 May 2014 16:46:20 +0000 (UTC) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (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 D13B811EB for ; Thu, 1 May 2014 16:46:19 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id z10so2046523pdj.28 for ; Thu, 01 May 2014 09:46:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=aKIq7lQT5rvIag9lXRvFUgtVC7wAp2O+vJC9hvl8qLA=; b=ZNytVtTY2xpcHGFYhwoJA7M5HWMpgvXOF0DKwbaiBOYHwc48EoW8IFUV/MRnEWzk5V lRr1r00Da+5cHBy46Zm33KC0pCg37HIeWFykZqBFThAgdHBMJzUg7EXg8Nha1vyaV4PR 6aPohxizxqAdH0rJJv9aiUUNw+Ov8mzWSzhds8QUYu+q3W+UOHlue8AfU4rLGFfpRniS OTB25gfbPV/bx2x/x7xOkvUf6i4QZsY1afbOdoKrOhtD6I3ZNpfb4iejDt6+bDlzwNli g+vRJRe3YHvbhkerf/6kBKIkjZMJyRwBDN51aH7HiKWLZdLesCgFgJQfuYkaywl7wec1 X+OA== X-Gm-Message-State: ALoCoQkJCL1mD7c2/8PnXY0JoRj7BaezsR9MN9snLIj/LYbs/DhNoSBZ0khroBOJ4NrhQLNNwWUq X-Received: by 10.66.164.165 with SMTP id yr5mr23122328pab.63.1398962778687; Thu, 01 May 2014 09:46:18 -0700 (PDT) Received: from [192.168.1.2] (c-50-156-22-189.hsd1.ca.comcast.net. [50.156.22.189]) by mx.google.com with ESMTPSA id nw13sm138369589pab.37.2014.05.01.09.46.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 09:46:18 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: crochet - why does it (try to) change files in /usr/src? From: Tim Kientzle In-Reply-To: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> Date: Thu, 1 May 2014 09:45:58 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> To: Torfinn Ingolfsen X-Mailer: Apple Mail (2.1874) 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: Thu, 01 May 2014 16:46:20 -0000 On Apr 30, 2014, at 3:56 PM, Torfinn Ingolfsen = wrote: > =3D=3D=3D> 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 >=20 > 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) >=20 > Question 1: it look to me like the script is trying to remove stuff = (files) from /usr/src. Why is it doing that? It=92s not. The =91buildworld=92 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=92s 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=92t 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