Subject: Re: 20030420 build fails
To: None <jnemeth@victoria.tc.ca>
From: Ben Harris <bjh21@netbsd.org>
List: current-users
Date: 04/21/2003 18:29:37
In article <200304210530.h3L5U6KL029010@vtn1.victoria.tc.ca> you write:
>     I just tried to build -current (cvs update'd immediately before I
>started), and I bombed with the following:
>
>/mnt/NetBSD-current/destdir/lib/libdes.so. -> libcrypto.so.1.1
>/mnt/NetBSD-current/destdirstopped -> nbmake:
>/mnt/NetBSD-current/destdir/mnt/NetBSD-current/src/lib/libdes. -> in
>nbinstall: /mnt/NetBSD-current/destdir/mnt/NetBSD-current/src/lib: mktemp: No su
>ch file or directory
>*** Error code 1
>
>Stop.
>nbmake: stopped in /mnt/NetBSD-current/src/lib/libcrypto

It bit me too.  I think this is the right fix, but perhaps someone who
understands the insides of bsd.lib.mk should look at it:

Index: bsd.lib.mk
===================================================================
RCS file: /pub/NetBSD-CVS/src/share/mk/bsd.lib.mk,v
retrieving revision 1.215
diff -u -r1.215 bsd.lib.mk
--- bsd.lib.mk  2003/04/20 21:57:17     1.215
+++ bsd.lib.mk  2003/04/21 17:28:34
@@ -357,7 +357,7 @@
 .else
 ALLOBJS=${POBJS} ${SOBJS} 
 .endif
-.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
+.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && defined(LOBJS) && !empty(LOBJS)
 ALLOBJS+=${LOBJS}
 .endif
 
@@ -417,7 +417,7 @@
 	mv -f lib${LIB}.so.tmp lib${LIB}.so
 .endif
 
-.if !empty(LOBJS)
+.if defined(LOBJS) && !empty(LOBJS)
 LLIBS?=                -lc
 llib-l${LIB}.ln: ${LOBJS}
 	@echo building llib-l${LIB}.ln
@@ -554,7 +554,7 @@
 .endif
 .endif
 
-.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
+.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && defined(LOBJS) && !empty(LOBJS)
 libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
 
-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>