Gentoo Archives: gentoo-embedded

From: aeriksson@××××××××.fm
To: Mike Frysinger <vapier@g.o>
Cc: gentoo-embedded@l.g.o, ""@×××××.org
Subject: Re: [gentoo-embedded] python 2.3.4 probs
Date: Sun, 15 Aug 2004 18:20:04
Message-Id: 20040815181446.9392F3F03@latitude.mynet.no-ip.org
1 > On Sunday 15 August 2004 12:48 pm, aeriksson@××××××××.fm wrote:
2 > > Seems some uclibc stuff got lost in the latest python ebuild. The IUSE
3 > > entry's gone and the one usage in the build too. Not 100% sure it's
4 > > related, but I get this when building system:
5 > >
6 > > 3 ACCEPT_KEYWORDS="~x86" USE=3D"-* build bootstrap uclibc" emerge system
7 >
8 > are you trying to bootstrap ? if so, use the bootstrap script ... ive
9 > updated it to work with uclibc profiles (you still need the ACCEPT_KEYWORDS
10 > though)
11 > -mike
12
13 Hmmmm. Not sure about the nomenclature here. Trying to piece together
14 a minimal uclibc system, I combined info from this list with the
15 official docs. The attached script is the result. Is it far from
16 the True Procedures?
17
18 /A
19
20 #!/bin/bash
21
22 SOURCES="/tmp/dl"
23 TARGET=`pwd`/uclibc-gentoo
24
25 umount $TARGET/usr/portage
26 umount $TARGET/proc
27 [ -d $TARGET ] && rm -rf $TARGET
28 mkdir $TARGET
29
30 [ -f $SOURCES/stage1-x86-uclibc.tar.bz2 ] || \
31 ( cd $SOURCES ; wget http://dev.gentoo.org/%7evapier/uclibc/stage1-x86-uclibc.tar.bz2 )
32
33 tar -C $TARGET -xjvf $SOURCES/stage1-x86-uclibc.tar.bz2
34 mkdir $TARGET/usr/portage
35 mount tippex:/usr/portage $TARGET/usr/portage
36 mount -t proc proc $TARGET/proc/
37
38 echo "DISTDIR=/var/cache/portage/distfiles" >> $TARGET/etc/make.conf
39 cp /etc/resolv.conf $TARGET/etc/
40 mkdir -pf $TARGET/portage
41 echo ">=dev-lang/python-2.3.3-r1" >> $TARGET/portage/package.mask
42
43
44 #Prepare the bootstrap scrip to be executed in the new env
45
46 cat > $TARGET/bootstrap <<EOF
47 #!/bin/bash
48
49 echo "In chroot..."
50 cd /usr/portage
51 ACCEPT_KEYWORDS="~x86" scripts/bootstrap-cascade.sh
52
53 #Something wants flex libs which are only built if flex is built without the build USE flag
54 emerge flex
55
56 ACCEPT_KEYWORDS="~x86" USE="-* build bootstrap uclibc" emerge system
57
58 EOF
59 chmod +x $TARGET/bootstrap
60 #Jumping into the new environment
61
62 chroot $TARGET /bootstrap
63
64
65 --
66 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] python 2.3.4 probs Christian Zoffoli <merlin@××××××××.it>