[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The emdebian rootfs - pending



On Wed, 10 Oct 2007 19:49:11 +0100
Neil Williams <codehelp@debian.org> wrote:

> 2. The remainder of the dpkg transition - hopefully completed with
> experimental support this weekend.
> 
> 3. gcc-4.2 - AGAIN.
> :-(
> 

Missing cross dependency. Added to debian/xcontrol - I'll update the
patches this afternoon.

> gcc-4.2-base has nothing useful to an embedded device, it's pointless
> letting gcc insist on it.

Need to work out how to remove this dependency still - it's 101kb of
waste. Once dpkg is able to filter on installation, it could be
rendered empty (it's only copyright/changelog/README stuff). The
gcc-4.x build is such a complex beast that it is hard to see why this
dependency is being added. I can probably stop any files being put into
the -base package but I'd prefer to drop the dependency entirely.

> The rootfs will be larger than I first expected but still a lot smaller
> than a typical Debian debootstrap. With the above provisos, I should
> have an automated debootstrap script next week.

I'm looking to rebuild all the rootfs packages on buildd.emdebian.org
and update the versions in the repository over the next few days. The
new packages and the new support in emsandbox should ensure that the
resulting rootfs is installable as a starter.

Packages:

    required="busybox dpkg libstdc++6 libgcc1 tzdata libc6
    cdebconf libdebian-installer4 zlib1g gcc-4.2-base"

    base="apt gpgv libreadline5 debian-archive-keyring
    readline-common debianutils makedev base-passwd libselinux
    libsepol1"

A smaller subset can be used if SecureApt is not to be supported:

    required="busybox dpkg libstdc++6 libgcc1 tzdata libc6
    cdebconf libdebian-installer4 gcc-4.2-base"

    base="apt libselinux libsepol1"

Do we want SecureApt on the Emdebian target repository by default? IIRC
there is an option to apt to disable it. I can probably set that option
via emsandbox so that the same package could be used for both and then
we'd have two options : with SecureApt and without. Proceeding with
SecureApt on, for now at least.

A customised busybox can provide dpkg only if apt is also removed,
currently, due to a the limited option set supported by the busybox
dpkg. More testing on that would be appreciated once the packages have
been updated.

I'll work on the first package set - I know it's larger than originally
intended but that is principally due to libc6. I'm not sure how to
handle the glibc gconv files:
./usr/lib/gconv/ISO8859-7.so
./usr/lib/gconv/JOHAB.so
./usr/lib/gconv/MAC-IS.so
./usr/lib/gconv/IBM9030.so
etc.etc.

How should these be subdivided? How do we determine which gconv files
should go into which extra packages to reduce the total number
installed on any one device?

The rest of libc6 is big enough:
$ dpkg -c extra-deb/libc6_2.6.1-5em1_arm.deb | grep -v gconv | grep -v
"  0 " | cut -d' ' -f5- | sort -n
...
 101781 2007-10-10 11:13 ./lib/libdl-2.6.1.so
 111421 2007-10-10 11:21 ./lib/libpthread-2.6.1.so
 154004 2007-10-10 11:16 ./lib/librt-2.6.1.so
 156537 2007-10-10 11:16 ./lib/libnss_files-2.6.1.so
 170083 2007-10-10 11:17 ./lib/libthread_db-1.0.so
 172059 2007-10-10 11:09 ./usr/bin/iconv
 179134 2007-10-10 11:17 ./lib/libnss_nis-2.6.1.so
 229447 2007-10-10 11:16 ./lib/libresolv-2.6.1.so
 233464 2007-10-10 11:17 ./lib/libnss_nisplus-2.6.1.so
 242017 2007-10-10 11:17 ./lib/libcidn-2.6.1.so
 432868 2007-10-10 11:17 ./lib/libnsl-2.6.1.so
 599195 2007-10-10 11:19 ./lib/ld-2.6.1.so
 809995 2007-10-10 11:11 ./usr/bin/localedef
 983538 2007-10-10 11:12 ./lib/libm-2.6.1.so
2889300 2007-10-10 11:19 ./sbin/ldconfig
7454792 2007-10-10 11:19 ./lib/libc-2.6.1.so

Any there that we don't actually need?

Most of those questions can wait until after CELF - my main objective
is getting the larger, SecureApt package set rebuilt and available in
the repository in time for CELF along with the final tweaks to
emsandbox so that the --second-stage support for debootstrap is usable.
The second stage works in manual mode with these packages, hopefully
there isn't much more than a few tweaks required.

I'm watching for dpkg 1.14.8, expecting a release this evening. I'll
probably release emdebian-tools 0.4.0 to Debian tonight (including
the latest changes to emsandbox) and then 0.4.1 to Emdebian with
whatever tweaks are needed for dpkg 1.14.8.

Package updates:
 apt                       0.7.6em1
 base-passwd               3.5.11em1
 busybox                   1:1.1.3-5em1
 cdebconf                  0.115em1
 debianutils               2.25.1em1
 dpkg                      1.14.7em1
 gcc-4.2-base              4.2.2-1em1
 gpgv                      1.4.6-2em1
 libc6                     2.6.1-5em1
 libdebian-installer4      0.51em1
 libgcc1                   4.2.2-1em1
 libreadline5              5.2-2em1
 libselinux1               2.0.8-1em1
 libsepol1                 2.0.1-1em1
 libstdc++6                4.2.2-1em1
 makedev                   2.3.1-84em1
 readline-common           5.2-2em1
 zlib1g                    1:1.2.3.3.dfsg-6em1

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgp3MkmsAShEQ.pgp
Description: PGP signature


Reply to: