tidy up some loose ends

git-svn-id: http://emdebian.org/svn/current@7329 563faec7-e20c-0410-992a-a66f704d0ccd
main
codehelp 14 years ago
parent f3630bc3c0
commit 192cd73127

146
TODO

@ -1,146 +0,0 @@
TODO for bootstrap / pbuilder config.
(no particular order)
note: pbuilder bug - default mirror does not include deb-src version.
also: gnupg needs the user directory and to be run once for
dpkg-source! :-(
also need apt-get build-dep if using emchain
copy build log and built files out of jail/ before compressing
define parameters - inherit from pbuilderrc
These chroots have already been tested and instructions
exist in the Wiki. http://wiki.debian.org/EmDebian/CrossDebootstrap
dpkg filter to remove unneeded files:
1. /var/lib/dpkg/info/*.symbols
2. /var/lib/dpkg/available-old
3. /var/lib/dpkg/status-old
modify dpkg to drop /var/log/dpkg.log
or simply mount /var/log, /var/cache in RAM.
modify apt to remove unwanted files:
/var/cache/apt/(src)?pkgcache.bin
always run apt-get clean
always drop files in /var/lib/apt/lists/
Split out /usr/share/X11/locale/ (1.3Mb)
Drop /usr/lib/xorg/modules/libscanpci.so (2Mb)
X fails to start without:
/usr/lib/xorg/modules/libpcidata.so
(can the file size be reduced?)
Other candidates may be amongst:
100527
47296 /usr
30674 /usr/lib
29150 /var
25092 /var/cache
25049 /var/cache/apt
24576 /var/cache/apt/pkgcache.bin
18138 /lib
12007 /lib/modules
12005 /lib/modules/2.6.25.2-pxa270
11345 /lib/modules/2.6.25.2-pxa270/kernel
8224 /usr/share
7378 /usr/bin
6897 /lib/modules/2.6.25.2-pxa270/kernel/drivers
5822 /usr/lib/gconv
3747 /usr/lib/xorg
3745 /usr/lib/xorg/modules
3572 /var/lib
3358 /usr/lib/libgtk-x11-2.0.so.0.1200.3
2780 /var/lib/dpkg
2744 /sbin
2709 /lib/modules/2.6.25.2-pxa270/kernel/fs
2414 /usr/share/zoneinfo
2153 /var/lib/dpkg/info
2046 /lib/modules/2.6.25.2-pxa270/kernel/drivers/usb
1799 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media
1733 /usr/share/fonts
1656 /usr/bin/Xorg
1490 /tmp
1430 /usr/share/X11
1381 /usr/share/X11/locale
1288 /lib/modules/2.6.25.2-pxa270/kernel/drivers/net
1179 /usr/lib/libcrypto.so.0.9.8
1160 /usr/share/fonts/X11
1150 /lib/libc-2.7.so
1122 /usr/lib/libxml2.so.2.6.32
1080 /bin
955 /lib/modules/2.6.25.2-pxa270/kernel/drivers/usb/serial
940 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media/dvb
932 /usr/lib/xorg/modules/libpcidata.so
926 /usr/lib/libstdc++.so.6.0.10
913 /lib/modules/2.6.25.2-pxa270/kernel/net
904 /usr/lib/libX11.so.6.2.0
869 /usr/share/zoneinfo/right
846 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media/video
842 /usr/bin/gpg
833 /usr/sbin
821 /usr/lib/libapt-pkg-libc6.6-6.so.4.6.0
755 /var/lib/apt
751 /var/lib/apt/lists
744 /bin/busybox
742 /tmp/bb-1.11
740 /tmp/busybox
740 /tmp/bb-1.11/busybox
731 /var/lib/apt/lists/buildd.emdebian.org_emdebian_dists_unstable_main_binary-arm_Packages
711 /usr/lib/libglib-2.0.so.0.1600.5
685 /lib/modules/2.6.25.2-pxa270/kernel/fs/nls
666 /lib/modules/2.6.25.2-pxa270/kernel/sound
662 /usr/share/zoneinfo/posix
662 /lib/libslang.so.2.1.3
==============================
Balloon todo list
-------------------
Add CONFIG_DISPLAY_TOPPOLY in kernel build.
$ grep perl usr/sbin/*
Binary file usr/sbin/chroot matches
usr/sbin/cleanup-info:#!/usr/bin/perl --
usr/sbin/dpkg-divert:#!/usr/bin/perl --
usr/sbin/dpkg-statoverride:#! /usr/bin/perl
Binary file usr/sbin/fbset matches
usr/sbin/install-info:#!/usr/bin/perl --
usr/sbin/mkboot: bootpart=$(perl -ne 'print $1 if /^\s*boot\s*=\s*(\S*)/' /etc/lilo.conf)
usr/sbin/pam_getenv:#!/usr/bin/perl -w
Binary file usr/sbin/rdate matches
Binary file usr/sbin/udhcpd matches
usr/sbin/update-alternatives:#!/usr/bin/perl --
(debianutils: /usr/sbin/mkboot)
$ grep perl usr/bin/* | grep -v Binary
usr/bin/chkdupexe:#!/usr/bin/perl -w
usr/bin/chkdupexe:# Distribute under gnu copyleft (included in perl package)
usr/bin/chkdupexe:# - Made it possible to run with perl -w
usr/bin/chkdupexe: die "NUTS! Personaly I think your perl or filesystem is broken.\n".
(util-linux)
Kernel command line: noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttyS2,115200 rootfstype=yaffs2 cpufreq=59000-206400 machine_id=00000
balloon3_init_irq: chained handler installed - irq 126 automatically enabled
# grep oknodo /etc/init.d/S*
/etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
/etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
/etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
--retry is also not supported.
mkdir /mnt/sda1
mkdir /mnt/sda2
Add initscripts to get mountpoint for udev.
drop install-info from dpkg

2
debian/control vendored

@ -5,7 +5,7 @@ Maintainer: Neil Williams <codehelp@debian.org>
Uploaders: Wookey <wookey@debian.org>
Build-Depends: cdbs, debhelper (>= 5), po4a (>= 0.37.1)
Build-Depends-Indep: intltool
Standards-Version: 3.8.4
Standards-Version: 3.9.0
Homepage: http://www.emdebian.org/multistrap
Vcs-Browser: http://buildd.emdebian.org/svn/browser/current/
Vcs-Svn: http://buildd.emdebian.org/repos/current/

4
debian/rules vendored

@ -1,10 +1,6 @@
#!/usr/bin/make -f
# Sample debian/rules that uses cdbs. Originally written by Robert Millan.
# This file is public domain.
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_MAKE_INSTALL_TARGET=install
DEB_COMPRESS_EXCLUDE := device_table.txt

@ -89,8 +89,7 @@ if (not defined $dry) {
push @seq, "cd $dir";
}
foreach $line (@list)
{
foreach $line (@list) {
chomp ($line);
next if ($line =~ /^#/);
next if ($line =~ /^$/);
@ -114,26 +113,19 @@ foreach $line (@list)
push @seq, "mknod .$cmd[0] $cmd[1] $cmd[5] $cmd[6]";
push @seq, "chmod $cmd[2] .$cmd[0]";
push @seq, "chown $cmd[3]:$cmd[4] .$cmd[0]";
}
else
{
for ($i = 0; $i < $cmd[9]; $i += $cmd[8])
{
} else {
for ($i = 0; $i < $cmd[9]; $i += $cmd[8]) {
push @seq, "mknod .$cmd[0]$i $cmd[1] $cmd[5] $i";
push @seq, "chmod $cmd[2] .$cmd[0]$i";
push @seq, "chown $cmd[3]:$cmd[4] .$cmd[0]$i";
}
}
}
if (defined $dry)
{
if (defined $dry) {
print join ("\n", @seq);
print "\n";
}
else
{
foreach my $node (@seq)
{
} else {
foreach my $node (@seq) {
system ("$fakeroot $node");
}
}

Loading…
Cancel
Save