[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779754: weston: Transition to libsystemd



Control: tags -1 + patch

Please find attached a patch which makes use of the new libsystemd
library. Since your package already uses dh-autoreconf, no further
changes should be necessary.
Thanks for considering. Would be great if you can include that in your
next upload.

Cheers,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/debian/control b/debian/control
index 4519559..f561495 100644
--- a/debian/control
+++ b/debian/control
@@ -37,7 +37,7 @@ Build-Depends:
  libmtdev-dev,
  libpam0g-dev,
  libvpx-dev,
- libsystemd-login-dev,
+ libsystemd-dev,
  libinput-dev (>= 0.8.0),
 Standards-Version: 3.9.6
 Homepage: http://wayland.freedesktop.org/
diff --git a/debian/patches/0001-Add-suport-for-new-libsystemd.patch b/debian/patches/0001-Add-suport-for-new-libsystemd.patch
new file mode 100644
index 0000000..23b7762
--- /dev/null
+++ b/debian/patches/0001-Add-suport-for-new-libsystemd.patch
@@ -0,0 +1,28 @@
+From fe00842e1562d78f2811c8dad46125041cccab87 Mon Sep 17 00:00:00 2001
+From: Michael Biebl <biebl@debian.org>
+Date: Thu, 9 Jul 2015 16:18:39 +0200
+Subject: [PATCH] Add suport for new libsystemd
+
+In systemd v209, the various libraries were merged into a single
+libsystemd library. When checking for systemd > 209, use the new library
+name instead of the deprecated libsystemd-login.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2c55e1b..034f4a5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -349,7 +349,7 @@ AS_IF([test "x$have_systemd_login" = "xyes"],
+       [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])])
+ AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes")
+ 
+-PKG_CHECK_MODULES(SYSTEMD_LOGIN_209, [libsystemd-login >= 209],
++PKG_CHECK_MODULES(SYSTEMD_LOGIN_209, [libsystemd >= 209],
+                   [have_systemd_login_209=yes], [have_systemd_login_209=no])
+ AS_IF([test "x$have_systemd_login_209" = "xyes"],
+       [AC_DEFINE([HAVE_SYSTEMD_LOGIN_209], [1], [Have systemd-login >= 209])])
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..844880f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-suport-for-new-libsystemd.patch

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: