1 |
On Tue, 8 Jun 2004, David Bryson wrote: |
2 |
|
3 |
> On Tue, Jun 08, 2004 at 03:19:14PM +0200, Peter S. Mazinger wrote: |
4 |
> > Hello! |
5 |
> > |
6 |
> |
7 |
> Hi peter! |
8 |
> |
9 |
> > I am working on a clean gentoo-uclibc system, but some of the packages are |
10 |
> > too old and need too much patching to work w/ uclibc, so I need ~arch |
11 |
> > version. How can I enforce usage of some of the packages that are marked |
12 |
> > as ~arch to be used for uclibc overwriting the keyword ~arch w/ arch. |
13 |
> > I do not want to use generally ~arch, only for some of the packages, and I |
14 |
> > do not want to remark these packages to stable. |
15 |
> > These changes should also work for bootstrap and catalyst stage building. |
16 |
> > |
17 |
> > How are you intending to handle uclibc, should it have a separate profile, |
18 |
> > like uclibc-arch-2004.x and hardened-uclibc-arch-2004.x? the embedded |
19 |
> > subdir is not ok for it (ex. virtual/glibc sys-libs/glibc) |
20 |
> > |
21 |
> |
22 |
> Heh I've been sorta trying to touch base with you on this stuff for a |
23 |
> while. Solar and I have been half heartedly attempting to do this for |
24 |
> a while. Most of my efforts have been in vain. |
25 |
> |
26 |
> My latest effort involved using the uclibc toolchain builder to |
27 |
> replace gcc and libgcc with uclibc variants by copying it into a |
28 |
> stage1 install and modifying all the symlinks. This worked OK on my |
29 |
> powerpc cross compiling for mips-el, but when I attempted to switch to |
30 |
> x86libc -> x86uClibc I was unsuccessful. |
31 |
|
32 |
I have started from a full uclibc buildroot (it is rpm based), where |
33 |
python/portage was installed, I ran emerge sync and began to build all the |
34 |
stuff needed for a stage1 by 'ebuild <package> package' (not installing |
35 |
almost anything, because it was already installed by rpm, I needed |
36 |
basically baselayout (I think einfo missing) and grep (for librcfuncs.so) |
37 |
|
38 |
a. hacked econf to copy config.sub/guess replacing the respective |
39 |
files in the src. |
40 |
b. changed the packages file in the profile directory (started from |
41 |
hardened-x86-2004.0), commenting glibc and pam/pwdb/pam-login |
42 |
c. modified almost all ebuilds (adding some nls/nis/gettext disabling |
43 |
patches and support for uclibc (ltconfig configure and so on) |
44 |
d. make a "current" uclibc ebuild, having the same stuff in as in my |
45 |
rpm.spec (I use an uClibc -cvs, w/ minimal rpc, WIDE_CHAR but no locale) |
46 |
e. after having all the stage1 stuff I have installed all of them w/o |
47 |
dependency from the packages and rebuilt all of the packages again, after |
48 |
that running an 'emerge system' (and now I have all the x86 and ~x86 |
49 |
packages for uclibc (some are not working from x86, too old, these are |
50 |
currently used from ~x86: |
51 |
tar/uclibc/iputils/modutils/shadow/libtool/devfsd/zlib, the rest is from |
52 |
stable. |
53 |
|
54 |
from emerge system (less glibc/pam/pam-login/pwdb) w/ USE="-nls noman |
55 |
noinfo nodoc" + the rest from the hardened profile, I can't build slocate |
56 |
and can't install openssh (openssh wants to add group/user and uses getent, |
57 |
not present in uclibc), I knew already about slocate that it won't build |
58 |
(sl_fts.c: undefined S_IFWHT) |
59 |
|
60 |
now I am stripping down the original packages first, after that I will |
61 |
begin replacing perl w/ microperl (I'll leave microperl in to be able to |
62 |
run autotools and some installation stuff), coreutils and friends w/ |
63 |
busybox, gawk w/ mawk and so on, after that I will build stages w/ |
64 |
catalyst (if I can create manually a seed-stage). |
65 |
|
66 |
Apropos: is there some method to build a seed-stage from binary packages? |
67 |
|
68 |
Peter |
69 |
|
70 |
-- |
71 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
72 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
73 |
|
74 |
|
75 |
____________________________________________________________________ |
76 |
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol. |
77 |
Probald ki most! http://www.freestart.hu |
78 |
|
79 |
-- |
80 |
gentoo-embedded@g.o mailing list |