Click to See Complete Forum and Search --> : Portage On Any Distro Guide :)


oubipaws
07-07-2003, 09:33 AM
Copy the following script and save it...
chmod u+x filename

# PortageOnAnySystem Version 1
# Written By Oubipaws
wget http://gentoo.oregonstate.edu/distfiles/portage-2.0.48-r1.tar.bz2
mkdir tempinstall
cd tempinstall
tar xvjpf ../portage*bz2
cd portage*
cd bin/
cp * /usr/bin
cd ../pym
cp * /usr/lib/python2.2/site-packages
cd ../man
cp *.1 /usr/man/man1
cp *.5 /usr/man/man5
cd ../src/python-missingos
./setup.py install
cd ../sandbox-1.1
make && make install
cd ../../cnf
cp * /etc
cd ..
cp make.profile/ /etc
echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd
echo "portage::250:portage" >> /etc/group
cp /usr/bin/ebuild* /usr/sbin/.
ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile
cp /usr/bin/extra_functions.sh /usr/lib/portage/bin/.
emerge sync
emerge inject sys-devel/gcc-3.2.3
emerge inject sys-libs/glibc-2.2.5
emerge system


This script 'did' give me an error when I installed it on the following:
P2 333mhz laptop: I tried running the script on both Mandrake 9.1 and and LFS distro. Both gave me errors until I restarted the system after the install of portage.
P4 1.5ghz Desktop:I tried running the script on Red Hat 9, but when I emerge system and it gets dependencies, the compile of bzip2 fails. You must compile this manually when using RH9

If you find any more errors, or issues, please email me at: oubipaws@myrealbox.com

mdwatts
07-07-2003, 10:24 AM
Polls should be posted in the /dev/random forum though you should consider if the poll is a valid topic before posting.

The 'How I did it' forum is only for members submitting howto's/guides/tutorials.

oubipaws
07-07-2003, 10:29 AM
Sorry, I thought the poll went along with the topic being discussed.

mdwatts
07-07-2003, 10:40 AM
It should though it really is not appropriate in the 'How I did it' forum.

If it is a valid (well thought of) poll, then try to post them in /dev/random instead of the Linux technical type forums.

Will anyone really benefit from

Leave portage on gentoo, nothing else!
Bring it to as many systems as possible!

or is it just wasting members time and JL resources?

Contact Mandrake, Redhat etc. and ask them if they would consider including a version of Portage with their distro.

Hayl
07-07-2003, 11:05 AM
the problem with installing it on another distro is that you have no database to work from. you have al teh versions of apps that the original distro started with and then you overlay portage on it and all the dependancies are screwed.

the other problem is that once you start using it, you have to only us portage otherwise you end up with RPM databses and portage databases independantly being updated and they don't know what each other has.

if you did it and emerged everything over top, and only used portage, then you would end up with a sort-of gentoo system in the end except - see my next point.

the other thing wrong with this is that Gentoo uses completely different init scripts from other distros, closer to what debian does but not even the same as that so once you emerge somthing that overwrites an init script your system could quite possibly become screwed.

if you do this and your system becomes screwed up (see above points) don't come crying to me for help.

mdwatts
07-07-2003, 11:42 AM
Hence the reason I suggested you contact the distros to see if they would consider porting Portage to their systems.

oubipaws
07-07-2003, 12:00 PM
I'm not using the script above... I'm just toying around with, I am using it with both Dux and an LFS distro I am working on.
Dux works fine because it is gentoo...
LFS works fine because I don't have any rpm support and I installed portage right from the start.

About your points, I know this will screw your system up, thats why you are suppose to go and read all of the portage manuals and such. In the gentoo forums, their are all kinds of errors that people have had. But I know when I brought up the idea of portage in other distros on some IRC channels the other day, people were interested. So I spent a day or two working on a script and testing it.

mdwatts
07-07-2003, 12:05 PM
It is a good idea though you will need to contact the distros (as I've suggested) as we of course do not have any control over what package installation apps are included with any of them.

Give it a try. Mandrake, Redhat etc. See what they say.

oubipaws
07-07-2003, 12:15 PM
I've emailed red hat and asked how this would work and to see if it's possible to include both portage and rpms... I'll see what they say.

i'm working on a letter to mandrake and suse now

JamminJoeyB
07-10-2003, 04:12 PM
Have you tried this on Slackware?

oubipaws
07-10-2003, 04:17 PM
um nope.. I can try it tonight though and let you know how it works

oubipaws
07-11-2003, 01:21 PM
joeyB, portage does work on slackware... no trial or error, worked the first time

JamminJoeyB
07-14-2003, 08:38 AM
oubipaws, thanks. I am working on setting up a slackware system now. I'll give this a shot and see. Since I mostly compile apps from source now this would be a nice addition to be able to use. Since it's a fresh install should something go wrong it's not like I will lose a ton.

I wonder if I just installed a very basic system, just enough to get it to boot and then emerged everything else I would pretty much have a hybrid slack/gentoo or slacktoo system. That would keep the slack packs to a minimum.

oubipaws
07-14-2003, 08:51 AM
I have a basic Slackware install on one of my old laptops and I have it running portage...

I just did a fresh install of slack... ran emegre sync and off i went with compile stuff

Good Luck! :D