Subject: strange (make?) problem with MKUUCP=no and tip(1)
To: None <tech-toolchain@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: tech-toolchain
Date: 04/08/2006 11:59:24
Hi,
I just tried to build a distribution with MKUUCP set to `no'. This
failed because ${DESTDIR}/usr/bin/cu was installed (as a link to
${DESTDIR}/usr/bin/tip) but missing from the flist. IIUC cu should not
be installed at all if MKUUCP=no.
src/usr.bin/tip/Makefile has:
.if !defined(MKUUCP) || ${MKUUCP} != no
LINKS= ${BINDIR}/tip ${BINDIR}/cu
MLINKS= tip.1 cu.1
.endif
which looks fine to me, but make(1) doesn't seem to get it right:
$ cd /usr/src/usr.bin/tip
$ /opt/tools/i386/bin/nbmake-i386 -V MKUUCP
no
$ /opt/tools/i386/bin/nbmake-i386 -V LINKS
${BINDIR}/tip ${BINDIR}/cu
Strange, LINKS should be empty here, shouldn't it? If I set MKUUCP on
the commandline this works as expected:
$ /opt/tools/i386/bin/nbmake-i386 MKUUCP=no -V LINKS
$
`make -dA' prints:
[...]
Global:WARNS = 4
Global:PROG = tip
lhs = "", rhs = "no", op = !=
Global:LINKS = ${BINDIR}/tip ${BINDIR}/cu
Global:MLINKS = tip.1 cu.1
[...]
So, where's the bug? Or am I missing something?
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~