From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 2 22:01:41 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60C1416A41F for ; Fri, 2 Sep 2005 22:01:41 +0000 (GMT) (envelope-from vkushnir@i.kiev.ua) Received: from horse.iptelecom.net.ua (horse.iptelecom.net.ua [212.9.224.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6443643D45 for ; Fri, 2 Sep 2005 22:01:40 +0000 (GMT) (envelope-from vkushnir@i.kiev.ua) Received: from h88.241.159.dialup.iptcom.net ([213.159.241.88]:46292 "EHLO kushnir1.kiev.ua" ident: "SOCKFAULT1" whoson: "vkushnir") by horse.iptelecom.net.ua with ESMTP id S1219376AbVIBWBh (INRCPT ); Sat, 3 Sep 2005 01:01:37 +0300 Received: from kushnir1.kiev.ua (kushnir1.kiev.ua [10.0.0.1]) by kushnir1.kiev.ua (8.13.4/8.13.3) with ESMTP id j82M1ZXE003511 for ; Sat, 3 Sep 2005 01:01:35 +0300 (EEST) (envelope-from vkushnir@i.kiev.ua) Date: Sat, 3 Sep 2005 01:01:35 +0300 (EEST) From: Vladimir Kushnir X-X-Sender: vkushnir@kushnir1.kiev.ua To: hackers@freebsd.org Message-ID: <20050903004621.L1919@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: libmap.conf: mapping directories? 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, 02 Sep 2005 22:01:41 -0000 Hi all, Is it doable to teach rtld (via libmap.conf) to map directories rather than libraries one-by-one? My problem is: I'm trying to use i386-built packages on my amd64 box. Most of them don't work 'cause of RPATH set to /usr/{X11R6,local}/lib where (obviously) 64-bit libs reside. And this is one of the reasons ia32 compatibility under amd64 arch is almost useless. One way: to completely remove RPATH (with chrpath, for example - BTW, this is nice enough utility but to make it work with 32-bit objects one has to use some workarounds). It's not always convenient, though. Much, much better it would be to place ALL of ia32 compat stuff into something like /compat/freebsd32 like we do it for Linux stuff, but somehow nobody seems to be even remotely interested. And the last way I see (a workaround as well but hey, it's better than nothing at all) would be $SUBJECT. So my question is: is it possible to map, say, /usr/local/lib to /usr/local/lib32 and if yes how do I do it? TIA, Vladimir