Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o
Subject: [gentoo-osx] PREFIX the next generation...
Date: Mon, 19 Dec 2005 21:08:10
Message-Id: e36b84ee0512191307h39cfa8aatd7d515cd0c6b4ecf@mail.gmail.com
1 So following Grobian's lead I decided I'll not worry about toolsbox
2 right now and just try to get portage working (I'm on linux so I
3 already have the requirements for portage...)
4
5 I wrote the notoolsbox.sh (pasted in below) script to document my steps.
6
7 After the standard user/group tweaks, I'm back to where I was
8 previously. "emerge -av system" returns the following:
9
10 niger:mharrison[1216] /data1/portage/dec19/prefix/usr/bin/emerge -av
11 system --debug
12 Invalid package name in package.provided: virtual/libc
13 Invalid package name in package.provided: virtual/linux-sources
14 Invalid package name in package.provided: virtual/os-headers
15
16 These are the packages that I would merge, in order:
17
18 Calculating system dependencies
19 Parent: None
20 Depstring: >=app-shells/bash-3.0-r9
21 Candidates: ['>=app-shells/bash-3.0-r9']
22
23 aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
24 Check for syntax error or corruption in the ebuild. (--debug)
25
26
27 !!! All ebuilds that could satisfy ">=app-shells/bash-3.0-r9" have been masked.
28 !!! One of the following masked packages is required to complete your request:
29
30 aux_get(): (0) Error in app-shells/bash-3.0-r13 ebuild. (-1)
31 Check for syntax error or corruption in the ebuild. (--debug)
32
33 Traceback (most recent call last):
34 File "/data1/portage/dec19/prefix/usr/bin/emerge", line 3159, in ?
35 if not mydepgraph.xcreate(myaction):
36 File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1428, in xcreate
37 if not self.select_dep(portage.root, mydep):
38 File "/data1/portage/dec19/prefix/usr/bin/emerge", line 1280, in select_dep
39 mreasons = portage.getmaskingstatus(p)
40 File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
41 line 3706, in getmaskingstatus
42 mygroups, eapi = portdb.aux_get(mycpv, ["KEYWORDS", "EAPI"])
43 File "/data1/portage/dec19/prefix/usr/lib/portage/pym/portage.py",
44 line 5008, in aux_get
45 raise KeyError
46 KeyError
47
48
49 I stepped through (or began to) the monsterous function doebuild and
50 saw that it was trying to run ebuild.sh depend path/to/bash/ebuild and
51 return -1.
52
53 Running that from the command line returns doesn't work (I'm assumming
54 it is an environment issue):
55
56 niger:mharrison[1217] /data1/portage/dec19/prefix/usr/bin/ebuild
57 depend /data1/portage/dec19/prefix/usr/local/portage/app-shells/bash/bash-3.0-r13.ebuild
58 Invalid package name in package.provided: virtual/libc
59 Invalid package name in package.provided: virtual/linux-sources
60 Invalid package name in package.provided: virtual/os-headers
61 '/data1/portage/depend' does not exist.
62
63 I'm now lurking in #gentoo-osx and #gentoo-portage if anyone is
64 interested in chatting....
65
66 matt
67
68 ##############notoolsbox.sh##################
69 #!/bin/sh
70
71 export PREFIX=/data1/portage/dec19/prefix
72 KITO=/data1/portage/kito
73 HAUBI=/data1/portage/haubi
74 MATT=/data1/portage/matt
75 STAGE1=/data1/portage/stage/stageUnzipped
76
77 function createDir {
78 mkdir -p ${PREFIX}
79
80 mkdir -p ${PREFIX}/workspace
81 }
82
83 function installPortage {
84 cp -r ${MATT}/portage-2.0.54 ${PREFIX}/workspace
85
86 cd ${PREFIX}/workspace/portage-2.0.54
87
88 configure \
89 --sysconfdir=${PREFIX}/etc \
90 --prefix=${PREFIX}/usr \
91 --with-offset-prefix=${PREFIX} \
92 --with-user=`id -un` \
93 --with-group=`id -gn` \
94 --with-wheelgroup=`id -gn` \
95 --with-rootuser=`id -un` \
96
97 make
98
99 make install
100 }
101
102 function tweakFiles {
103 cp ${MATT}/make.conf ${PREFIX}/etc/
104 sed -e "s|#PREFIX#|${PREFIX}|g" -i ${PREFIX}/etc/make.conf
105
106 #add profile
107 mkdir -p ${PREFIX}/portage/profiles
108
109 #copy contents of dir/ignore directories
110 cp ${HAUBI}/secondary-portage-snapshot-20050927/profiles/*
111 ${PREFIX}/portage/profiles
112 #recursively copy default-secondary
113 cp -r ${HAUBI}/secondary-portage-snapshot-20050927/profiles/default-secondary
114 ${PREFIX}/portage/profiles
115
116 rm ${PREFIX}/etc/make.profile
117 #link profile
118 ln -s ${PREFIX}/portage/profiles/default-secondary/linux/x86
119 ${PREFIX}/etc/make.profile
120
121 mkdir -p ${PREFIX}/usr/local/portage/
122
123 #copy prefixed-ebuild tree
124 cp -r ${KITO}/prefix-overlay/* ${PREFIX}/usr/local/portage/
125
126 #make log dir
127 mkdir -p ${PREFIX}/var/log/
128
129 }
130
131 createDir
132 installPortage
133 tweakFiles
134
135 --
136 gentoo-osx@g.o mailing list

Replies

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