From owner-cvs-src@FreeBSD.ORG Sun Jul 31 22:42:36 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64B7016A41F; Sun, 31 Jul 2005 22:42:36 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08D8B43D45; Sun, 31 Jul 2005 22:42:35 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j6VMfpX8087389; Sun, 31 Jul 2005 16:41:52 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 31 Jul 2005 16:42:41 -0600 (MDT) Message-Id: <20050731.164241.119877948.imp@bsdimp.com> To: jeremie@le-hen.org From: "M. Warner Losh" In-Reply-To: <20050731185925.GU68965@obiwan.tataz.chchile.org> References: <863bpvmnww.fsf@xps.des.no> <20050731102343.35bc4aa9@Magellan.Leidinger.net> <20050731185925.GU68965@obiwan.tataz.chchile.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, netchild@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 ObsoleteFiles.inc src/share/man/man7 build.7 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 22:42:36 -0000 In message: <20050731185925.GU68965@obiwan.tataz.chchile.org> Jeremie Le Hen writes: : Hi Alexander, : : > > BTW, I don't really see why {check,delete}-old-* should be restricted : > > to native environments. DESTDIR might point to e.g. an NFS-exported : > > filesystem from which thin clients of a different architecture boot. : > : > Because of ObsoleteFiles.inc: : > ---snip--- : > .if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "sparc64" : > # 20040130: libkse renamed to libpthread : > OLD_FILES+=usr/lib/libkse.a : > OLD_FILES+=usr/lib/libkse.so : > .endif : > ---snip--- : > : > We could change this to TARGET_ARCH instead, but then the user has to : > set it, else he removes non-obsolete files. Not true. TARGET_ARCH is automatically set. You have to set TARGET_ARCH/TARGET already if you are cross compiling, and automatically set if not. : This sounds as a hack, but couldn't you use file(1) on ${DESTDIR}/bin/ls : to identify the architecture it's running ? It would at least avoid : breaking POLA. Why is this a hack? Warner