From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NDaG7-0005oX-CS for garchives@archives.gentoo.org; Thu, 26 Nov 2009 09:03:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D39B5E086A; Thu, 26 Nov 2009 09:03:10 +0000 (UTC) Received: from amun.cheops.ods.org (amun.cheops.ods.org [82.95.138.191]) by pigeon.gentoo.org (Postfix) with ESMTP id 9F5CEE086A for ; Thu, 26 Nov 2009 09:03:10 +0000 (UTC) Received: from tefnut.cheops.ods.org ([2001:888:1022:0:211:24ff:fe37:e46e] helo=gentoo.org) by amun.cheops.ods.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1NDaFp-0007Az-C7 for gentoo-dev@lists.gentoo.org; Thu, 26 Nov 2009 10:03:10 +0100 Date: Thu, 26 Nov 2009 10:02:54 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Gentoo Prefix: on EPREFIX, ED and EROOT inside ebuilds Message-ID: <20091126090254.GH19586@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20091018091154.GB464@gentoo.org> <7c612fc60911191626p7c32374fhf597787f2d30dfd3@mail.gmail.com> <7c612fc60911251601q44486356h7899f0eb9116dd0a@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7c612fc60911251601q44486356h7899f0eb9116dd0a@mail.gmail.com> User-Agent: Mutt/1.5.20 (Darwin 8.11.0, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Content-Scanned: by amun.cheops.ods.org (Exim Exiscan) using SpamAssassin and ClamAV X-Archives-Salt: 184f80d2-1e27-4318-b977-b458a9614ef4 X-Archives-Hash: a0e85afc73e1be8013118128ca61a794 On 25-11-2009 17:01:19 -0700, Denis Dupeyron wrote: > It looks like this question is still unanswered: > > On Thu, Nov 19, 2009 at 5:26 PM, Denis Dupeyron wrote: > >> How are dynamically linked set*id programs going to work? Depends on how the host OS/libc handles this :) If you're root, you can install a program that any user can call and run as if that user were root. If you're a normal user, you just install a program that any user can call and run as if that user were you. If you refer to GNU glibc ignoring or greatly limiting variables like LD_LIBRARY_PATH, then there is no problem in that for Prefix, since these variables are considered harmful anyway. We don't use them. Prefix uses RUNPATH (RPATH) in ELF objects to have the loader find the correct libraries at runtime without any tricks. This is for instance handy when someone calls a binary from a Prefix without having properly initialised the Prefix environment. While this is not what we advise people to do, it can work fine for applications like subversion. -- Fabian Groffen Gentoo on a different level