Package: xfsprogs
Version: 2.8.3-1
Severity: wishlist
Tags: d-i, patch

The xfsprogs udeb currently depend on regular packages. Recent changes in
debhelper and dpkg-dev have made it possible to automatically  generate
properly dependencies on udebs instead.

The attached patch implements this for xfsprogs. The needed change is:
- add "XC-Package-Type: udeb" lines in debian/control to make debhelper
  aware which binaries are udebs

The last change also makes a few simplifications possible in the
debian/rules file. I've included these in the patch.

The result is the following changes in dependencies for both udebs:
Depends: libc6 (>= 2.3.6-6), [-libuuid1-] {+libuuid1-udeb+}

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

Cheers,
FJP
diff -Nru /tmp/hHbVR3A6hq/xfsprogs-2.8.3/debian/control /tmp/wRmDlOVBHP/xfsprogs-2.8.3/debian/control
--- /tmp/hHbVR3A6hq/xfsprogs-2.8.3/debian/control	2006-06-20 08:51:27.000000000 +0200
+++ /tmp/wRmDlOVBHP/xfsprogs-2.8.3/debian/control	2006-06-26 01:16:06.000000000 +0200
@@ -36,6 +36,7 @@
  develop XFS filesystem-specific programs.
 
 Package: xfsprogs-udeb
+XC-Package-Type: udeb
 Section: debian-installer
 Priority: optional
 Architecture: any
diff -Nru /tmp/hHbVR3A6hq/xfsprogs-2.8.3/debian/rules /tmp/wRmDlOVBHP/xfsprogs-2.8.3/debian/rules
--- /tmp/hHbVR3A6hq/xfsprogs-2.8.3/debian/rules	2006-06-20 08:51:27.000000000 +0200
+++ /tmp/wRmDlOVBHP/xfsprogs-2.8.3/debian/rules	2006-06-26 01:17:43.000000000 +0200
@@ -69,20 +69,17 @@
 	$(pkgdi)  $(MAKE) -C debian install-d-i
 	$(pkgme)  $(MAKE) -C build src-manifest
 
-	dh_installdocs -p$(package) -p$(develop)
-	dh_installchangelogs -N$(bootpkg)
+	dh_installdocs
+	dh_installchangelogs
 	dh_strip
 	dh_compress
 	dh_fixperms
-	dh_makeshlibs -p$(package)
-	dh_installdeb -N$(bootpkg)
+	dh_makeshlibs
+	dh_installdeb
 	dh_shlibdeps
-	dh_gencontrol -N$(bootpkg)
-	dh_gencontrol -p$(bootpkg) -- -n$(udebpkg)
-
-	dh_md5sums -N$(bootpkg)
-	dh_builddeb -N$(bootpkg)
-	dh_builddeb -p$(bootpkg) --filename=$(udebpkg)
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
 
 binary: binary-indep binary-arch
 

Attachment: pgpU3kZ0lWK3F.pgp
Description: PGP signature

Reply via email to