From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 13:49:06 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EED316A41F for ; Fri, 28 Oct 2005 13:49:06 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9982143D45 for ; Fri, 28 Oct 2005 13:49:05 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C8DF.dip.t-dialin.net [84.165.200.223]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9SDT2Wp063225; Fri, 28 Oct 2005 15:29:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9SDmxm4058902; Fri, 28 Oct 2005 15:48:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Fri, 28 Oct 2005 15:48:59 +0200 Message-ID: <20051028154859.6xvaydvtes88gows@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 28 Oct 2005 15:48:59 +0200 From: Alexander Leidinger To: Ulrich Spoerlein 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> In-Reply-To: <20051028100044.GB1126@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 13:49:06 -0000 Ulrich Spoerlein 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.