1 |
Just for reference, here is what I ran (since there's a few bootstrap |
2 |
versions out there and I did have to alter my process a little): |
3 |
|
4 |
# (entered a clean bash shell) |
5 |
$ exec -c /bin/bash --noprofile --norc |
6 |
# in bash-3.2: |
7 |
|
8 |
#!/bin/bash |
9 |
eerror() { echo "!!! $*" 1>&2; } |
10 |
if [[ "${HOST}" != "" ]] || [[ "${CFLAGS}" != "" ]] || [[ "${HOME}" != "" ]] |
11 |
then |
12 |
eerror "prior to running this script, run exec -c /bin/bash --norc |
13 |
--noprofile" |
14 |
exit 1 |
15 |
fi |
16 |
export HOME=`cd ~; pwd` |
17 |
export EPREFIX="$HOME/gentoo" |
18 |
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:/usr/bin:/bin:$PATH" |
19 |
chmod +x bootstrap-prefix.sh |
20 |
./bootstrap-prefix.sh $EPREFIX tree |
21 |
./bootstrap-prefix.sh $EPREFIX/tmp gcc # no g++ on Ubuntu by default |
22 |
./bootstrap-prefix.sh $EPREFIX/tmp make |
23 |
./bootstrap-prefix.sh $EPREFIX/tmp wget |
24 |
./bootstrap-prefix.sh $EPREFIX/tmp sed |
25 |
./bootstrap-prefix.sh $EPREFIX/tmp python |
26 |
./bootstrap-prefix.sh $EPREFIX/tmp coreutils6 |
27 |
./bootstrap-prefix.sh $EPREFIX/tmp findutils |
28 |
#./bootstrap-prefix.sh $EPREFIX/tmp findutils3 |
29 |
#./bootstrap-prefix.sh $EPREFIX/tmp tar |
30 |
./bootstrap-prefix.sh $EPREFIX/tmp tar15 |
31 |
./bootstrap-prefix.sh $EPREFIX/tmp patch |
32 |
./bootstrap-prefix.sh $EPREFIX/tmp grep |
33 |
./bootstrap-prefix.sh $EPREFIX/tmp gawk |
34 |
./bootstrap-prefix.sh $EPREFIX/tmp bison # no yacc on Ubuntu by default |
35 |
./bootstrap-prefix.sh $EPREFIX/tmp bash |
36 |
hash -r |
37 |
./bootstrap-prefix.sh $EPREFIX portage |
38 |
export LDFLAGS="-L${EPREFIX}/usr/lib -R${EPREFIX}/usr/lib |
39 |
-L${EPREFIX}/lib -R${EPREFIX}/lib" |
40 |
export CPPFLAGS="-I${EPREFIX}/usr/include" |
41 |
hash -r |
42 |
export USE="-berkdb -fortran -gdbm -nls -pcre -ssl" |
43 |
emerge --oneshot sed |
44 |
emerge --oneshot --nodeps wget |
45 |
emerge --oneshot bash |
46 |
emerge --oneshot --nodeps baselayout-prefix |
47 |
emerge --oneshot --nodeps lzma-utils |
48 |
emerge --oneshot --nodeps m4 |
49 |
emerge --oneshot --nodeps flex |
50 |
emerge --oneshot --nodeps bison |
51 |
emerge --oneshot --nodeps binutils-config |
52 |
emerge --oneshot --nodeps binutils |
53 |
emerge --oneshot --nodeps gcc-config |
54 |
#emerge --oneshot gcc |
55 |
emerge --oneshot --nodeps "=gcc-4.2*" |
56 |
unset LDFLAGS CPPFLAGS CHOST CC CXX HOSTCC |
57 |
export CFLAGS="" # coreutils throws some sort of error if CFLAGS not set |
58 |
emerge --oneshot coreutils |
59 |
emerge --oneshot findutils |
60 |
#emerge --oneshot tar |
61 |
emerge --oneshot grep |
62 |
emerge --oneshot patch |
63 |
emerge --oneshot gawk |
64 |
emerge --oneshot make |
65 |
emerge --oneshot --nodeps file |
66 |
emerge --oneshot --nodeps eselect |
67 |
rm $EPREFIX/usr/share/man/man1/{env-update,quickpkg,dispatch-conf,repoman,emerge,emaint,ebuild,etc-update}.1 |
68 |
env FEATURES="-collision-protect" emerge --oneshot portage |
69 |
#rm -Rf $EPREFIX/tmp/* |
70 |
mv $EPREFIX/tmp $EPREFIX/tmp.old |
71 |
hash -r |
72 |
emerge --sync |
73 |
emerge -u system #ERROR! |
74 |
|
75 |
On Mon, Jun 29, 2009 at 2:17 PM, Michael Yang<yangofzeal@×××××.com> wrote: |
76 |
> export USE="-berkdb -fortran -gdbm -nls -pcre -ssl" |
77 |
> |
78 |
> On Mon, Jun 29, 2009 at 2:14 PM, Fabian Groffen<grobian@g.o> wrote: |
79 |
>> it got through |
80 |
>> |
81 |
>> On 29-06-2009 14:08:37 -0400, Michael Yang wrote: |
82 |
>>> (sorry one more time for potential repost - I'm finally subscribed to |
83 |
>>> this list). |
84 |
>>> |
85 |
>>> Hi Gentoo-prefix project, |
86 |
>>> |
87 |
>>> I'm trying to do a gentoo prefix installation on Ubuntu Linux. I ran |
88 |
>>> - Hide quoted text - |
89 |
>>> the instructions at: |
90 |
>>> |
91 |
>>> http://dev.gentoo.org/~darkside/bootstrap.xml successfully until I |
92 |
>>> reached 2.15: |
93 |
>>> |
94 |
>>> emerge -u system |
95 |
>>> |
96 |
>>> Error message: |
97 |
>>> |
98 |
>>> emerge: there are no ebuilds to satisfy ">=sys-libs/glibc-2.7". |
99 |
>>> (dependency required by "sys-libs/pam-1.1.0" [ebuild]) |
100 |
>>> (dependency required by "net-misc/openssh-5.2_p1-r2" [ebuild]) |
101 |
>>> (dependency required by "@system" [argument]) |
102 |
>>> |
103 |
>>> I tried emerging glibc, but apparently emerge can't find glibc. |
104 |
>> |
105 |
>> you can't emerge glibc, seems like you shouldn't be emerging pam either, |
106 |
>> what are your USE-flags for openssh? |
107 |
>> |
108 |
>> |
109 |
>> -- |
110 |
>> Fabian Groffen |
111 |
>> Gentoo on a different level |
112 |
>> |
113 |
>> |
114 |
> |