xdm-1.1.12 and libsystemd-daemon deprecated after systemd 209
Ross Alexander
evilross at yahoo.co.uk
Thu May 30 12:51:13 UTC 2019
Hello,
I'm not entirely sure which version of systemd removed libsystemd-daemon completely but it looks like it was a while ago now (around end of 2014 I think).
libsystemd is API compatible so linking against libsystemd works fine. I've made a very hacky patch in autoconf to detect it but it may be cleaner to just test against libsystemd instead.
Regards,Ross
PS: I can resend this to a mailing list is that is appropriate.
mojo 12:17:27 xdm-1.1.12$ diff -c configure.ac.orig configure.ac
*** configure.ac.orig 2019-03-14 11:53:38.157485274 +0000
--- configure.ac 2019-03-14 12:08:13.510417541 +0000
***************
*** 173,186 ****
[Add support for systemd startup notification (default is autodetected)]),
[USE_SYSTEMD_DAEMON=$withval], [USE_SYSTEMD_DAEMON=auto])
AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [
! PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon],
[AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])],
[AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"],
! [AC_MSG_ERROR([systemd startup notification support requested, but libsystemd-daemon not found.])]
)]
)
- ])
AM_CONDITIONAL(USE_SYSTEMD_DAEMON, [test "x$USE_SYSTEMD_DAEMON" != "xno"])
# FIXME: Find better test for which OS'es use su -m - for now, just try to
# mirror the Imakefile setting of:
--- 173,191 ----
[Add support for systemd startup notification (default is autodetected)]),
[USE_SYSTEMD_DAEMON=$withval], [USE_SYSTEMD_DAEMON=auto])
AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [
! PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd >= 209],
[AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])],
[AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"],
! [PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon < 209],
! [AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])],
! [AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"],
! [AC_MSG_ERROR([systemd startup notification support requested, but libsystemd-daemon not found.])]
! )]
)]
+ )]
)
AM_CONDITIONAL(USE_SYSTEMD_DAEMON, [test "x$USE_SYSTEMD_DAEMON" != "xno"])
+ ])
# FIXME: Find better test for which OS'es use su -m - for now, just try to
# mirror the Imakefile setting of:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20190530/6db9f42a/attachment.html>
More information about the xorg-devel
mailing list