From owner-cvs-all@FreeBSD.ORG Wed Aug 3 13:51:29 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 6266516A41F; Wed, 3 Aug 2005 13:51:29 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E2C43D45; Wed, 3 Aug 2005 13:51:28 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 05C5852BA2; Wed, 3 Aug 2005 15:51:26 +0200 (CEST) Date: Wed, 3 Aug 2005 15:50:54 +0200 From: Pawel Jakub Dawidek To: Alexander Leidinger Message-ID: <20050803135054.GQ62914@garage.freebsd.pl> References: <20050731102343.35bc4aa9@Magellan.Leidinger.net> <20050802090717.GK14023@ip.net.ua> <20050802140536.zstn68rcgsg84g0w@netchild.homeip.net> <20050802.085239.34568854.imp@bsdimp.com> <20050803121150.gn025733y8400wk8@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uCPdOCrL+PnN2Vxy" Content-Disposition: inline In-Reply-To: <20050803121150.gn025733y8400wk8@netchild.homeip.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) Cc: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, ru@FreeBSD.org, grehan@FreeBSD.org, des@des.no, "M. Warner Losh" Subject: Re: cvs commit: src Makefile.inc1 ObsoleteFiles.inc src/share/man/man7 build.7 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 13:51:29 -0000 --uCPdOCrL+PnN2Vxy Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 03, 2005 at 12:11:50PM +0200, Alexander Leidinger wrote: +> "M. Warner Losh" wrote: +>=20 +> >In message: <20050802140536.zstn68rcgsg84g0w@netchild.homeip.net> +> > Alexander Leidinger writes: +> >: When an user calls delete-old with DESTDIR set to the root of a non-n= ative +> >: machine architecture he may remove non-obsolete files when he forgets= to set +> >: TARGET_ARCH. I want to prevent this situation. I think "failsafe" is = more +> >: important than "POLA" in this case. +> >If TARGET_ARCH is set, then the right set of files will be deleted if +> >you use TARGET_ARCH rather than MACHINE_ARCH. +>=20 +> Yes. I'm not talking about technical problems. I talk about problems whi= ch +> sit on a chair. If we change MACHINE_ARCH to TARGET_ARCH and an user runs +> "make delete-old-libs" without setting TARGET_ARCH in a cross-arch +> environment, he will remove non-obsolete libs. And I think we should go = the +> failsafe route. We could prevent user from doing this, by stopping the whole process when we find that executable/library is compiled for other arch and TARGET_ARCH is not explicity set. You can easly check that with file(1)... --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --uCPdOCrL+PnN2Vxy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC8Mu+ForvXbEpPzQRAiVOAJ9bTUtw/ggcbz40lVgeJjIMo+RXnwCfTTxH pMvamhlJkvZJlKGfRYGdccU= =4T26 -----END PGP SIGNATURE----- --uCPdOCrL+PnN2Vxy--