tag 751991 + patch
thanks

Hello,

Please find here a patch that fixes this bug

Cheers,

Laurent Bigonville

On Wed, 18 Jun 2014 17:05:45 +0200 Laurent Bigonville
<bi...@debian.org> wrote:
> Source: psmisc
> Version: 22.21-2
> Severity: wishlist
> 
> Hi,
> 
> Could you please enable SELinux support on linux architectures.
> 
> This is adding the ability for killall to kill all the processes that
> belong to a context and to pstree to display the process context.
> 
> To achieve this you need to add libselinux1-dev [linux-any] to the
> build-dependencies and to pass --enable-selinux to the configure.
> 
> Cheers,
> 
> Laurent Bigonville
> 
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> 

diff -Nru psmisc-22.21/debian/changelog psmisc-22.21/debian/changelog
--- psmisc-22.21/debian/changelog	2014-02-28 12:01:23.000000000 +0100
+++ psmisc-22.21/debian/changelog	2015-04-17 18:17:27.000000000 +0200
@@ -1,3 +1,9 @@
+psmisc (22.21-3) UNRELEASED; urgency=medium
+
+  * Enable SELinux support on linux architectures (Closes: #751991)
+
+ -- Laurent Bigonville <bi...@debian.org>  Fri, 17 Apr 2015 18:17:02 +0200
+
 psmisc (22.21-2) unstable; urgency=medium
 
   * Fixed fuser -M typo Closes: #740275 thanks Brad
diff -Nru psmisc-22.21/debian/control psmisc-22.21/debian/control
--- psmisc-22.21/debian/control	2014-02-28 12:01:23.000000000 +0100
+++ psmisc-22.21/debian/control	2015-04-17 18:15:17.000000000 +0200
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer:  Craig Small <csm...@debian.org>
-Build-Depends: debhelper (>= 9.0.0), libncurses-dev, gettext
+Build-Depends: debhelper (>= 9.0.0), libncurses-dev, gettext, libselinux1-dev [linux-any]
 Standards-Version: 3.9.5
 
 Package: psmisc
diff -Nru psmisc-22.21/debian/rules psmisc-22.21/debian/rules
--- psmisc-22.21/debian/rules	2014-02-28 12:01:23.000000000 +0100
+++ psmisc-22.21/debian/rules	2015-04-17 18:16:57.000000000 +0200
@@ -1,9 +1,16 @@
 #!/usr/bin/make -f
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
+ifeq ($(DEB_BUILD_ARCH_OS),linux)
+CONFIGURE_FLAGS = --enable-selinux
+endif
+
 %:
 	dh $@
 
+override_dh_auto_configure:
+	dh_auto_configure -- ${CONFIGURE_FLAGS}
+
 override_dh_auto_install:
 	dh_auto_install
 	if [ -f "debian/psmisc/usr/bin/fuser" ] ; then \

Reply via email to