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 j43ECpe9020175 for ; Tue, 3 May 2005 14:12:52 GMT Received: from [62.254.189.226] (helo=snowdrop) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DSy8u-0001GH-Rx for gentoo-dev@lists.gentoo.org; Tue, 03 May 2005 14:12:57 +0000 Received: from localhost ([127.0.0.1] helo=snowdrop) by snowdrop with esmtp (Exim 4.43) id 1DSy8N-00036H-VY for gentoo-dev@lists.gentoo.org; Tue, 03 May 2005 15:12:24 +0100 Date: Tue, 3 May 2005 15:12:20 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] new glep draft: Portage as a secondary package manager Message-ID: <20050503151220.076cc62f@snowdrop> In-Reply-To: <20050503000229.GA10998@exodus.wit.org> References: <42761B77.4030206@salomon.at> <20050502151356.6d9ca385@snowdrop> <20050503000229.GA10998@exodus.wit.org> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Message-Flag: It's a feature, not a bug 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="Signature_Tue__3_May_2005_15_12_20_+0100_t2CI6.k=zE+0h1uw"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Archives-Salt: 51ac3ab0-121a-4c4a-b190-9da4daa15061 X-Archives-Hash: 3dfb9280e1d3b66d2e99613e19fd8cac --Signature_Tue__3_May_2005_15_12_20_+0100_t2CI6.k=zE+0h1uw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 2 May 2005 19:02:29 -0500 Brian Harring wrote: | State said problem for the general community. Guessing you're=20 | referencing the issue/request that being able to manage home, and=20 | 'global' installations? |=20 | I'd still posit that the issue of installing to a user's home when=20 | portage's base prefix is /usr/local (fex) is a seperate issue. What=20 | you were requesting for vim plugins goes beyond haubi's initial=20 | goals... Ok, here's the main issue. Simply changing prefix isn't enough to automatically make every package in the tree work. A heck of a lot of them will need manual modification, and there's no easy way to figure out which these are. So... My suggested way around this was to have a variable in ebuilds. Call it something like ICANINSTALLTO (that name sucks, come up with something better), which defaults to ICANINSTALLTO=3D"usr". Ebuilds which have been explicitly checked and designed by the maintainer for prefix installs get ICANINSTALLTO=3D"usr prefix". This also allows us to do other cool stuff like ICANINSTALLTO=3D"home", for things like vim and gkrellm plugins which can go in ~/.vim/ and ~/.gkrellm2/plugins/ respectively. Thing is, if we introduce the PREFIX feature, people will expect it to actually work. It won't, at least not straight away, because there are so many ebuilds that use more than econf to get the prefix figured out. By whitelisting we can at least display a nice "you can't install this package in a prefix" message. Another issue... Portage installs to /usr/local are no good, because there might be other non-portage installs there too. If we're installing to a prefix, we have to be the *only* thing installing there. No other packages, not even other manual installs. Yet another issue... As it stands, all deps must be installed into the given PREFIX. This is messy. Is there a way around this? This would be less of a problem with ICANINSTALLTO=3D"home" -- presumably for these portage could pass a var to the ebuild telling it in which prefix to look for its deps. That'll do for now. I'll shoot some more holes in it once these have been figured out. --=20 Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm --Signature_Tue__3_May_2005_15_12_20_+0100_t2CI6.k=zE+0h1uw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCd4bG96zL6DUtXhERAvksAJ4hssRiXxT9G6ehKSzua1+yQPXhOACfY10z i0zwLwAMIovURw3g1yNe+lw= =BBOi -----END PGP SIGNATURE----- --Signature_Tue__3_May_2005_15_12_20_+0100_t2CI6.k=zE+0h1uw-- -- gentoo-dev@gentoo.org mailing list