[Pkg-cryptsetup-devel] Bug#358452: cryptsetup-udeb: are three library udeb's really necessary

David Härdeman david at 2gen.com
Wed Apr 12 09:40:11 UTC 2006


Jonas Meurer wrote:
> but i fear that they will require some more udebs to work. at least
> libpopt0, libgpg-error0 and libgcrypt11 have no udebs currently.

I've taken a closer look at the current situation, and it seems likely that
the list can be shortened...

Running "ldd /sbin/cryptsetup" yields:
    linux-gate.so.1 =>  (0xffffe000)
    libpopt.so.0 => /lib/libpopt.so.0 (0xb7ef5000)
    libdevmapper.so.1.02 => /lib/libdevmapper.so.1.02 (0xb7ee4000)
    libuuid.so.1 => /lib/libuuid.so.1 (0xb7ee0000)
    libc.so.6 => /lib/tls/libc.so.6 (0xb7da8000)
    libselinux.so.1 => /lib/libselinux.so.1 (0xb7d94000)
    /lib/ld-linux.so.2 (0xb7f0b000)
    libdl.so.2 => /lib/tls/libdl.so.2 (0xb7d90000)
    libsepol.so.1 => /lib/libsepol.so.1 (0xb7d51000)

no trace of libgpg-error0 and libgcrypt11 there...looking at the debian/rules
file we see:

    ...
    # cannot depend on libraries in /usr !
    gcc lib/.libs/*.o src/*.o luks/.libs/*.o -o src/cryptsetup.static \
        -lpopt -ldevmapper -luuid /usr/lib/libgcrypt.a \
        /usr/lib/libgpg-error.a
    ...


So if libgpg-error0 and libgcrypt11 are statically linked into cryptsetup, and
libdevmapper and libuuid already have udebs, only a libpopt udeb (bug #358671)
should be needed and the wishlist bugs against libgpg-error0 and libgcrypt11
can be dropped.

Jonas, is this analysis correct?

Regards,
David





More information about the Pkg-cryptsetup-devel mailing list