Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 15:48:59 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Ulrich Spoerlein <q@galgenberg.net>
Cc:        emulation@freebsd.org
Subject:   Re: Porting linux-wine
Message-ID:  <20051028154859.6xvaydvtes88gows@netchild.homeip.net>
In-Reply-To: <20051028100044.GB1126@galgenberg.net>
References:  <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> <20051028100044.GB1126@galgenberg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Ulrich Spoerlein <q@galgenberg.net> wrote:

> On Fri, 28.10.2005 at 08:51:30 +0200, Alexander Leidinger wrote:
>> Please try:
>>    find /compat/linux/ -type f -print0 | xargs -0 file \
>>        | grep ELF | cut -d : -f 1 | xargs brandelf -t Linux
>
> I first tried something slightly different ... and I'm shocked:
> % find /compat/linux/ -type f -print0 | xargs -0 file | grep ELF | 
> cut -d : -f 1 | xargs brandelf > elf_list
> % grep -c Linux elf_list; grep -c SVR4 elf_list
> 343
> 393
>
> So there are more binaries that are not branded than binaries that are
> branded.

Welcome to one of the bugs in the linux part of the ports collection...

> After branding all bins/libs, I'm now unable to run
> /compat/linux/bin/bash because of libtermcap

[error]

You said you branded *all* libs, but libtermcap is still unbranded... is
there anything obvious which I overlooked?

[libtermcap]
> It was one of the non-branded libs. So, is branding everything
> considered bad practice?

In an ideal Ports Collection, every ELF object which is supposed to be a
linux object, is branded as such.

A static linux binary has to be branded, else you will shoot yourself in the
foot (it may cause the system to reboot or do other things you don't want to
happen). A shared linux ELF object may work as intended, but if you want to
do it properly, you have to brand them. I vote for doing it properly.

The "find ... brandelf" line is from the linux_base-8 port, althought I only
brand files in /{,usr/}{,s}bin there... obviously it needs to be extended
(not only in the linux_base-8 port). Patches are welcome.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
Robot, n:
	University administrator.





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