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 1NDbx1-0000LP-3G for garchives@archives.gentoo.org; Thu, 26 Nov 2009 10:51:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC68AE087A; Thu, 26 Nov 2009 10:51:22 +0000 (UTC) Received: from amun.cheops.ods.org (amun.cheops.ods.org [82.95.138.191]) by pigeon.gentoo.org (Postfix) with ESMTP id A56EFE087A for ; Thu, 26 Nov 2009 10:51:22 +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 1NDbwX-0007d9-6N for gentoo-dev@lists.gentoo.org; Thu, 26 Nov 2009 11:51:22 +0100 Date: Thu, 26 Nov 2009 11:51:06 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Gentoo Prefix: on EPREFIX, ED and EROOT inside ebuilds Message-ID: <20091126105106.GN19586@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20091018091154.GB464@gentoo.org> <7c612fc60911191626p7c32374fhf597787f2d30dfd3@mail.gmail.com> <4B05F3F3.9020902@gentoo.org> <20091120090338.GK19586@gentoo.org> <7c612fc60911251543p70dfa240gf09feb46f18e3323@mail.gmail.com> <20091126085303.GG19586@gentoo.org> <20091126101009.GM19586@gentoo.org> 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: 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: be0fef72-3b56-41b9-9684-6cc12bf39d9f X-Archives-Hash: 3fa2bddf767ab1062dfef1015f81c1cd On 26-11-2009 10:37:10 +0000, Duncan wrote: > Fabian Groffen posted on Thu, 26 Nov 2009 11:10:09 +0100 as excerpted: > > > Gentoo Prefix tries to be as much self-sufficient as possible, and hence > > applications *must* not reference the host system, unless absolutely > > necessary, such as for e.g. /lib/libc.so. > > Thanks. Host libc /does/ make sense as "absolutely necessary. > > Are there any less obvious ones, say of the type that might reach out and Some that you may find are: /lib/libm.so /lib/libsocket.so /lib/libpthread.so /lib/libnsl.so On a side note, we have a question about this in our prefix-ebuild-quiz[1] (question 5 from the second section). > grab an unsuspecting dev trying to make his ebuilds prefix compliant? It > seems to me that enumerating all (or all non-corner) cases where > referencing the host is desired/mandatory, with a blanket rule saying > reference prefix unless it's a known exception, should be by /far/ the > easiest alternative, here. I think there's unfortunately no simple way to tell what should be in and what unfortunately has to be out. It depends a lot on the host system. I feel -- but I can't back this up with hard evidence -- that it are usually the libs that are not in *DEPEND that can only be available in the host system. Basically because they usually are part of the libc, which we assume to be installed. [1] http://dev.gentoo.org/~grobian/prefix-quiz -- Fabian Groffen Gentoo on a different level