Subject: lfs_cleanerd(8) needs /usr
To: None <current-users@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 08/22/2007 17:18:50
Hello,

The lfs_cleanerd(8) needs /usr to run because it's using
/usr/libexec/ld.elf_so.  I think it should use /libexec/ld.elf_so.
Is the following patch correct?

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp

Index: bsd.shlib.mk
===================================================================
RCS file: /cvsroot/src/share/mk/bsd.shlib.mk,v
retrieving revision 1.5
diff -u -r1.5 bsd.shlib.mk
--- bsd.shlib.mk	11 Nov 2006 14:41:20 -0000	1.5
+++ bsd.shlib.mk	22 Aug 2007 08:02:42 -0000
@@ -30,7 +30,8 @@
 .endif
 
 .if ${MKDYNAMICROOT} == "no" || \
-    (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin")
+    (${BINDIR:Ux} != "/bin" && ${BINDIR:Ux} != "/sbin" && \
+     ${BINDIR:Ux} != "/libexec" )
 SHLINKDIR?=	/usr/libexec
 .else
 SHLINKDIR?=	/libexec