From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 11:57:26 2006 Return-Path: X-Original-To: freebsd-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 AE99616A403 for ; Mon, 11 Sep 2006 11:57:26 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from gw.ipt.ru (gw.ipt.ru [80.253.10.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1593843D4C for ; Mon, 11 Sep 2006 11:57:21 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru (localhost [127.0.0.1]) by srv.sem.ipt.ru (8.13.8/8.13.8) with ESMTP id k8B8wShN044345; Mon, 11 Sep 2006 12:58:28 +0400 (MSD) (envelope-from bsam@ipt.ru) Received: (from bsam@localhost) by srv.sem.ipt.ru (8.13.8/8.13.8/Submit) id k8B8wJhU044344; Mon, 11 Sep 2006 12:58:19 +0400 (MSD) (envelope-from bsam@ipt.ru) X-Authentication-Warning: srv.sem.ipt.ru: bsam set sender to bsam@ipt.ru using -f To: Alexander Leidinger References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> <45045617.9010508@SYSTEM.PL> <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> From: Boris Samorodov Date: Mon, 11 Sep 2006 12:58:19 +0400 In-Reply-To: <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> (Alexander Leidinger's message of "Mon, 11 Sep 2006 09:36:16 +0200") Message-ID: <94662804@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcin Cieslak , freebsd-emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal 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: Mon, 11 Sep 2006 11:57:26 -0000 On Mon, 11 Sep 2006 09:36:16 +0200 Alexander Leidinger wrote: > Maybe we should only brand ld-linux.so.2 but no other libs. Maybe this > will work. Boris, we should play around with this and see if something > breaks. If not, we should commit this and close the corresponding PR > (linux ldd doesn't work). I don't know if I get time for this before > the WE. OK. Here is the patch (for tests only, w/o PORTREVISON bump): ----- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/linux_base-fc4/Makefile,v retrieving revision 1.19 diff -u -r1.19 Makefile --- Makefile 18 Aug 2006 17:02:37 -0000 1.19 +++ Makefile 11 Sep 2006 08:51:17 -0000 @@ -184,6 +184,7 @@ ${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \ | ${GREP} ELF | ${CUT} -d : -f 1 \ | ${XARGS} ${BRANDELF} -t Linux + @${BRANDELF} -t Linux ${WRKSRC}/lib/ld-linux.so.2 # Restore the status quo for usr/bin/*db4* files @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4* ----- Those who wish to test it, please do. Any feedback is appreciated. Thanks. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve