public inbox for gentoo-osx@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-osx] PREFIX the next generation...
@ 2005-12-19 21:07 m h
  2005-12-19 21:21 ` [gentoo-osx] " m h
  2005-12-19 21:25 ` [gentoo-osx] " Grobian
  0 siblings, 2 replies; 23+ messages in thread
From: m h @ 2005-12-19 21:07 UTC (permalink / raw
  To: gentoo-osx

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

-- 
gentoo-osx@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2005-12-22 10:35 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-19 21:07 [gentoo-osx] PREFIX the next generation m h
2005-12-19 21:21 ` [gentoo-osx] " m h
2005-12-19 21:26   ` m h
2005-12-19 21:30     ` Grobian
2005-12-19 21:25 ` [gentoo-osx] " Grobian
2005-12-19 22:49   ` m h
2005-12-19 23:20     ` Kito
2005-12-20  1:33       ` m h
2005-12-20  6:32         ` Grobian
2005-12-20  9:23           ` Grobian
2005-12-20 20:11             ` m h
2005-12-20 20:53               ` Grobian
2005-12-20 23:00                 ` m h
2005-12-20 23:20                   ` m h
2005-12-21  0:09                     ` m h
2005-12-21 12:50                       ` Grobian
2005-12-22  6:57                         ` Brian Harring
2005-12-22  7:02                           ` Brian Harring
2005-12-22 10:35                             ` Grobian
2005-12-21 13:26                       ` Grobian
2005-12-20 22:18               ` Kito
2005-12-20 22:22                 ` Kito
2005-12-21  9:39     ` Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox