So following Grobian's lead I decided I'll not worry about toolsbox
right now and just try to get portage working (I'm on linux so I
already have the requirements for portage...)

I wrote the notoolsbox.sh (pasted in below) script to document my steps.

After the standard user/group tweaks, I'm back to where I was
previously.  "emerge -av system" returns the following:

niger:mharrison[1216] /data1/portage/dec19/prefix/usr/bin/emerge -av
system --debug
Invalid package name in package.provided: virtual/libc
Invalid package name in package.provided: virtual/linux-sources
Invalid package name in package.provided: virtual/os-headers

These are the packages that I would merge, in order:

Calculating system dependencies
Parent:    None
Depstring: >=app-shells/bash-3.0-r9
Candidates: ['>=app-shells/bash-3.0-r9']

aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
               Check for syntax error or corruption in the ebuild. (--debug)


!!! All ebuilds that could satisfy ">=app-shells/bash-3.0-r9" have been masked.
!!! One of the following masked packages is required to complete your request:

aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
               Check for syntax error or corruption in the ebuild. (--debug)

Traceback (most recent call last):
  File "/data1/portage/dec19/prefix/usr/bin/emerge", line 3159, in ?
    if not mydepgraph.xcreate(myaction):
  File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1428, in xcreate
    if not self.select_dep(portage.root, mydep):
  File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1280, in select_dep
    mreasons = portage.getmaskingstatus(p)
  File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
line 3706, in getmaskingstatus
    mygroups, eapi = portdb.aux_get(mycpv, ["KEYWORDS", "EAPI"])
  File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
line 5008, in aux_get
    raise KeyError
KeyError


I stepped through (or began to) the monsterous function doebuild and
saw that it was trying to run ebuild.sh depend path/to/bash/ebuild and
return -1.

Running that from the command line returns doesn't work (I'm assumming
it is an environment issue):

niger:mharrison[1217] /data1/portage/dec19/prefix/usr/bin/ebuild
depend 
/data1/portage/dec19/prefix/usr/local/portage/app-shells/bash/bash-3.0-r13.ebuild
Invalid package name in package.provided: virtual/libc
Invalid package name in package.provided: virtual/linux-sources
Invalid package name in package.provided: virtual/os-headers
'/data1/portage/depend' does not exist.

I'm now lurking in #gentoo-osx and #gentoo-portage if anyone is
interested in chatting....

matt

##############notoolsbox.sh##################
#!/bin/sh

export PREFIX=/data1/portage/dec19/prefix
KITO=/data1/portage/kito
HAUBI=/data1/portage/haubi
MATT=/data1/portage/matt
STAGE1=/data1/portage/stage/stageUnzipped

function createDir {
    mkdir -p ${PREFIX}

    mkdir -p ${PREFIX}/workspace
}

function installPortage {
    cp -r ${MATT}/portage-2.0.54 ${PREFIX}/workspace

    cd ${PREFIX}/workspace/portage-2.0.54

    configure \
        --sysconfdir=${PREFIX}/etc \
        --prefix=${PREFIX}/usr \
        --with-offset-prefix=${PREFIX} \
        --with-user=`id -un` \
        --with-group=`id -gn` \
        --with-wheelgroup=`id -gn` \
        --with-rootuser=`id -un` \
        
    make

    make install
}

function tweakFiles {
    cp ${MATT}/make.conf ${PREFIX}/etc/
    sed -e "s|#PREFIX#|${PREFIX}|g" -i ${PREFIX}/etc/make.conf

    #add profile
    mkdir -p ${PREFIX}/portage/profiles

    #copy contents of dir/ignore directories
    cp  ${HAUBI}/secondary-portage-snapshot-20050927/profiles/*
${PREFIX}/portage/profiles
    #recursively copy default-secondary
    cp  -r 
${HAUBI}/secondary-portage-snapshot-20050927/profiles/default-secondary
${PREFIX}/portage/profiles

    rm ${PREFIX}/etc/make.profile
    #link profile
    ln -s ${PREFIX}/portage/profiles/default-secondary/linux/x86
${PREFIX}/etc/make.profile

    mkdir -p ${PREFIX}/usr/local/portage/

    #copy prefixed-ebuild tree
    cp -r ${KITO}/prefix-overlay/* ${PREFIX}/usr/local/portage/

    #make log dir
    mkdir -p ${PREFIX}/var/log/

}

createDir
installPortage
tweakFiles

-- 
[email protected] mailing list

Reply via email to