Gentoo Archives: gentoo-dev

From: luke@×××××××××.com
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded
Date: Mon, 03 Nov 2003 03:21:07
Message-Id: 20031103031812.GC29727@tundra.trolltech.com.au
In Reply to: Re: [gentoo-dev] 'submerge' was Re: Re: [gentoo-dev] Gentoo Embedded by david@futuretel.com
1 On Fri, Oct 31, 2003 at 11:47:39AM -0800, david@×××××××××.com wrote:
2 > On Fri, Oct 31, 2003 at 05:07:07PM +1000, luke@×××××××××.com wrote:
3 > > When I left the USE="-static", the overall size ended up being much larger,
4 > > so I removed it. Adding "-nls" is a good idea too, although its simple
5 > > enough to coopt localepurge.
6 > >
7 >
8 > interesting. I wonder why.
9
10 Dont know. ${ROOT_DIR}/usr/lib/gconv is full of not-very-useful-to-me
11 things as well, like Chinese support, and localepurge doesnt handle
12 those files. It might be getting closer to the time to try replacing
13 glibc with uclibc or dietlibc.
14
15 > > I added the line
16 > > find ${ROOT_DIR} -name "*.a" | xargs -r r
17 > > as the first line of create_img.
18 > >
19 >
20 > did you mean | xargs -r rm ?
21
22 Yes.
23
24 > I added a little routine to rm -rf directories specified in
25 > the config file. That way one can just tell it to get rid of
26 > man/doc/info/include
27 > those types of things.
28
29 Im just doing that manually for now.
30
31 > If you have something cool to add, I'd love a patch ;-)
32
33 busybox_links.default is attached, and needs to be in the dir above ${ROOT_DIR}.
34 I generated it by reading /usr/portage/sys-apps/busybox/files/Config.h-0.60.5-cd
35
36 cd ${ROOT_DIR}
37 for i in `cat ../busybox_links.default`;do echo $i;for j in `find . -name $i`;do ln -sf /bin/busybox $j >/dev/null 2>&1;basename $j;done;done | sort | uniq -u | xargs -n1 --replace ln -s /bin/busybox bin/{}
38
39 I integrated localepurge into submerge as well, but I havent checked if its working
40 properly. There was something about a missing file.
41
42 > > I know gawk should eventually be removed as a dep of the init scripts, but
43 > > for now, removing ${ROOT_DIR}/bin/pgawk* helps.
44 > >
45 > > tundra embeddedgentoo # ls work/bin/pgawk* -l
46 > > -rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk
47 > > -rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk-3.1.2
48 > >
49 >
50 > Well a simple grep through init scripts shows gawk being used a lot.
51 > Will the runlevels work with out it ?
52
53 pgawk is profiling gawk; not useful on an embedded system. Also Im sure
54 that pgawk should be a symlink to pgawk-3.1.2. Might have to file a
55 bugreport on that one.
56
57 busybox awk might be good enough to let the init scripts work, otherwise
58 mawk is smaller than gawk. If you try either, let me know how it goes.
59
60 --
61 luke

Attachments

File name MIME type
busybox_links.default text/plain