Subject: Re: Makefile rule for gettext.1
To: Alan Barrett <apb@cequrux.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 07/04/2005 22:47:42
--m+utxuhC6KVTvgNz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Jul 04, 2005 at 11:24:36AM +0200, Alan Barrett wrote:
| My builds are failing due to my modified version of checkflist
| discovering that the METALOG contains a bogus entry for ./gettext.1 (in
| addition to the correct entry for ./usr/share/man/man1/gettext.1).
|=20
| I tracked it down to these lines in src/gnu/usr.bin/gettext/gettext/Mak=
efile:
|=20
| gettext.1: ${DIST}/gettext/gettext-runtime/man/gettext.1.in
| ${INSTALL_FILE} $> $@
|=20
| The command expands (in my build environment) to=20
|=20
| STRIP=3D/usr/obj/build/TOOLDIR/bin/i386--netbsdelf-strip /usr/obj/buil=
d/TOOLDIR/bin/nbinstall -U -M /usr/obj/build/DESTDIR/METALOG -D /usr/obj/bu=
ild/DESTDIR -h sha1 -N /usr/src/etc -c -p -r /usr/src/gnu/dist/gettext/gett=
ext-runtime/man/gettext.1.in gettext.1
|=20
| When invokes like that, nbinstall copies gettext.1.in to ${OBJDIR}/gett=
ext.1,
| and adds an entry for "./gettext.1" to the metalog.
|=20
| It seems bogus to use ${INSTALL_FILE} to copy a source file to the
| objdir. Changing it to ${HOST_INSTALL_FILE} works better but I am not
| sure if it's the right thing to do.
Using cp(1) is probably more appropriate.
Please submit a PR so we don't forget.
--m+utxuhC6KVTvgNz
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFCyS/upBhtmn8zJHIRAjwgAJ4thAuGNYhA0pufRilQ3uk3M40RrgCfYqrz
+NHYz91ZDPKhpHVh2jEwrow=
=1B5C
-----END PGP SIGNATURE-----
--m+utxuhC6KVTvgNz--