From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 14 19:54:46 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6498A16A421 for ; Fri, 14 Dec 2007 19:54:46 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.freebsd.org (Postfix) with ESMTP id 31D9113C4EA for ; Fri, 14 Dec 2007 19:54:46 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 31309 invoked from network); 14 Dec 2007 19:54:45 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 14 Dec 2007 19:54:45 -0000 Message-ID: <4762DEEA.2070703@chuckr.org> Date: Fri, 14 Dec 2007 14:52:10 -0500 From: Chuck Robey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.9) Gecko/20071107 SeaMonkey/1.1.6 MIME-Version: 1.0 To: Alex Dupre References: <1196470143.4750af7f6accf@webmail.rawbw.com> <4752F825.8020505@chuckr.org> <20071203144159.irjelm2c0c8o8csw@webmail.leidinger.net> <47544B5A.9080903@chuckr.org> <20071205122123.phwu6uh7jksgcwk8@webmail.leidinger.net> <4760A7FE.9070409@chuckr.org> <20071213100821.bet532peog8g488s@webmail.leidinger.net> <4762989F.9070507@FreeBSD.org> In-Reply-To: <4762989F.9070507@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 14 Dec 2007 20:02:21 +0000 Cc: Alexander Leidinger , freebsd-hackers@freebsd.org, Yuri Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 19:54:46 -0000 Alex Dupre wrote: > Alexander Leidinger ha scritto: >> To achieve this goal we have 2 possibilities, either we install >> everything into LINUXBASE and install a wrapper in LOCALBASE, or we >> install everything in a safe location in LOCALBASE. The first part >> requires that the maintainers of the linux program play some tricks in >> their port (plist and/or Makfile). If they fail to do this, it >> increases the load of portmgr from time to time (build failures on the >> build cluster). In the second case (install into a safe place in >> LOCALBASE), portmgr is out of the loop, as if something goes wrong, >> the port maintainer and/or emulation@ is asked for help, as it is a >> bug of the port. > > I admit that probably I'm using only one or two linux applications and > I've never created a linux port, but I think the right way is the former > possibility, the latter seems a hack to me. It could be harder for > unexperienced maintainers, but once we defined the correct way to add a > wrapper in LOCALBASE (and put it in the porter's handbook), I think the > work for maintainers/committers should be quite easy. What are the other > issues that make the former solution so difficult? > Are you saying that adding a wrapper to every single linux app is the right way to go? And just putting things in their defined spots (as you've been doing since yoiu began using Unix, sticking libs in /usr/lib and executablees in /usr/bin, and addons in the same spots in /usr/local) is wrong? I am saying, you have a new exec type, stick those in their new spots, then they all run without any wrappers, just working as things have been working since unix began. I guess I might be wrong, but I have to say, wrapping everything really does seem to me to be the hack.