Package: util-linux
Version: 2.12r-8
Severity: wishlist
Tags: d-i, patch

The cfdisk udebs currently depends on the regular libslang2 package. 
Recent changes in dpkg-dev have made it possible to automatically 
generate proper dependencies on libslang2-udeb instead.

The attached patch implements this for util-linux. The needed changes are:
- add versioned dpkg-dev dependency to 1.13.12
- add "-tudeb" option to dpkg-shlibdeps

I've checked that there are no other unexpected changes using debdiff.

Cheers,
FJP

diff -u util-linux-2.12r/debian/rules util-linux-2.12r/debian/rules
--- util-linux-2.12r/debian/rules
+++ util-linux-2.12r/debian/rules
@@ -267,12 +267,12 @@
 		cp $(CFDISK_PO_DIR)/$$LANG.gmo debian/tmp-cfdisk-udeb/usr/share/locale/$$LANG/LC_MESSAGES/util-linux.mo ; \
 	done
 
-	ls debian/tmp-fdisk-udeb/usr/sbin/* | xargs dpkg-shlibdeps -pfdisk-udeb
+	ls debian/tmp-fdisk-udeb/usr/sbin/* | xargs dpkg-shlibdeps -pfdisk-udeb -tudeb
 	dpkg-gencontrol -isp -pfdisk-udeb -Pdebian/tmp-fdisk-udeb -fdebian/files~
 	dpkg-distaddfile fdisk-udeb_$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)_$(arch).udeb debian-installer extra
 	dpkg --build debian/tmp-fdisk-udeb ../fdisk-udeb_$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)_$(arch).udeb
 
-	ls debian/tmp-cfdisk-udeb/usr/sbin/* | xargs dpkg-shlibdeps -pcfdisk-udeb
+	ls debian/tmp-cfdisk-udeb/usr/sbin/* | xargs dpkg-shlibdeps -pcfdisk-udeb -tudeb
 	dpkg-gencontrol -isp -pcfdisk-udeb -Pdebian/tmp-cfdisk-udeb -fdebian/files~
 	dpkg-distaddfile cfdisk-udeb_$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)_$(arch).udeb debian-installer extra
 	dpkg --build debian/tmp-cfdisk-udeb ../cfdisk-udeb_$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)_$(arch).udeb
diff -u util-linux-2.12r/debian/control util-linux-2.12r/debian/control
--- util-linux-2.12r/debian/control
+++ util-linux-2.12r/debian/control
@@ -1,7 +1,7 @@
 Source: util-linux
 Section: base
 Priority: required
-Build-Depends: libncurses5-dev, libslang2-dev (>=2.0.4-1), gettext, zlib1g-dev, libblkid-dev, uuid-dev, dpatch
+Build-Depends: libncurses5-dev, libslang2-dev (>=2.0.4-1), gettext, zlib1g-dev, libblkid-dev, uuid-dev, dpatch, dpkg-dev (>=1.13.12)
 Maintainer: LaMont Jones <[EMAIL PROTECTED]>
 Standards-Version: 3.6.2.0
 

Attachment: pgpgN1qCZzWcz.pgp
Description: PGP signature

Reply via email to