Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] PREFIX the next generation...
Date: Mon, 19 Dec 2005 21:26:21
Message-Id: 20051219212509.GZ29216@gentoo.org
In Reply to: [gentoo-osx] PREFIX the next generation... by m h
1 Just to give you an update. I ended more or less in the same state as
2 you. Though I think I know why it's so stubborn. Portage seems to
3 expect all binaries and stuff in the prefixed location. I added
4 (symlinked) /bin/bash in my prefix, and was after that able to run
5 ebuild xxxx digest for instance.
6
7 So my thoughts were actually to give haubi's box a fling again, because
8 it might install the minimal set of tools necessary. Sigh. I need
9 longer weekends and much more hair to pull ;)
10
11 Not going into IRC now, because I try to stay away from it at least
12 during the week, to be able to actually do something...
13
14
15 On 19-12-2005 13:07:43 -0800, m h wrote:
16 > So following Grobian's lead I decided I'll not worry about toolsbox
17 > right now and just try to get portage working (I'm on linux so I
18 > already have the requirements for portage...)
19 >
20 > I wrote the notoolsbox.sh (pasted in below) script to document my steps.
21 >
22 > After the standard user/group tweaks, I'm back to where I was
23 > previously. "emerge -av system" returns the following:
24 >
25 > niger:mharrison[1216] /data1/portage/dec19/prefix/usr/bin/emerge -av
26 > system --debug
27 > Invalid package name in package.provided: virtual/libc
28 > Invalid package name in package.provided: virtual/linux-sources
29 > Invalid package name in package.provided: virtual/os-headers
30 >
31 > These are the packages that I would merge, in order:
32 >
33 > Calculating system dependencies
34 > Parent: None
35 > Depstring: >=app-shells/bash-3.0-r9
36 > Candidates: ['>=app-shells/bash-3.0-r9']
37 >
38 > aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
39 > Check for syntax error or corruption in the ebuild. (--debug)
40 >
41 >
42 > !!! All ebuilds that could satisfy ">=app-shells/bash-3.0-r9" have been masked.
43 > !!! One of the following masked packages is required to complete your request:
44 >
45 > aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
46 > Check for syntax error or corruption in the ebuild. (--debug)
47 >
48 > Traceback (most recent call last):
49 > File "/data1/portage/dec19/prefix/usr/bin/emerge", line 3159, in ?
50 > if not mydepgraph.xcreate(myaction):
51 > File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1428, in xcreate
52 > if not self.select_dep(portage.root, mydep):
53 > File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1280, in select_dep
54 > mreasons = portage.getmaskingstatus(p)
55 > File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
56 > line 3706, in getmaskingstatus
57 > mygroups, eapi = portdb.aux_get(mycpv, ["KEYWORDS", "EAPI"])
58 > File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
59 > line 5008, in aux_get
60 > raise KeyError
61 > KeyError
62 >
63 >
64 > I stepped through (or began to) the monsterous function doebuild and
65 > saw that it was trying to run ebuild.sh depend path/to/bash/ebuild and
66 > return -1.
67 >
68 > Running that from the command line returns doesn't work (I'm assumming
69 > it is an environment issue):
70 >
71 > niger:mharrison[1217] /data1/portage/dec19/prefix/usr/bin/ebuild
72 > depend /data1/portage/dec19/prefix/usr/local/portage/app-shells/bash/bash-3.0-r13.ebuild
73 > Invalid package name in package.provided: virtual/libc
74 > Invalid package name in package.provided: virtual/linux-sources
75 > Invalid package name in package.provided: virtual/os-headers
76 > '/data1/portage/depend' does not exist.
77 >
78 > I'm now lurking in #gentoo-osx and #gentoo-portage if anyone is
79 > interested in chatting....
80 >
81 > matt
82 >
83 > ##############notoolsbox.sh##################
84 > #!/bin/sh
85 >
86 > export PREFIX=/data1/portage/dec19/prefix
87 > KITO=/data1/portage/kito
88 > HAUBI=/data1/portage/haubi
89 > MATT=/data1/portage/matt
90 > STAGE1=/data1/portage/stage/stageUnzipped
91 >
92 > function createDir {
93 > mkdir -p ${PREFIX}
94 >
95 > mkdir -p ${PREFIX}/workspace
96 > }
97 >
98 > function installPortage {
99 > cp -r ${MATT}/portage-2.0.54 ${PREFIX}/workspace
100 >
101 > cd ${PREFIX}/workspace/portage-2.0.54
102 >
103 > configure \
104 > --sysconfdir=${PREFIX}/etc \
105 > --prefix=${PREFIX}/usr \
106 > --with-offset-prefix=${PREFIX} \
107 > --with-user=`id -un` \
108 > --with-group=`id -gn` \
109 > --with-wheelgroup=`id -gn` \
110 > --with-rootuser=`id -un` \
111 >
112 > make
113 >
114 > make install
115 > }
116 >
117 > function tweakFiles {
118 > cp ${MATT}/make.conf ${PREFIX}/etc/
119 > sed -e "s|#PREFIX#|${PREFIX}|g" -i ${PREFIX}/etc/make.conf
120 >
121 > #add profile
122 > mkdir -p ${PREFIX}/portage/profiles
123 >
124 > #copy contents of dir/ignore directories
125 > cp ${HAUBI}/secondary-portage-snapshot-20050927/profiles/*
126 > ${PREFIX}/portage/profiles
127 > #recursively copy default-secondary
128 > cp -r ${HAUBI}/secondary-portage-snapshot-20050927/profiles/default-secondary
129 > ${PREFIX}/portage/profiles
130 >
131 > rm ${PREFIX}/etc/make.profile
132 > #link profile
133 > ln -s ${PREFIX}/portage/profiles/default-secondary/linux/x86
134 > ${PREFIX}/etc/make.profile
135 >
136 > mkdir -p ${PREFIX}/usr/local/portage/
137 >
138 > #copy prefixed-ebuild tree
139 > cp -r ${KITO}/prefix-overlay/* ${PREFIX}/usr/local/portage/
140 >
141 > #make log dir
142 > mkdir -p ${PREFIX}/var/log/
143 >
144 > }
145 >
146 > createDir
147 > installPortage
148 > tweakFiles
149 >
150 > --
151 > gentoo-osx@g.o mailing list
152 >
153
154 --
155 Fabian Groffen
156 Gentoo for Mac OS X Project -- Interim Lead
157 --
158 gentoo-osx@g.o mailing list

Replies

Subject Author
Re: [gentoo-osx] PREFIX the next generation... m h <sesquile@×××××.com>