linux_base-fc4 installing in the wrong path

Gábor Kövesdán gabor at FreeBSD.org
Fri Jun 23 13:34:41 UTC 2006


Boris Samorodov wrote:
> On Fri, 23 Jun 2006 14:56:28 +0200 Gábor Kövesdán wrote:
>
>   
>> consumidor wrote:
>>     
>>> gentlemen:
>>>
>>> my port of linux_base-fc4 is installing all binaries, libs etc in
>>> /usr/local. at the end of the install it "brands" all my binaries in
>>>       
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    [1]
>   
>>> /usr/local/bin and /usr/local/sbin, so my applications become
>>> unusable. It also installs libc.so.6 on /usr/local/lib, breaking a
>>> lot of stuff. I googled  for hours, to no avail. Would you please
>>> help me on getting this done right? I mean, I presume it should be
>>> installed on /usr/compat/linux
>>>   
>>>       
>> It installs right except when you override PREFIX or LINUXBASE. Make
>> sure you don't have anything wrong in /etc/make.conf.
>>     
>
> That's true. And [1] shouldn't happen anyway. We do branding at WRKSRC
> and only then do the installation (for more information look at
> bsd.linux-rpm.mk).
>
>   
No, branding is done in do-install, see the Makefile for fc4:

        @${FIND} ${PREFIX}/bin ${PREFIX}/sbin/ ${PREFIX}/usr/bin \
                ${PREFIX}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \
                | ${GREP} ELF | ${CUT} -d : -f 1 \
                | ${XARGS} ${BRANDELF} -t Linux

Gabor Kovesdan


More information about the freebsd-emulation mailing list