Subject: misc/9402: "make build" fails in chroot area
To: None <gnats-bugs@gnats.netbsd.org>
From: Allen D. Ball <ball@impression-technology.com>
List: netbsd-bugs
Date: 02/12/2000 10:30:48
>Number: 9402
>Category: misc
>Synopsis: "make build" fails in chroot area
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Feb 12 10:30:00 2000
>Last-Modified:
>Originator: Allen D. Ball
>Organization:
>Release: NetBSD-release sup'ed today - 1.4.2_ALPHA
>Environment:
System: NetBSD platypus 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (SONY-PCV) #2: Fri Feb 11 22:04:40 PST 2000 ball@platypus:/usr/src/sys/arch/i386/compile/SONY-PCV i386
>Description:
Initial "make build" fails in chroot'ed area because /var/run/ld.so.hints does not exist.
>How-To-Repeat:
Start "make build" in chroot'ed area.
>Fix:
--- usr/src/share/mk/bsd.lib.mk- Sat Sep 11 07:01:57 1999
+++ usr/src/share/mk/bsd.lib.mk Sat Feb 12 10:08:27 2000
@@ -343,7 +343,11 @@
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \
-m ${LIBMODE} ${.ALLSRC} ${.TARGET}
.if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
+.if exists(/var/run/ld.so.hints)
/sbin/ldconfig -m ${LIBDIR}
+.else
+ /sbin/ldconfig ${LIBDIR}
+.endif
.endif
.if ${OBJECT_FMT} == "ELF"
rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
>Audit-Trail:
>Unformatted: