From owner-freebsd-arm@FreeBSD.ORG Thu May 1 17:29:29 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62F94FB6 for ; Thu, 1 May 2014 17:29:29 +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 30D7A1629 for ; Thu, 1 May 2014 17:29:28 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id z10so2095146pdj.14 for ; Thu, 01 May 2014 10:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=PGQr0XnKfQ99qbvc+fyzFyhdiod22eKfeuErnDNHmow=; b=NKgQR30qNau1qeI3eHxTEyY6Y7qEG1fD1MHzXOze5OYfL1Ra2qVNykiEpUKTWI51pN 3I7mv+YfTTNu8tNVpT5aKLIgNP1g6M4UH/zDOOce4LiWLuMgyHvstwNKEb0GTEEwm7RL CcDYX1nVCNDn5SgWL0wCUqhuAzvpcW6UukO6KKmQCXqhsDV1zu44F5OMiU2HQMYbsdAJ ayZFCpqt3OQYjZvapf5d7FG3meGjZTqK98hUbkpbsudoN217k27fvbV1nN0wpuIB/9Vd LN/MRj7FHV7Ec+RPKZSOWfyaIPXtLBu5GUPZJBCXp7+8D5J99HgP+thfixuHSg3wzuXI rtdw== X-Gm-Message-State: ALoCoQm/BB08MKzu9FKlcWty401MhajvjZuru6fr7UaCN56FR2J7IL2CxZg0fVmIQAguBSIEriof X-Received: by 10.66.233.9 with SMTP id ts9mr23530918pac.37.1398965368029; Thu, 01 May 2014 10:29:28 -0700 (PDT) Received: from macintosh-3c0754232d17.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id pb7sm161590552pac.10.2014.05.01.10.29.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 10:29:26 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_38479E85-817E-4066-9361-8B1A22B57FEC"; protocol="application/pgp-signature"; micalg=pgp-sha512 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: Warner Losh In-Reply-To: <536283D7.8070009@freebsd.org> Date: Thu, 1 May 2014 11:29:24 -0600 Message-Id: References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> <536283D7.8070009@freebsd.org> To: Nathan Whitehorn 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 17:29:29 -0000 --Apple-Mail=_38479E85-817E-4066-9361-8B1A22B57FEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On May 1, 2014, at 11:26 AM, Nathan Whitehorn = wrote: >=20 > On 05/01/14 09:45, Tim Kientzle wrote: >> On Apr 30, 2014, at 3:56 PM, Torfinn Ingolfsen = wrote: >>=20 >>> =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. >>=20 >> The =91buildworld=92 target is cleaning the appropriate /usr/obj = directories in case there was a previous build there. >>=20 >>> Question 2: why does crochet need root? >> As for requiring root: >>=20 >> * In theory, it should not require root. >>=20 >> * In practice, Crochet relies on the FreeBSD build infrastructure, = which until recently did require root. >>=20 >> * 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.) >=20 > 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=92s 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=85 = We need somebody to step up to *that* plate... Warner --Apple-Mail=_38479E85-817E-4066-9361-8B1A22B57FEC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_38479E85-817E-4066-9361-8B1A22B57FEC--