From owner-freebsd-current@FreeBSD.ORG Sun Jun 2 20:53:33 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 57949FBC for ; Sun, 2 Jun 2013 20:53:33 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-gh0-x22c.google.com (mail-gh0-x22c.google.com [IPv6:2607:f8b0:4002:c05::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1CBD918AE for ; Sun, 2 Jun 2013 20:53:33 +0000 (UTC) Received: by mail-gh0-f172.google.com with SMTP id r18so167283ghr.31 for ; Sun, 02 Jun 2013 13:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=SovWOQCpCQOFsuScwv/dudKkXHNM0kqGOd7/V+IHHJk=; b=EMhWkCCVpuCBqUbVO6co0Bph9Xi2z4lAzvFoymO2nQLewNeh4V+b2qGjEOJ12YHmXs zmXgNZXL8gEqqAahAQnujGJ5ab41Y3AYxaJow3m7Rs3bTri+Z/eB4OB3TvmDnXCdLxOU hL9pzL1mjAt5mtlnS3mFtAhZARw8iUp2qTd//g4mvNVaqZGQseELLD3YVnrpeBuiWcKn IJ369lXoyVBi4z3DZGFuehha30+lcL+BAvakXf/feHUiy6vGuYuXuYazYhwOB9m35xwW D/yzJvY19v3spP7ORcgsioYYNjv403AqYl9P74h9RHUZXy7bOvN3ZXhW1WBUoDDtUs7n P55A== X-Received: by 10.236.68.2 with SMTP id k2mr13620983yhd.90.1370206412635; Sun, 02 Jun 2013 13:53:32 -0700 (PDT) Received: from kan.dyndns.org (c-24-63-226-98.hsd1.ma.comcast.net. [24.63.226.98]) by mx.google.com with ESMTPSA id w12sm87320077yhj.19.2013.06.02.13.53.31 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 13:53:32 -0700 (PDT) Date: Sun, 2 Jun 2013 16:53:06 -0400 From: Alexander Kabaev To: "Simon J. Gerraty" Subject: Re: Undesirable bmake behavior Message-ID: <20130602165306.3f38f265@kan.dyndns.org> In-Reply-To: <20130602044057.9798358097@chaos.jnpr.net> References: <20130601234310.1ef241d5@kan.dyndns.org> <20130602044057.9798358097@chaos.jnpr.net> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.18; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/nmzKQCm0sXmAO590AB4uC45"; protocol="application/pgp-signature" Cc: current@FreeBSD.ORG X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 02 Jun 2013 20:53:33 -0000 --Sig_/nmzKQCm0sXmAO590AB4uC45 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 1 Jun 2013 21:40:57 -0700 "Simon J. Gerraty" wrote: > >today I got confronted with this little curiosity from bmake. I have > >built and installed the world, and after reboot I ran 'make > >delete-old' as root to get rid of accumulated stale files. This is > >what I got back: > > > >>>> Removing old files (only deletes safe to delete libs) > >.... > >>>> Old files removed > >>>> Removing old directories > >>>> Old directories removed > >To remove old libraries run '/usr/obj/usr/src/make.amd64/make > >delete-old-libs'. > > > >It turns out that somehow running make in src tree finds and tries to > >run a copy from .OBJDIR, if one is present, unconditionally now. I do >=20 > This simply what src/Makefile says to do, and AFAIK it has been that > way for ages. >=20 > Since delete-old is in TGTS it gets run via: >=20 > # > # Handle the user-driven targets, using the source relative mk files. > # >=20 > ${TGTS}: > ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET} >=20 >=20 > and >=20 > $ make -dV -V _MAKE > PATH=3D${PATH} ${BINMAKE} -f Makefile.inc1 TARGET=3D${_TARGET} > TARGET_ARCH=3D${_TARGET_ARCH} $ make -dV -V BINMAKE > `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo > ${MAKE}; fi` -m ${.CURDIR}/share/mk > $ make -V _MAKE > PATH=3D/sbin:/bin:/usr/sbin:/usr/bin `if [ -x > /var/obj/current/b/sjg/work/FreeBSD/current/src/make.amd64/make ]; > then > echo /var/obj/current/b/sjg/work/FreeBSD/current/src/make.amd64/make; > else echo make; fi` -m /b/sjg/work/FreeBSD/current/src/share/mk -f > Makefile.inc1 TARGET=3Damd64 TARGET_ARCH=3Damd64 $ >=20 > Now you may be right that that's a bad idea, but it isn't anything > new. >=20 > --sjg Indeed, it seems this is an issue that rears it head every time we resort to building the bootstrap make, which happens not often. bmake just made me notice the issue, and it wasn't the cause. --=20 Alexander Kabaev --Sig_/nmzKQCm0sXmAO590AB4uC45 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iD8DBQFRq7DKQ6z1jMm+XZYRAu+DAJ9IhdY9CQ6GjaJCxcE0TOyo0z2eYwCg3FHm 7gu+fyZlVK9+mmWnBdi1gmk= =IyWF -----END PGP SIGNATURE----- --Sig_/nmzKQCm0sXmAO590AB4uC45--