From owner-freebsd-arch@FreeBSD.ORG Fri Feb 13 21:32:00 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 2CE4C106566C for ; Fri, 13 Feb 2009 21:32:00 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id CF7308FC18 for ; Fri, 13 Feb 2009 21:31:59 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n1DLUghu059149; Fri, 13 Feb 2009 15:30:42 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n1DLUgGH059148; Fri, 13 Feb 2009 15:30:42 -0600 (CST) (envelope-from brooks) Date: Fri, 13 Feb 2009 15:30:42 -0600 From: Brooks Davis To: Doug Ambrisko Message-ID: <20090213213042.GA58675@lor.one-eyed-alien.net> References: <20090213001935.GA21752@zim.MIT.EDU> <200902132108.n1DL8uG2086318@ambrisko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <200902132108.n1DL8uG2086318@ambrisko.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Fri, 13 Feb 2009 15:30:42 -0600 (CST) 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: Fri, 13 Feb 2009 21:32:00 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3Den&a=3Dvi= ew > | > |=20 > | > | I have almost abandoned patch that adds support for $ORIGIN, $OSREL, > | > | $OSNAME, and $PLATFORM. Quite amazingly, it merged with today CURRE= NT > | > | without serious conflicts. > | > | http://people.freebsd.org/~kib/misc/rtld_locks.4.patch > | >=20 > | > That is an interesting feature, however, it almost seems backwards for > | > me if I understand it correctly. I need old binaries to find the lib= rary=20 > | > it was built with and not new ones based on the base OS. The plus th= at=20 > | > I see with their feature is for a library that has been optimized for= a=20 > | > specific type of CPU etc. > |=20 > | 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. >=20 > Unless I missed something it seems to be an inverse feature to=20 > 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 =66rom 6, I'd probably use it to ease the transition. -- Brooks --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFJleaBXY6L6fI4GtQRAsEOAKCRUuMajTu4LLDzU8iYmMNdYJQsEwCgqANx LGwB0V1j3YnJ1CxRK1RxtvY= =x12C -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--