From owner-freebsd-arm@FreeBSD.ORG Thu May 1 23:45:13 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 3290EB86 for ; Thu, 1 May 2014 23:45:13 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 044D31B05 for ; Thu, 1 May 2014 23:45:12 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Wg0f8-000Hvd-Om; Thu, 01 May 2014 23:45:10 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s41Nj8wj019345; Thu, 1 May 2014 17:45:08 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/jxbWQ049tgLNyayJ1nvwi Subject: Re: crochet - why does it (try to) change files in /usr/src? From: Ian Lepore To: Torfinn Ingolfsen In-Reply-To: <20140501230633.5044af70fba9e4d4ed00933e@getmail.no> References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> <20140501230633.5044af70fba9e4d4ed00933e@getmail.no> Content-Type: text/plain; charset="iso-8859-7" Date: Thu, 01 May 2014 17:45:08 -0600 Message-ID: <1398987908.22079.143.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by damnhippie.dyndns.org id s41Nj8wj019345 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 23:45:13 -0000 On Thu, 2014-05-01 at 23:06 +0200, Torfinn Ingolfsen wrote: > On Thu, 1 May 2014 09:45:58 -0700 > Tim Kientzle wrote: >=20 > >=20 > > 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 f= or 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? > >=20 > > It=A2s not. > >=20 > > The =A1buildworld=A2 target is cleaning the appropriate /usr/obj dire= ctories in case there was a previous build there. >=20 > Ok. Given that the appropriate obj directories (in this case) is in the= ./work sub directory of > # pwd > /usr/home/tingo/work/crochet-freebsd >=20 > should buildworld really try to touch /usr/obj at all? >=20 It's not, if the obj dir is inside ./work then surely the script has set MKOBJDIRPREFIX to reflect that, and that's where it would be doing the delete. Is it possible you had run the script previously as root, and this time you were not root? If so, the object files from the previous run are owned by root, and you don't have permission to delete them. -- Ian