Package: sysfsutils
Version: 2.0.0-5
Severity: wishlist
Tags: patch, d-i

Let's call this an important wishlist bug (important for Debian Installer 
anyway :-)

Please add the following line to your shlibs file:
udeb: libsysfs 2 libsysfs2-udeb

This will allow dpkg/debhelper to properly set the dependencies for udebs 
that depend on libsysfs2.
Please see #345472 and #345475 for further info on this.

This will also mean that, eventually, we will be able to drop the
"Provides: libsysfs2" for the udeb, but we cannot do that until other 
udebs that currently depend on libsysfs2 instead of libsysfs2-udeb have 
been rebuilt. I'll file a separate bug when that change can be made.

It would be very much appreciated if this change could be implemented
soon.


The attached patch implements the necessary changes:
- add --add-udeb option for dh_makeshlibs which autogenerates the udeb:
  lines for the shlibs file
- this requires debhelper 5.0.22, so also updated your debian/compat

I've checked the debdiff for the libsysfs2 deb and udeb against current 
versions and there were no unexpected changes.

TIA,
Frans Pop
diff -u sysfsutils-2.0.0/debian/control sysfsutils-2.0.0/debian/control
--- sysfsutils-2.0.0/debian/control
+++ sysfsutils-2.0.0/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: extra
 Maintainer: Martin Pitt <[EMAIL PROTECTED]>
-Build-Depends: cdbs, debhelper (>= 4.2)
+Build-Depends: cdbs, debhelper (>= 5.0.22)
 Standards-Version: 3.6.1
 
 Package: libsysfs-dev
diff -u sysfsutils-2.0.0/debian/rules sysfsutils-2.0.0/debian/rules
--- sysfsutils-2.0.0/debian/rules
+++ sysfsutils-2.0.0/debian/rules
@@ -8,6 +8,7 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS := --libdir=/lib
+DEB_DH_MAKESHLIBS_ARGS_libsysfs2 := --add-udeb="libsysfs2-udeb"
 
 install/libsysfs2-udeb::
 	cp -L debian/tmp/lib/libsysfs.so.? debian/$(cdbs_curpkg)/lib
diff -u sysfsutils-2.0.0/debian/compat sysfsutils-2.0.0/debian/compat
--- sysfsutils-2.0.0/debian/compat
+++ sysfsutils-2.0.0/debian/compat
@@ -1 +1 @@
-4
+5

Attachment: pgpfM6SWtkenO.pgp
Description: PGP signature

Reply via email to