Package: src:mate-system-monitor
Version: 1.14.0-1
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd
User: debian-...@lists.debian.org
Usertags: kfreebsd

Currently, --enable-systemd is unconditionally passed to the configure script.
I have attached a patch so that --disable-systemd is given instead for non-
Linux architectures.
From 58773cf93c2bc58d048ac88cfe3cbc526f7bf352 Mon Sep 17 00:00:00 2001
From: James Clarke <jrt...@jrtc27.com>
Date: Fri, 3 Jun 2016 02:07:13 +0100
Subject: [PATCH] debian/rules: Only enable systemd on linux

---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 499bd8a..95373be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
+  CONFIGURE_SYSTEMD = --enable-systemd
+else
+  CONFIGURE_SYSTEMD = --disable-systemd
+endif
+
 %:
 	dh $@ $(DHFLAGS)
 
@@ -20,7 +27,7 @@ override_dh_auto_configure:
 		--libexecdir=/usr/lib/${pkgname} \
 		--localstatedir=/var \
 		--disable-static \
-		--enable-systemd \
+		$(CONFIGURE_SYSTEMD) \
 		--with-gtk=3.0
 
 override_dh_strip:
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature

Reply via email to