Subject: /usr/libexec/ld.elf_so (Was: lfs_cleanerd(8) needs /usr)
To: None <tech-toolchain@netbsd.org>
From: Valeriy E. Ushakov <uwe@stderr.spb.ru>
List: current-users
Date: 08/22/2007 14:11:44
On Wed, Aug 22, 2007 at 17:18:50 +0900, Kouichirou Hiratsuka wrote:
> 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
Hmm, I've been always wondering, why we bother with
/usr/libexec/ld.elf_so at all, it's symlink to /libexec anyway.
Does anyone knows/remembers the rationale?
SY, Uwe
--
uwe@stderr.spb.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen