Date: Sun, 31 Jul 2005 16:42:41 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: jeremie@le-hen.org 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 Message-ID: <20050731.164241.119877948.imp@bsdimp.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20050731185925.GU68965@obiwan.tataz.chchile.org>
Jeremie Le Hen <jeremie@le-hen.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050731.164241.119877948.imp>
