Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[RFC] Adding udebs in shlibs files for glibc

From: Frans Pop <elendil(at)planet.nl>
Date: Sat Feb 09 2008 - 23:02:26 EST


As you may know, dependencies on glibc udebs are the only category that is still incorrect [1]. This is an attempt to fix that.

Normally we would add an option '--udeb <udeb name>' to the dh_makeshlibs call in debian/rules. However, in the case of glibc this does not work. Reason is that two libraries (libnss-dns and libnss-files) that are both in the regular libc6 package, have been split out into separate udebs. Another (minor) reason is that not all libraries are copied into udebs, so adding udeb: lines in the shlibs files for those seems redundant.

Solution I have come up with is to write a small script that will generate the udeb: lines _after_ dh_makeshlibs has generated the basic shlibs file.

As an example, the output of the script on amd64 is:

udeb: ld-linux-x86-64 2 libc6-udeb (>= 2.7-1)
udeb: libm 6 libc6-udeb (>= 2.7-1)
udeb: libdl 2 libc6-udeb (>= 2.7-1)
udeb: libresolv 2 libc6-udeb (>= 2.7-1)
udeb: libc 6 libc6-udeb (>= 2.7-1)
udeb: libutil 1 libc6-udeb (>= 2.7-1)
udeb: libcrypt 1 libc6-udeb (>= 2.7-1)
udeb: librt 1 libc6-udeb (>= 2.7-1)
udeb: libpthread 0 libc6-udeb (>= 2.7-1)
udeb: libnss_dns 2 libnss-dns-udeb (>= 2.7-1)
udeb: libnss_files 2 libnss-files-udeb (>= 2.7-1)

Any comments on this approach and the patch before I proceed [2] with this?

Joey: do you see any chance to incorporate this in debhelper, or is adding it glibc the better option?

Cheers,
FJP [1] Except maybe the deps of some components we currently don't use.

    See also: http://wiki.debian.org/DebianInstaller/LibraryUdebs [2] Before I submit the patch I would at least like to do some build and

Do you need help?X

    run tests with this to see if there'd be any transition issues.

-- 
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sat Feb 9 23:03:08 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 05:30:04 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library