I guess it would be quite handy to have a actively maintained setup script/Makefile (or anything similar) for Portage, in order to be able to install Portage on non-gentoo systems. Maybe this bug entry could be used to throw around some ideas and discuss whether such a script would be useful. On the fly I stumbled upon these two threads in the forums, maybe some of the ideas could be used. - http://forums.gentoo.org/viewtopic.php?t=125553 - http://forums.gentoo.org/viewtopic.php?t=28559 Reproducible: Always Steps to Reproduce:
you mean the gentoo-prefix project?
Aren't stage tarballs good enough?
I'm aware of the gentoo-prefix project and of course the stage tarballs are good enough, and there is nothing wrong about it. I thought of an tarball of the Portage sources including a configure/setup script, which could be convenient in some situations in order to install Portage without having to use a prefix or a whole stage tarball. Basically being able to /just/ install the Portage system and later run a emerge --sync or whatever (after that some configuration was done).
Ah, and the .tbz2 packages. It should be enough to extract portage-*.tbz2 into the root to get a working Portage installation.
Michał Górny, Hmm this confuses me. As far as I know the Portage snapshots only contain the portage tree as in /usr/portage; or am I wrong? Did you mean a different tar package?
(In reply to comment #5) > Hmm this confuses me. As far as I know the Portage snapshots only contain the > portage tree as in /usr/portage; or am I wrong? Did you mean a different tar > package? I meant the 'binary' package [1]. [1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=3#doc_chap4
Here's an example tbz2 file: http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/portage-2.1.8.3.tbz2 Anyway, I'm not opposed to migrating code out of the ebuild and into a Makefile or setup.py or whatnot.
Oh I see, got it. I didn't really think about using the binary package yet, that's a good point. Maybe this procedure should be documented somewhere?
If we add portage to PyPI, then people will be able to use the pip installer to install portage on other distros.
There's a Makefile in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ea755bfec221290cb1f3b09aae3a885996146458
This is in 2.2.0_alpha91, but I'll leave this bug open until it's in an unmasked release.
This is fixed in 2.1.10.50.