Subject: make install fails if you have both foo.1 and foo.1.gz in /usr/share/man/man1
To: None <current-users@netbsd.org>
From: Brian Grayson \(home\) <bgrayson@austin.rr.com>
List: current-users
Date: 11/13/2001 22:38:31
Try this out (I apparently had a leftover man page from before I
enabled MANZ):
touch /usr/share/man/man1/jot.1
touch /usr/share/man/man1/jot.1.gz
cd /usr/src/usr.bin/jot
sleep 1
touch jot.1 # To force the ones in /usr/share/man to be out-of-date.
make install
I get:
cat /home/src/usr.bin/jot/jot.1 | gzip -cf > jot.1.gz
STRIP=/home/src/tools/obj.i386/tools.NetBSD-1.5Y-i386/bin/i386--netbsdelf-strip /home/src/tools/obj.i386/tools.NetBSD-1.5Y-i386/bin/binstall -c -p -r -o root -g wheel -m 444 jot.1.gz /usr/share/man/man1/jot.1 /usr/share/man/man1/jot.1.gz
usage: install [-Ubcprs] [-M log] [-T tags] [-B suffix] [-f flags] [-m mode]
[-o owner] [-g group] [-l linkflags] [-S stripflags] file1 file2
install [-Ubcprs] [-M log] [-T tags] [-B suffix] [-f flags] [-m mode]
[-o owner] [-g group] [-l linkflags] [-S stripflags]
file1 ... fileN directory
install [-Up] [-M log] [-T tags] -d [-m mode]
[-o owner] [-g group] directory ...
*** Error code 1
Note that the ${.ALLSRC} is expanded to both jot.1 and
/usr/share/man/man1/jot.1 (verified by hacking bsd.man.mk to print out
${.ALLSRC}).
I don't know if this is easily fixable (or worth fixing). But it sure
caught me off-guard.
Brian