From owner-freebsd-arch@FreeBSD.ORG Sat Feb 14 00:39:27 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D255106566C; Sat, 14 Feb 2009 00:39:27 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id 54EA58FC12; Sat, 14 Feb 2009 00:39:26 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 13 Feb 2009 16:40:07 -0800 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.14.1/8.14.1) with ESMTP id n1E0dQrs098987; Fri, 13 Feb 2009 16:39:26 -0800 (PST) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.3/8.14.3/Submit) id n1E0dQ1p098986; Fri, 13 Feb 2009 16:39:26 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200902140039.n1E0dQ1p098986@ambrisko.com> In-Reply-To: <20090213213042.GA58675@lor.one-eyed-alien.net> To: Brooks Davis Date: Fri, 13 Feb 2009 16:39:26 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: Kostik Belousov , arch@freebsd.org, David Schultz Subject: Re: rtld enhancement to add osversion sub-directory search X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 00:39:27 -0000 Brooks Davis writes: -- Start of PGP signed section. | On Fri, Feb 13, 2009 at 01:08:56PM -0800, Doug Ambrisko wrote: | > David Schultz writes: | > | On Thu, Feb 12, 2009, Doug Ambrisko wrote: | > | > Kostik Belousov writes: | > | > | There is a popular feature, unfortunately, not supported by FreeBSD | > | > | ld.so, called Dynamic String Tokens, see | > | > | http://docs.sun.com/app/docs/doc/817-1984/appendixc-4?l=en&a=view | > | > | | > | > | I have almost abandoned patch that adds support for $ORIGIN, $OSREL, | > | > | $OSNAME, and $PLATFORM. Quite amazingly, it merged with today CURRENT | > | > | without serious conflicts. | > | > | http://people.freebsd.org/~kib/misc/rtld_locks.4.patch | > | > | > | > That is an interesting feature, however, it almost seems backwards for | > | > me if I understand it correctly. I need old binaries to find the library | > | > it was built with and not new ones based on the base OS. The plus that | > | > I see with their feature is for a library that has been optimized for a | > | > specific type of CPU etc. | > | | > | The Solaris rtld features are very useful when you want to | > | export a volume with a bunch of apps over NFS, and the clients are | > | running different releases or different architectures. It can | > | probably also solve your problem if you bother to place different | > | library versions in different directories and set your library | > | path appropriately. | > | > Unless I missed something it seems to be an inverse feature to | > what I want since it expands based on the current kernel's | > uname type results. I need it to expand based on the original OS | > that it was built on. I'll have to see if my Solaris box at work | > has this feature or not. I can't change LD_LIBRARY_PATH etc. | > type things. Doing ldconfig -m of various things doesn't help | > since that can find the wrong one. My idea was to do something | > like what happens for 32bit on 64bit and Linux on FreeBSD in that | > it looks at osversion specific places then the standard. | | While I commented on the Dynamic String Tokens and think it might be | useful, that's a distraction for your proposal. I think you proposal | sounds useful as well. If it was in 7 by the time I upgrade my cluster | from 6, I'd probably use it to ease the transition. Since my scheme seems useful, then I'll proceed to clean up my patch some more then send it out for people to play with and comment on. Thanks, Doug A.