Package: libcap2
Version: 1:2.24-6
Severity: normal
Tags: patch

Hi!
Since systemd 217[1], libudev1, and therefore libudev1-udeb, depends on
libcap2.
In order to still get d-i to build, libcap would need to provide a udeb for
d-i.
A debdiff for adding the required udeb is attached.
Please note that the systemd release requiring this change is only in
experimental so far.
Thanks for considering!
    Matthias Klumpp


[1]: Or better, as Michael Biebl told me, this commit:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=0b906b8d6f901866046636e75e138348afb1d8c0
diff -Nru libcap2-2.24/debian/changelog libcap2-2.24/debian/changelog
--- libcap2-2.24/debian/changelog	2015-03-29 15:10:08.000000000 +0200
+++ libcap2-2.24/debian/changelog	2015-04-12 22:04:16.000000000 +0200
@@ -1,3 +1,10 @@
+libcap2 (1:2.24-8.1) UNRELEASED; urgency=medium
+
+  * Add udeb package for libcap2 to be used in d-i, since
+    the libudev1-udeb package depends on libcap2 now.
+
+ -- Matthias Klumpp <m...@debian.org>  Sun, 12 Apr 2015 17:18:35 +0200
+
 libcap2 (1:2.24-8) unstable; urgency=medium
 
   * debian/libcap2-bin.maintscript:
diff -Nru libcap2-2.24/debian/control libcap2-2.24/debian/control
--- libcap2-2.24/debian/control	2015-03-29 15:10:08.000000000 +0200
+++ libcap2-2.24/debian/control	2015-04-12 17:15:09.000000000 +0200
@@ -95,3 +95,17 @@
  .
  This package contains the PAM module for enforcing capabilities on users and
  groups at PAM session start time.
+
+Package: libcap2-udeb
+Section: debian-installer
+Architecture: linux-any
+Package-Type: udeb
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: POSIX 1003.1e capabilities (library)
+ Libcap implements the user-space interfaces to the POSIX 1003.1e capabilities
+ available in Linux kernels. These capabilities are a partitioning of the all
+ powerful root privilege into a set of distinct privileges.
+ .
+ This is a minimal version, only for use in the installation system.
diff -Nru libcap2-2.24/debian/libcap2-udeb.install libcap2-2.24/debian/libcap2-udeb.install
--- libcap2-2.24/debian/libcap2-udeb.install	1970-01-01 01:00:00.000000000 +0100
+++ libcap2-2.24/debian/libcap2-udeb.install	2015-03-29 15:10:08.000000000 +0200
@@ -0,0 +1 @@
+lib/*/*.so.*
diff -Nru libcap2-2.24/debian/rules libcap2-2.24/debian/rules
--- libcap2-2.24/debian/rules	2015-03-29 15:10:08.000000000 +0200
+++ libcap2-2.24/debian/rules	2015-04-12 17:22:39.000000000 +0200
@@ -46,5 +46,10 @@
 	dh_install --fail-missing
 
 
+override_dh_makeshlibs:
+	dh_makeshlibs -plibcap2 --add-udeb=libcap2-udeb -- -c4
+	dh_makeshlibs --remaining-packages -- -c4
+
+
 override_dh_strip:
 	dh_strip --dbg-package=libcap2-dbg
diff -Nru libcap2-2.24/debian/shlibs.local libcap2-2.24/debian/shlibs.local
--- libcap2-2.24/debian/shlibs.local	1970-01-01 01:00:00.000000000 +0100
+++ libcap2-2.24/debian/shlibs.local	2015-04-12 17:17:46.000000000 +0200
@@ -0,0 +1 @@
+udeb: libcap 2 libcap2-udeb

Reply via email to