Gentoo Archives: gentoo-alt

From: Ruud Koolen <redlizard@×××××××××.nl>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: add Debian/Ubuntu as a supported platform
Date: Thu, 03 Oct 2013 06:44:56
Message-Id: 201310030844.43798.redlizard@redlizard.nl
In Reply to: [gentoo-alt] Re: add Debian/Ubuntu as a supported platform by heroxbd@gmail.com
1 On Thursday 03 October 2013 08:29:03 heroxbd@×××××.com wrote:
2 > Also, keep in mind that redlizard has an actively maintained bootstrap
3 > script at
4 >
5 > https://github.com/redlizard/prefix-libc/blob/master/scripts/bootstrap-pref
6 >ix.sh
7
8 Indeed. I'm very interested in hearing whether it works for you.
9
10 > > 3. Edit gcc-4.7.3.ebuild and add "export
11 > > LD_LIBRARY_PATH=$EPREFIX/usr/lib64" when bootstrapping gcc in stage3. If
12 > > not, cc1 can't find libgmp.so.X
13
14 That's a problem we should fix in portage (the prefix portage doesn't run
15 ldconfig, but the RAP version should). The above bootstrap script currently
16 does a workaround, but it's a fragile temporary solution.
17
18 > > 4. Edit make.conf and add "CFLAGS=-L/usr/lib/x86_64-linux-gnu/". If not,
19 > > emerge perl in stage3 would fail in configuration (compiler complain that
20 > > -ldb not found)
21
22 The version included in the overlay used by the bootstrap script should have
23 fixed problems with perl linking against the wrong libraries. The keyword
24 here is "should" -- it would not surprise me at all if this is still flaky.
25
26 > > 5. Edit "Lib/plat-linux2/regen" file when emerging python {2.7.5,3.3.2}
27 > > in stage3 because "sys/types.h" header in Debian/Ubuntu multiarch locates
28 > > in /usr/include/x86_64-linux-gnu/sys/types.h (I just ctrl+z'ed the emerge
29 > > process and edit the corresponding file, then fg to resume emerging)
30
31 This is fixed in the bootstrap overlay.
32
33 > > 6. Edit portage-2.2.01.22124-r1.ebuild, change the code related to
34 > > removing sed wrapper to look like this:
35 > >
36 > > if use userland_GNU; then
37 > > rm "${ED}"${portage_base/lib64/lib}/bin/ebuild-helpers/bsd/sed ||
38 > > die "Failed to remove sed wrapper"
39 > > fi
40
41 This is also fixed in the bootstrap overlay.
42
43 So far, we've accumulated all known required patches in the overlay used by
44 the bootstrap script, at https://github.com/redlizard/prefix-libc/ . We are
45 working on merging those changes to the appropriate places. The bootstrap
46 script uses this overlay, but it should go away soon.
47
48 --Ruud

Replies

Subject Author
Re: [gentoo-alt] Re: add Debian/Ubuntu as a supported platform yegle <cnyegle@×××××.com>