Subject: Makefile rule for gettext.1
To: None <>
From: Alan Barrett <>
List: current-users
Date: 07/04/2005 11:24:36
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).

I tracked it down to these lines in src/gnu/usr.bin/gettext/gettext/Makefile:

	gettext.1: ${DIST}/gettext/gettext-runtime/man/
		${INSTALL_FILE} $> $@

The command expands (in my build environment) to 

	STRIP=/usr/obj/build/TOOLDIR/bin/i386--netbsdelf-strip /usr/obj/build/TOOLDIR/bin/nbinstall -U -M /usr/obj/build/DESTDIR/METALOG -D /usr/obj/build/DESTDIR -h sha1 -N /usr/src/etc -c -p -r /usr/src/gnu/dist/gettext/gettext-runtime/man/ gettext.1

When invokes like that, nbinstall copies to ${OBJDIR}/gettext.1,
and adds an entry for "./gettext.1" to the metalog.

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.

--apb (Alan Barrett)