Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Nov 2008 23:23:06 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: /etc/rc.d/abi: can't understand linux_start
Message-ID:  <12918453@bs1.sp34.ru>
In-Reply-To: <49147E9B.4050109@icyb.net.ua> (Andriy Gapon's message of "Fri\, 07 Nov 2008 19\:44\:59 %2B0200")
References:  <49147E9B.4050109@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon <avg@icyb.net.ua> writes:

> FreeBSD 7.1-PRERELEASE r184741 amd64
> Fresh install.
>
>
> I see the following in /etc/rc.d/abi:
>
> linux_start()
> {
>         local _tmpdir
>
>         echo -n ' linux'
>         load_kld -e 'linux(aout|elf)' linux
>         if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> So we run linux ldconfig and create linux ld.so.cache only if there is
> executable file ldconfigDisabled?
> I have linux_base-f7-7 installed and there is no such file and skype
> can't find required shared libs. If I manually run ldconfig, then skype
> is happy.

Here is some info (look at rev. 1.7):
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/abi

>                 _tmpdir=`mktemp -d -t linux-ldconfig`
>                 /compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache
>                 if ! cmp -s ${_tmpdir}/ld.so.cache
> /compat/linux/etc/ld.so.cache; then
>                         cat ${_tmpdir}/ld.so.cache >
> /compat/linux/etc/ld.so.cache
>                 fi
>                 rm -rf ${_tmpdir}
>         fi
> }

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12918453>