[mate-system-monitor] 08/09: debian/patches: Add 1001_search-for-libsystemd-dev.patch. Be satisfied if libsystemd-dev is installed at build time.

Mike Gabriel sunweaver at debian.org
Fri Jun 19 13:26:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch debian/experimental
in repository mate-system-monitor.

commit 3a8a8b7f0f39fc8998b0dbff34b2335bd9f398a6
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Jun 19 15:10:59 2015 +0200

    debian/patches: Add 1001_search-for-libsystemd-dev.patch. Be satisfied if libsystemd-dev is installed at build time.
---
 .../patches/1001_search-for-libsystemd-dev.patch   | 27 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/1001_search-for-libsystemd-dev.patch b/debian/patches/1001_search-for-libsystemd-dev.patch
new file mode 100644
index 0000000..0654710
--- /dev/null
+++ b/debian/patches/1001_search-for-libsystemd-dev.patch
@@ -0,0 +1,27 @@
+Description: Search for libsystemd rather than libsystemd-login
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+Abstract:
+ In Debian stretch and beyond all systemd headers are provided
+ via the libsystemd-dev. Thus, src:packages have to B-D on
+ libsystemd-dev (and not libsystemd-login-dev) and also
+ configure scripts need to be satisfied if libsystemd is
+ installed.
+ .
+ This patch is not 100% suitable for upstream, because the generic
+ approach would be to test for libsystemd first, if not present,
+ test for libsystemd-login and only if both are non-present on the
+ build system, a failture should be triggered.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -70,8 +70,8 @@
+ have_systemd=no
+ AC_ARG_ENABLE(systemd, AS_HELP_STRING([--disable-systemd], [disable systemd support]),,enable_systemd=no)
+ 	if test "x$enable_systemd" != "xno"; then
+-		PKG_CHECK_MODULES(SYSTEMD, [ libsystemd-login >= $SYSTEMD_REQUIRED ],
+-					   [ PKG_CHECK_MODULES(SYSTEMD_EX, [ libsystemd-login = $SYSTEMD_EXCLUDED ],
++		PKG_CHECK_MODULES(SYSTEMD, [ libsystemd >= $SYSTEMD_REQUIRED ],
++					   [ PKG_CHECK_MODULES(SYSTEMD_EX, [ libsystemd = $SYSTEMD_EXCLUDED ],
+ 									   AC_MSG_ERROR([*** systemd v43 found but it has a bug in its header files (uses C++ keyword)]), # Can't use systemd v43
+ 									   [AC_DEFINE(HAVE_SYSTEMD, 1, [Define if systemd is available]) have_systemd=yes])],
+ 					   have_systemd=no)
diff --git a/debian/patches/series b/debian/patches/series
index 83b110e..09b701c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+1001_search-for-libsystemd-dev.patch
 2001_omit-gfdl-licensed-help-files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-system-monitor.git



More information about the pkg-mate-commits mailing list