Source: libselinux
Version: 2.5-3
Severity: normal
Tags: patch
Control: affects -1 + open-iscsi

Dear Maintainer,

please provide libselinux1-udeb for use in a d-i environment, since
libmount depends on libselinux, and open-iscsi-udeb will depend on
libmount in the future. See https://bugs.debian.org/834241 for
further details.

I will file a separate bug against util-linux to reenable building
of a libmount-udeb and block it against this bug.

I've attached a patch against the git packaging repository that adds
the udeb package, together with the proper information in the shlibs
file so that substvars of dependencies pick it up.

It would be great if you could include this. Thanks!

Regards,
Christian

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
        
From 2e29b440cfeb8288580d5130c1721abfaa4df068 Mon Sep 17 00:00:00 2001
From: Christian Seiler <christ...@iwakd.de>
Date: Thu, 25 Aug 2016 15:09:57 +0200
Subject: [PATCH 1/2] Add libselinux1-udeb (depended on by libmount1-udeb)

Closes: #xxxxxx
---
 debian/control                  | 23 +++++++++++++++++++++++
 debian/libselinux1-udeb.install |  1 +
 debian/rules                    |  4 ++++
 3 files changed, 28 insertions(+)
 create mode 100644 debian/libselinux1-udeb.install

diff --git a/debian/control b/debian/control
index fd2d079..e902606 100644
--- a/debian/control
+++ b/debian/control
@@ -83,6 +83,29 @@ Description: SELinux development headers
  control policies, including those based on the concepts of Type
  Enforcement, Role-based Access Control, and Multi-level Security.
 
+Package: libselinux1-udeb
+Architecture: linux-any
+Section: debian-installer
+Package-Type: udeb
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: SELinux runtime shared libraries
+ This package provides the shared libraries for Security-enhanced
+ Linux that provides interfaces (e.g. library functions for the
+ SELinux kernel APIs like getcon(), other support functions like
+ getseuserbyname()) to SELinux-aware applications. Security-enhanced
+ Linux is a patch of the Linux kernel and a number of utilities with
+ enhanced security functionality designed to add mandatory access
+ controls to Linux.  The Security-enhanced Linux kernel contains new
+ architectural components originally developed to improve the security
+ of the Flask operating system. These architectural components provide
+ general support for the enforcement of many kinds of mandatory access
+ control policies, including those based on the concepts of Type
+ Enforcement, Role-based Access Control, and Multi-level Security.
+ .
+ libselinux1-udeb provides the libselinux shared library for use within
+ the Debian installer. Do not install it on a normal system.
+
 Package: ruby-selinux
 Architecture: linux-any
 Depends: ruby | ruby-interpreter, ${misc:Depends}, ${shlibs:Depends}
diff --git a/debian/libselinux1-udeb.install b/debian/libselinux1-udeb.install
new file mode 100644
index 0000000..6801ea0
--- /dev/null
+++ b/debian/libselinux1-udeb.install
@@ -0,0 +1 @@
+lib/*/*.so* /lib
diff --git a/debian/rules b/debian/rules
index 1d11fa5..bbc8eaa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -81,3 +81,7 @@ override_dh_install: FORCE
 
 override_dh_gencontrol:
 	dh_gencontrol -- -VBuilt-Using="$(BUILT_USING)"
+
+override_dh_makeshlibs:
+	dh_makeshlibs -plibselinux1 --add-udeb="libselinux1-udeb"
+	dh_makeshlibs --remaining-packages
-- 
2.9.3

Reply via email to