On Fri, Oct 31, 2003 at 11:47:39AM -0800, [EMAIL PROTECTED] wrote:
> On Fri, Oct 31, 2003 at 05:07:07PM +1000, [EMAIL PROTECTED] wrote:
> > When I left the USE="-static", the overall size ended up being much larger,
> > so I removed it. Adding "-nls" is a good idea too, although its simple
> > enough to coopt localepurge.
> >
>
> interesting. I wonder why.
Dont know. ${ROOT_DIR}/usr/lib/gconv is full of not-very-useful-to-me
things as well, like Chinese support, and localepurge doesnt handle
those files. It might be getting closer to the time to try replacing
glibc with uclibc or dietlibc.
> > I added the line
> > find ${ROOT_DIR} -name "*.a" | xargs -r r
> > as the first line of create_img.
> >
>
> did you mean | xargs -r rm ?
Yes.
> I added a little routine to rm -rf directories specified in
> the config file. That way one can just tell it to get rid of
> man/doc/info/include
> those types of things.
Im just doing that manually for now.
> If you have something cool to add, I'd love a patch ;-)
busybox_links.default is attached, and needs to be in the dir above ${ROOT_DIR}.
I generated it by reading /usr/portage/sys-apps/busybox/files/Config.h-0.60.5-cd
cd ${ROOT_DIR}
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/{}
I integrated localepurge into submerge as well, but I havent checked if its working
properly. There was something about a missing file.
> > I know gawk should eventually be removed as a dep of the init scripts, but
> > for now, removing ${ROOT_DIR}/bin/pgawk* helps.
> >
> > tundra embeddedgentoo # ls work/bin/pgawk* -l
> > -rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk
> > -rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk-3.1.2
> >
>
> Well a simple grep through init scripts shows gawk being used a lot.
> Will the runlevels work with out it ?
pgawk is profiling gawk; not useful on an embedded system. Also Im sure
that pgawk should be a symlink to pgawk-3.1.2. Might have to file a
bugreport on that one.
busybox awk might be good enough to let the init scripts work, otherwise
mawk is smaller than gawk. If you try either, let me know how it goes.
--
luke
ash
basename
cat
chgrp
chmod
chown
chroot
chvt
clear
cmp
cp
cpio
cut
date
dd
df
dirname
dmesg
du
echo
env
fbset
fdflush
find
free
grep
gunzip
gzip
halt
head
hostname
ifconfig
init
insmod
kill
killall
klogd
ln
loadkmap
losetup
ls
lsmod
md5sum
mkdir
mkfifo
mknod
mkswap
modprobe
more
mount
mv
nc
nslookup
pidof
ping
pivot_root
poweroff
ps
pwd
readlink
reboot
reset
rm
rmdir
rmmod
route
sed
sleep
sort
swaponoff
sync
syslogd
tail
tar
telnet
tftp
touch
traceroute
true
false
umount
uniq
uname
uptime
vi
wc
wget
which
whoami
xargs
yes
--
[EMAIL PROTECTED] mailing list