From owner-cvs-all Thu Jul 25 9:21:53 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E4EE37B400; Thu, 25 Jul 2002 09:21:44 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A22243E4A; Thu, 25 Jul 2002 09:21:38 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g6PGLAT33334; Thu, 25 Jul 2002 19:21:10 +0300 (EEST) (envelope-from ru) Date: Thu, 25 Jul 2002 19:21:09 +0300 From: Ruslan Ermilov To: John Hay Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile Makefile.inc1 src/secure Makefile src/share/man/man7 release.7 src/kerberos5 Makefile Makefile.inc Message-ID: <20020725162109.GA32393@sunbay.com> References: <200207251327.g6PDROE70536@zibbi.icomtek.csir.co.za> <200207251417.g6PEHxC72514@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <200207251417.g6PEHxC72514@zibbi.icomtek.csir.co.za> User-Agent: Mutt/1.3.99i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 25, 2002 at 04:17:59PM +0200, John Hay wrote: > [...] > > > > > > release Makefile=20 > [...] > > > > >=20 > > > > > This has been tested on an i386 box with TARGET_ARCH=3Di386, > > > > > TARGET_ARCH=3Dalpha, and TARGET=3Dpc98. Alpha died by ENOSPC > > > > > attempting to create the mfsroot floppy later in release.9. > > > > > I think this is reproduceable on Alphas too. > > > > >=20 > > > > > IMPORTANT. For anyone attempting to "reproduce" this. It > > > > > is important that /usr/src/release/Makefile be the latest > > > > > version (cd /usr/src/release; cvs up -l) before attempting > > > > > to "make release". I'm still looking for a clean way to > > > > > overcome this (old) problem. > > > >=20 > > > > With this change I cannot build a release with docs on -stable > > > > anymore. The culprit is again the interaction of TARGET_ARCH > > > > and print/ghostscript-gnu, just as on -current. > > > >=20 > > > Even if TARGET_ARCH=3D${MACHINE_ARCH}? Have you tried my work > > > around? > >=20 > > With workaround do you mean that /usr/src/release/Makefile also > > have to be up-to-date? If so, yes, I did update that to: > >=20 > > $FreeBSD: src/release/Makefile,v 1.536.2.88 2002/07/25 09:33:16 ru Exp $ > >=20 > > I don't specifically set TARGET_ARCH, I just do a make release on a > > i386 box to get an i386 release. >=20 > This patch work around the problem. It gets my box past building > the doc tools at least. >=20 As I said, the real problem is probably with bsd.port.mk. The problem is demonstrated like this: $ touch foo.c $ gmake -f /dev/null foo TARGET_ARCH=3Dbar cc bar foo.c -o foo cc: bar: No such file or directory gmake: *** [foo] Error 1 $ I can't find anywhere in the gmake(1) docs what the intent of the TARGET_ARCH is. I have similarly failed to find any info on the topic on www.gnu.org. But I think that the problem is more generic: somewhere, someone should pass a clean environment (/usr/bin/env -i) when running port's makefile(s). > Index: release/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/release/Makefile,v > retrieving revision 1.536.2.88 > diff -u -r1.536.2.88 Makefile > --- release/Makefile 25 Jul 2002 09:33:16 -0000 1.536.2.88 > +++ release/Makefile 25 Jul 2002 13:34:52 -0000 > @@ -830,6 +830,7 @@ > doc.1: > @echo "Making docs..." > @for i in ${DOCPORTS}; do \ > + unset TARGET_ARCH; \ > cd /usr/ports/$$i && make all install clean BATCH=3Dyes JADETEX=3Dno = WITHOUT_PYTHON=3Dyes FORCE_PKG_REGISTER=3Dyes; \ > done > @cd /usr/doc && make all install 'FORMATS=3Dhtml html-split txt' INSTAL= L_COMPRESSED=3D'' DOCDIR=3D${RD}/trees/bin/usr/share/doc I would prefer the "cd /usr/ports/$$i && env -i make all ..." version, if it works, FWIW. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9QCV1Ukv4P6juNwoRAmqtAJ9uuJjMDaQrnx8oaFjuaFCM9AV7wgCfdFY+ ZlBETu1I2U+IDqW+AaTIAv0= =lcRI -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message