Click to See Complete Forum and Search --> : Using Portage...


Dun'kalis
01-01-2003, 09:02 PM
on other distros!

Yes, I just got Portage working on CRUX. I don't like CRUX's package management,
but didn't want to start over.

WARNING: NOT FOR THE FAINT OF HEART!

1. Download the portage tarball from any Gentoo mirror. Its the
portage-x.x.x.tar.bz2 package.

2. Unpack that, and go down in to it.

3. Copy bin/ to /usr/bin/

4. Copy man/*.1 to /usr/man/man1/

5. Copy man/*.5 to /usr/man/man5/

6. Copy pym/ to /usr/lib/python2.2/site-packages/

7. cd src/python-missingos

8. ./setup.py install

9. cd ../sandbox-1.1

10. make && make install

11. emerge sync. If it complains about rsync, install it from rsync.samba.org

11.b. Go to /usr/portage/profiles, and copy which ones you want to
/etc/make.profiles/.

12. emerge inject sys-libs/glibc-you-have-installed

13. emerge inject sys-devel/gcc-version-you-have-installed

14. emerge portage. If it complains about tar, you need to do some things first.

14.a. Edit /usr/bin/ebuild.sh at the requested lines, and change --no-same-owner
to --same-owner for all compression types.

14.b. emerge tar

14.c. emerge portage

15. Portage is installed! I'd recommend rebuilding your toolchain and most
applications. If you don't want to rebuild a certain program, use emerge inject
category/packagname-packageversion. Read the portage manuals for more.

Impressive, huh?

WARNING: PORTAGE WILL DESTROY YOUR /etc/ld.so.conf FILE! YOU ***MUST*** ADD ld.so.conf TO /etc/env.d ONCE PORTAGE IS INSTALLED, THEN RUN env-update. MAKE SURE YOU HAVE /usr/X11R6/lib/ IN YOUR ld.so.conf!!!

Dun'kalis
01-02-2003, 02:49 AM
You'll run in to a few odd problems here and there, especially with emerge portage. However, once that was done, I emerged a new gtk-1.2, and now I'm emerging a new gcc-3.2 (already have it installed, just not with portage). Install every application you can think of via Portage, so that you can get your system under proper management.

What I'm not placing under management (yet):

XFree86 (waiting for XFree86 4.3)
KDE 3.1 (waiting for KDE 3.1 final)
glibc (not unless I decide to do a total world rebuild)

I haven't installed init yet, so I'm still running off of bsdinit, which I don't like. No elegance.

Sastraxi
01-02-2003, 02:56 AM
I'm building a Linux-from-scratch (LFS) distro on my main machine. Will this work for LFS distros?

And does it use the same file (I forget what it's called now) for the generic compile-time options (without KDE, with gnome, etc., -funroll-all-loops, -O3, etc.)? It would be a treat to have portage on an LFS system :)

Dun'kalis
01-02-2003, 03:01 AM
I can't imagine it working well on a binary distro (Debian, Red Hat, Mandrake), but source should be no problem. LFS should work fine.

Dun'kalis
01-02-2003, 10:43 PM
UPDATE:

Since you'll be encountering bunches of odd problems, here's a quicky guide to fixing some of them:

Problem: emerge * complains about missing a program e*!

Solution: emerge sys-apps/baselayout. This installs init and some other Gentoo-y stuff (that surprised me when it happened)

Problem: Debianutils won't compile without pmake! But pmake isn't installed!

Answer: emerge pmake

If you have a problem installing any package, look at the error message and the part before it dies. Usually, it will tell you what program is causing problems. Just emerge it.

Sorta like dependency hell until you get all the basic tools reinstalled.