From owner-cvs-all@FreeBSD.ORG Wed Aug 3 11:59:53 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 6478016A420 for ; Wed, 3 Aug 2005 11:59:53 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15E2643D46 for ; Wed, 3 Aug 2005 11:59:51 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 17022 invoked from network); 3 Aug 2005 11:59:50 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 3 Aug 2005 11:59:50 -0000 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j73BxamR002851; Wed, 3 Aug 2005 07:59:36 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Alexander Leidinger Date: Wed, 3 Aug 2005 07:59:31 -0400 User-Agent: KMail/1.8 References: <20050731102343.35bc4aa9@Magellan.Leidinger.net> <20050802.085239.34568854.imp@bsdimp.com> <20050803121150.gn025733y8400wk8@netchild.homeip.net> In-Reply-To: <20050803121150.gn025733y8400wk8@netchild.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508030759.34326.jhb@FreeBSD.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx 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 11:59:53 -0000 On Wednesday 03 August 2005 06:11 am, Alexander Leidinger wrote: > "M. Warner Losh" wrote: > > 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-native 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. > > Yes. I'm not talking about technical problems. I talk about problems which > 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 t= he > failsafe route. This is UN*X, not Windows. UN*X tends to allow a certain bit of foot-shoot= ing=20 to enable people to get useful things done. It seems that since these=20 targets have the same semantics as installworld they should follow the same= =20 policy. A user can already blow their feet off in a much worse fashion by= =20 forgetting TARGET_ARCH when doing an installworld. The fact that we don't= =20 have lots of complaints about that particular case now indicates that your= =20 fears are probably not well-founded. If someone is doing cross-builds and= =20 cross-installs, I think we can expect them to be able to set TARGET_ARCH=20 correctly for the delete-foo targets since they already have to be setting = it=20 correctly for buildworld, buildkernel, installworld, and installkernel. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org