Package: mach
Version: 0.9.1-2
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
your package is BD-Uninstallable on non-Linux ports because of its B-D
on libselinux-dev. The attached patch should fix it, making it
conditional, as well as passing --{enable,disable}-selinux to
../configure. It then builds fine, at least on kfreebsd-i386.
If it makes no sense to have it built without selinux, please request
its addition to P-a-s as a Linux-only package.
Thanks for considering.
Mraw,
KiBi.
--- mach-0.9.1/debian/control
+++ mach-0.9.1/debian/control
@@ -2,7 +2,7 @@
Maintainer: Loic Minier <[email protected]>
Section: admin
Priority: optional
-Build-Depends: debhelper (>= 5), cdbs, python (>= 2.2), autotools-dev,
python-support (>= 0.5.3), libselinux1-dev
+Build-Depends: debhelper (>= 5), cdbs, python (>= 2.2), autotools-dev,
python-support (>= 0.5.3), libselinux1-dev [!hurd-i386 !kfreebsd-amd64
!kfreebsd-i386]
Standards-Version: 3.7.2
Package: mach
--- mach-0.9.1/debian/rules
+++ mach-0.9.1/debian/rules
@@ -12,7 +12,12 @@
MACH_HELPER_DIR := usr/lib/mach/sbin
# SELinux must be forced and not detected on the build host
+ifeq ($(DEB_HOST_ARCH_OS),linux)
DEB_CONFIGURE_EXTRA_FLAGS += --enable-selinux
+else
+DEB_CONFIGURE_EXTRA_FLAGS += --disable-selinux
+endif
+
# the SUID root helper shouldn't be called directly, and hence does not need to
# be in /usr/sbin; /usr/lib/mach seems a more sane location
DEB_CONFIGURE_EXTRA_FLAGS += --sbindir=/$(MACH_HELPER_DIR)