From owner-freebsd-current@FreeBSD.ORG Tue Aug 24 17:00:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B96B916A4CE for ; Tue, 24 Aug 2004 17:00:58 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6DD043D31 for ; Tue, 24 Aug 2004 17:00:57 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i7OH0qBd045582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Aug 2004 20:00:53 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7OH0tFh038042; Tue, 24 Aug 2004 20:00:55 +0300 (EEST) (envelope-from ru) Date: Tue, 24 Aug 2004 20:00:55 +0300 From: Ruslan Ermilov To: Maxim Konovalov Message-ID: <20040824170055.GI37217@ip.net.ua> References: <1093304541.732.53.camel@einstein.local.nfy> <20040824070215.GH35016@ip.net.ua> <20040824113430.F50603@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qVyHzDF4yf4A8jkR" Content-Disposition: inline In-Reply-To: <20040824113430.F50603@mp2.macomnet.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: Mayo Jordanov cc: current@freebsd.org Subject: Re: buildworld problems when DESTDIR is specified? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 17:00:58 -0000 --qVyHzDF4yf4A8jkR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 24, 2004 at 11:40:03AM +0400, Maxim Konovalov wrote: > On Tue, 24 Aug 2004, 10:02+0300, Ruslan Ermilov wrote: >=20 > > On Mon, Aug 23, 2004 at 04:42:22PM -0700, Mayo Jordanov wrote: > > > Hello, > > > > > > I'm trying to buildworld with today's (Monday) RELENG_5 (cvsupped > > > sometime in the morning (also tried with one from sat/sun). > > > > > > When I just run make buildworld, it builds everything just fine, howe= ver > > > it fails when DESTDIR is specified (for both, buildworld and > > > installworld). The error occurs in stage 1.2, in gnu/usr.bin/gperf/do= c. > > > > > > Whole stage 1.2 section is attached below. > > > > > > Can someone give me any pointers? > > > > > Yes. DON'T DO THAT: do not specify DESTDIR as a command-line variable > > to make(1) when doing a buildworld. Do a normal "make buildworld", > > then do a "make installworld" specifying the DESTDIR. > > > > P.S. I know "make world DESTDIR=3D/foo" is broken at the moment due to > > this. >=20 > It seems we need to fix the warning for 'make world'. Now it suggests > to define DESTDIR but not clear how to do that: >=20 > : Define DESTDIR to where you want to install FreeBSD, > : including /, to override this warning and proceed as usual. >=20 > Moreover, a couple of days ago I was helping to a friend of mine to > fix a problem with a broken build world, he had 'DESTDIR=3D/' in > /etc/make.conf and 'make world' always failed for him. >=20 Recent make(1) is right about handling of command-line variables -- they stay command-line variables (a highest priority) forever. The new behavior is required by POSIX. Unfortunately, it also breaks the ``make world DESTDIR=3D/'', and there's no way you can unset/kill the command-line variable, so I see only two solutions: 1) kill "make world" completely, and 2) request that DESTDIR be set in environment for "make world": ``env DESTDIR=3D/foo make world'' should still work fine. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --qVyHzDF4yf4A8jkR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBK3RHqRfpzJluFF4RAp/qAJ9rzHsmNkzeB/Aegrr4q5WgEFG4YwCeJyJe 73Ol3ZiSTr/S2k1liSK9F3Y= =Rspc -----END PGP SIGNATURE----- --qVyHzDF4yf4A8jkR--