From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j47FlEVP011011 for ; Sat, 7 May 2005 15:47:14 GMT Received: from p061204005082.ppp.prin.ne.jp ([61.204.5.82] helo=linux.box) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DURWQ-0003ay-DS for gentoo-dev@lists.gentoo.org; Sat, 07 May 2005 15:47:21 +0000 Received: by linux.box (Postfix, from userid 1000) id 054FA45DB9; Sun, 8 May 2005 00:47:10 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] new glep draft: Portage as a secondary package manager Date: Sun, 8 May 2005 00:47:05 +0900 User-Agent: KMail/1.8 References: <42761B77.4030206@salomon.at> <20050507070817.GA12172@exodus.wit.org> <20050507154950.1ccd0596@snowdrop> In-Reply-To: <20050507154950.1ccd0596@snowdrop> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart22315603.CnBs4EahGi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505080047.08922.jstubbs@gentoo.org> X-Archives-Salt: 8256e400-7b97-43d9-ab11-d5fa51b213f1 X-Archives-Hash: ffdde2364c38979affe4cfd936759009 --nextPart22315603.CnBs4EahGi Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 07 May 2005 23:49, Ciaran McCreesh wrote: > Hrm. Being able to say "I need xyz installed globally, and abc installed > either globally or at home level" would work if and only if there was a > way of finding out where abc and xyz had been installed. The "being able to say" is the harder part. ;) Having a package find out where it's dependencies are is quite simple.=20 Enhancing portageq to support it will be one of the smaller tasks in all of= =20 this. Wrapping that with a dev-friendly bash function will be even easier. So to summarise prefixed install support thus far: 1 Portage needs to be enhanced with a new SUPPORTS so that packages can specify that they can install into a non-standard location. 2 Portage needs to be enhanced with new ebuild support functions for detecting the location of a dependency. 3 Portage needs to supply PREFIX and AFFIX variables to those ebuilds that support non-standard location installs, which specify executable and configuration/data locations respectively. 4 Portage needs a base PREFIX and AFFIX to install to by default. 5 Packages need to be updated for support of these feature. - Packages that have a standard location of / rather than /usr install i= nto AFFIX rather than PREFIX. And to add my own little pieces of wisdom: 6 Portage must disallow the creation of binary packages where all dependencies are not in the same PREFIX. 7 Portage needs to be able to configured with one-way dependency allowance between installed package databases. For example, ~ installed packages a= re allowed to depend on / installed packages. I was planning to summarize home install support here, but your statement=20 above has confused me a little. Is there any case where a package *must* ha= ve=20 a dependency installed globally? If so, I can't see it. So unless it is shown otherwise, home install support requires: 8 SUPPORTS needs to be enhanced with another indicator for packages to=20 specify that they can do home installs. 9 Emerge needs to be enhanced to allow the user to specify if they want a home install or a prefixed install of a package. 10 Portage needs to tell the ebuild whether it should perform a home instal= l=20 or a prefixed install. Does that about cover it? Regards, Jason Stubbs --nextPart22315603.CnBs4EahGi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCfOL8xvWNPsk/ZP4RAuhOAKCU4jiJdHL4e3Vra7hOQrO7LKVCkACgpP8N OOGedzwmMR+QHbFcr7TP2J8= =8XdQ -----END PGP SIGNATURE----- --nextPart22315603.CnBs4EahGi-- -- gentoo-dev@gentoo.org mailing list