From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 3 18:32:38 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 448FC16A41A for ; Mon, 3 Dec 2007 18:32:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 2E63C13C465 for ; Mon, 3 Dec 2007 18:32:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 15997 invoked from network); 3 Dec 2007 18:32:37 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 3 Dec 2007 18:32:37 -0000 Message-ID: <47544B5A.9080903@chuckr.org> Date: Mon, 03 Dec 2007 13:30:50 -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: Alexander Leidinger References: <1196470143.4750af7f6accf@webmail.rawbw.com> <4752F825.8020505@chuckr.org> <20071203144159.irjelm2c0c8o8csw@webmail.leidinger.net> In-Reply-To: <20071203144159.irjelm2c0c8o8csw@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Yuri , freebsd-hackers@freebsd.org 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: Mon, 03 Dec 2007 18:32:38 -0000 Alexander Leidinger wrote: > Quoting Chuck Robey (from Sun, 02 Dec 2007 13:23:33 > -0500): > >> You've gotten some good suggestions, but I might add one more, I don't >> think it's been mentioned. I have foound, myself in the last 2 weeks, >> some FreeBSD ports putting in Linux tools, installing stuff in the >> wrong places, like sticking in SYSV libraries in /usr/local/lib instead >> of /compat/linux/usr/lib. I verified in that case that the Linux > > If they put the libs directly in /usr/local/lib instead of > /usr/local/lib/, then it is a big error. > But if it is in a subdirectory where no FreeBSD lib resides, it is ok > (the linux browser sets LD_LIBRARY_PATH in the start script to the right > path). > > Have a look how the native browser works, the private libs are not in > ldconfig either and the browser start script sets the library path for > the browser binary. At least it did this the last time I checked... > Does that mean that all programs needing those libs must have wrapper shells, so as ot implement the LD_LIBRARY_PATH? I know of programs that bomb if that's even set at all, and I think it can be a security tool, and I just think that there is no good reason for installing Linux libs outside of the compat tree. There isn't any good reason not to use the compat tree, is there? You know, there's a local there too, so you don't even need to be ignoring LOCALBASE, which is something I don't care for ports to do at all. I just don't see any reason for such a obviously pathological thing to occur. Just because it's possible to fix it, program by program, by implementing wrapper scripts, you aren't going to tell me that's some sort of elegant fix, so the fact that doing such a thing is justified?