public inbox for gentoo-osx@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grobian <grobian@gentoo.org>
To: gentoo-osx@lists.gentoo.org
Subject: Re: [gentoo-osx] PREFIX the next generation...
Date: Mon, 19 Dec 2005 22:25:09 +0100	[thread overview]
Message-ID: <20051219212509.GZ29216@gentoo.org> (raw)
In-Reply-To: <e36b84ee0512191307h39cfa8aatd7d515cd0c6b4ecf@mail.gmail.com>

Just to give you an update.  I ended more or less in the same state as
you.  Though I think I know why it's so stubborn.  Portage seems to
expect all binaries and stuff in the prefixed location.  I added
(symlinked) /bin/bash in my prefix, and was after that able to run
ebuild xxxx digest for instance.

So my thoughts were actually to give haubi's box a fling again, because
it might install the minimal set of tools necessary.  Sigh.  I need
longer weekends and much more hair to pull ;)

Not going into IRC now, because I try to stay away from it at least
during the week, to be able to actually do something...


On 19-12-2005 13:07:43 -0800, m h wrote:
> 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
> 

-- 
Fabian Groffen
Gentoo for Mac OS X Project -- Interim Lead
-- 
gentoo-osx@gentoo.org mailing list



  parent reply	other threads:[~2005-12-19 21:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Grobian [this message]
2005-12-19 22:49   ` [gentoo-osx] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051219212509.GZ29216@gentoo.org \
    --to=grobian@gentoo.org \
    --cc=gentoo-osx@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox