Emerge(Portage) experiement on Fedora Core 2...

From: Antti A-737 (anttia737_at_hotmail.com)
Date: 05/30/04


Date: Sun, 30 May 2004 19:10:51 +0300

Hello!

I am not sure if you don't like this, but I am going to ask anyway since
you use emerge more than me.

I tried to find Emerge sources from web so that I could compile it for
Fedora 2. But I didn't found anything useful. So then I extracted
Stage-3 2004.0 gentoo pakage to hard drive and seeked out files of
emerge. I copied those files into same spots on Fedora Core 2 tree.

Okey first error while driving emerge was this:
root@localhost anxa]# emerge

portage: 'portage' user or group missing. Please update baselayout
          and merge portage user(250) and group(250) into your passwd
          and group files. Non-root compilation is disabled until then.
          Also note that non-root/wheel users will need to be added to
          the portage group to do portage commands.

          For the defaults, line 1 goes into passwd, and 2 into group.
          portage:x:250:250:portage:/var/tmp/portage:/bin/false
          portage::250:portage

>>> /var/cache/edb doesn't exist, creating it...
>>> /var/cache/edb/dep doesn't exist, creating it...
portage: the directory specified in your PORTAGE_TMPDIR variable, ","
does not exist. Please create this directory or correct your
PORTAGE_TMPDIR setting.

I fixed that by creating portage "user" and typing into console this:
export PORTAGE_TMPDIR=/tmp

Then I got into problem were emerge reported that configs are missing
and I should emerge portage again... :) (emerge is thinking all time
that it is executed in gentoo while I am actually using Fedora Core 2)

I got that fixed by creating folder /etc/portage then I could drive
emerge. So it says this:

root@localhost anxa]# emerge
emerge: please tell me what to do.

Usage:
    emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ]
[ ... ]
    emerge [ options ] [ action ] < system | world >
    emerge < sync | info >
    emerge --resume [ --pretend | --ask | --skipfirst ]
    emerge help [ system | config | sync ]
Options: -[abcCdDefhikKlnoOpPsSuUvV] [--oneshot] [--noconfmem]
                                     [--columns] [--nospinner]
Actions: [ clean | depclean | inject | prune | regen | search | unmerge ]

    For more help try 'emerge --help' or consult the man page.

[root@localhost anxa]#

What is quite amazing. At least for me. This was just test about emerge
in fedora. Okey. Then I entered "emerge sync"

It started to collecting portage from gentoo mirrors. But when it finaly
stoped and repored that portage was successly emerged:
wrote 1392305 bytes read 73142109 bytes 52359.97 bytes/sec
total size is 68113416 speedup is 0.91

>>> Updating Portage cache... ...done!

But after that second of laught I got this in front of me:
Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.50-r7 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

  * An update to portage is available. It is _highly_ recommended
  * that you update portage now, before any other packages are updated.
  * Please do so and then update ALL of your configuration files.

But I didn't made anything since I respect that suggestiong not to
emerge sync more than once a day. And any way then I tried to do:
"emerge portage"

And I got these errors:
[root@localhost anxa]# emerge portage
Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.50-r7 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

Calculating dependencies
!!! all ebuilds that could satisfy "portage" have been masked.
!!! possible candidates are:
Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.51_pre9 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.50-r7 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.51_pre7 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

Could not open the sandbox library at '(null)/libsandbox.so'.

aux_get(): (0) Error in sys-apps/portage-2.0.50-r6 ebuild. (255)
                Check for syntax error or corruption in the ebuild.
(--debug)

!!! Error calculating dependencies. Please correct.

Okey, then I relized that something is missing. I found libsandbox.so
and I got this thing "portage" working. I made emerge portage and most
of the problems disappeared. (one of the remaining this is that emerge
world is not complite :) and ebuild.sh keeps reminding that some thing
is missing. However I think that I can "translate" this Fedora Core 2 to
Gentoo., or some sort. And that is going to be my next task in here. :)

I so have to try making that emerge world. Even thought it is quite
wasteful.

I am writing this because I'd like to hear what you "orginal" gentoo
users think about my experiement. I think that this is great! Even
thought that I am not using gentoo. At least I can use emerge to get
some games to my Fedora. Usually it is just one big "RPM hunt". ;)

-Antti-

Ps. What's name of that gui tool for portage/emerge? ;D



Relevant Pages

  • Re: Searching for the perfect distro
    ... The main drawback of Gentoo would be that sometimes the software is too ... A full update can be made with "emerge sync && emerge -u world", ... > IPAQs, somewhat based on Debian. ... > So I am searching now for ?the Perfect Linux distro for me?. ...
    (alt.os.linux)
  • A ipw3945 module for Gentoo 2006.1
    ... I am new to Gentoo, but have tried using emerge on a Gentoo 2006.1 system to get ipw3945 support. ... The tag on the name of the kernel boot image from the installation CD is -r7. ... I understand that the 'emerge' technique is the appropriate technique to use in Gentoo. ...
    (comp.os.linux.misc)
  • lambda-gtk or rather sb-alien hassels
    ... I tried to get lambda-gtk up and running on sbcl 0.9 emerged on a Gentoo box. ... Somewhere in the READMEs it said that I need sbcl-af and gentoo claims that I get that if I emerge with 'callbacks'. ...
    (comp.lang.lisp)
  • Re: pmake
    ... I have Gentoo distribution. ... with error message that i don't have pmake command. ... But when i try command emerge i get error message ... ...
    (comp.os.linux.misc)