tags 965056 + patch
thanks
On Wed, 15 Jul 2020 11:39:48 +0200 Laurent Bigonville <bi...@debian.org>
wrote:
> Hello,
>
> Would be nice to enable SELinux support in libuser
>
> That however cannot be done before #956354 is fixed.
#956354 is now fixed, could you please enable SELinux support in libuser
(see attached patch)?
Kind regards,
Laurent Bigonville
diff -Nru libuser-0.63~dfsg/debian/control libuser-0.63~dfsg/debian/control
--- libuser-0.63~dfsg/debian/control 2021-09-18 03:55:14.000000000 +0200
+++ libuser-0.63~dfsg/debian/control 2021-09-18 11:38:25.000000000 +0200
@@ -12,6 +12,7 @@
libpam0g-dev,
libpopt-dev,
libpython3-dev,
+ libselinux-dev [linux-any],
linuxdoc-tools,
pkg-config,
python3,
diff -Nru libuser-0.63~dfsg/debian/rules libuser-0.63~dfsg/debian/rules
--- libuser-0.63~dfsg/debian/rules 2021-09-18 03:57:11.000000000 +0200
+++ libuser-0.63~dfsg/debian/rules 2021-09-18 11:38:25.000000000 +0200
@@ -15,6 +15,10 @@
DPKG_EXPORT_BUILDTOOLS = 1
include /usr/share/dpkg/default.mk
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ENABLE_SELINUX = --with-selinux
+endif
+
%:
dh $@
@@ -24,7 +28,7 @@
override_dh_auto_configure:
dh_auto_configure -- \
--program-transform-name="s/lid/libuser-lid/" \
- --with-python=no
+ --with-python=no $(ENABLE_SELINUX)
execute_after_dh_auto_install:
find . -name '*.la' -delete