1 |
As per Kito's advice on IRC: |
2 |
|
3 |
can you post a) emerge --verbose --info b) the contents of |
4 |
pym/portage_const_autotool.py c) the output of `PORTAGE_DEBUG=1 emerge |
5 |
-v --nodeps patch &> emerge.log` |
6 |
|
7 |
Here's my process to get that I had to do before I was able to do c) |
8 |
(anything with !! I did by hand): |
9 |
|
10 |
#!/bin/sh |
11 |
|
12 |
export PREFIX=/tmp/Mar20 |
13 |
#this directory has portage and the ebuild tree from the wiki |
14 |
#unzipped here |
15 |
#it also has a copy of the normal portage profiles in "normal-profiles" |
16 |
|
17 |
export MYBASE=/home/spike/portage |
18 |
export TREE=${MYBASE}/portage-alt-prefix |
19 |
export PORTCODE=${MYBASE}/portage-prefix-2.1.11 |
20 |
GROUP=spike |
21 |
|
22 |
cd $PORTCODE |
23 |
|
24 |
make clean |
25 |
./configure --prefix=${PREFIX}/usr --with-user=`whoami` |
26 |
--with-group=${GROUP} --sysconfdir=${PREFIX}/etc |
27 |
--with-rootuser=`whoami` --with-rootuid=`id -u` |
28 |
--with-offset-prefix=${PREFIX} --with-wheelgroup=${GROUP} |
29 |
--with-wheelgid=`id -g` |
30 |
make |
31 |
make install |
32 |
|
33 |
cd |
34 |
cd ${PREFIX} |
35 |
mkdir -p usr/portage |
36 |
cp -r ${TREE}/* usr/portage |
37 |
|
38 |
export PATH=${PREFIX}/usr/bin:${PREFIX}/usr/sbin:${PATH} |
39 |
|
40 |
#already exists! |
41 |
#mkdir etc |
42 |
cp ${PORTCODE}/cnf/make.conf etc/ |
43 |
#SET PREFIX in make.conf |
44 |
#PREPEND PREFIX TO A FEW PLACES |
45 |
|
46 |
##Should be made by make install above, but it's not |
47 |
mkdir -p ${PREFIX}/etc/portage |
48 |
|
49 |
cp -r ${MYBASE}/grobian-amd-prof/portage/* ${PREFIX}/etc/portage/ |
50 |
cp -r ${MYBASE}/normal-profiles/profiles/default-linux |
51 |
${PREFIX}/usr/portage/profiles/ |
52 |
ln -s ${PREFIX}/usr/portage/profiles/default-linux/x86/2005.1 |
53 |
${PREFIX}/etc/make.profile |
54 |
|
55 |
|
56 |
#!!adjust DEFAULTPATH in etc/make.globals |
57 |
#add :/usr/bin:/bin:/sbin:/usr/sbin to end |
58 |
|
59 |
|
60 |
mkdir -p ${PREFIX}/var/lib/portage/ |
61 |
touch ${PREFIX}/var/lib/portage/world |
62 |
|
63 |
#!!add ACCEPT_KEYWORDS="~x86" to etc/make.conf |
64 |
#!!uncomment FETCHCOMMNAD in etc/make.conf |
65 |
|
66 |
#add ${PREFIX}/var/cache/edb/counter |
67 |
echo 0 > ${PREFIX}/var/cache/edb/counter |
68 |
|
69 |
##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/ld.so.conf' |
70 |
## |
71 |
touch ${PREFIX}/etc/ld.so.conf |
72 |
|
73 |
##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/profile.env' |
74 |
touch ${PREFIX}/etc/profile.env |
75 |
|
76 |
##... |
77 |
##File "/tmp/Mar20/usr/lib/portage/pym/portage_util.py", line 585, in close |
78 |
## apply_stat_permissions(self.name, os.stat(self._real_name)) |
79 |
##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/csh.env' |
80 |
touch ${PREFIX}/etc/csh.env |