From b456d06b2c4349d3cfc4af9293852ca4b6a20da3 Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Fri, 9 Nov 2018 10:12:23 +0000 Subject: Use /sbin/shutdown as /sbin/poweroff is not present on runit systems. --- debian/changelog | 6 ++++++ debian/rules | 2 ++ 2 files changed, 8 insertions(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index cbd0dfb14..b60b06be4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +elogind (239.1-1+runit_shutdown~rc1) unstable; urgency=medium + + * Use shutdown rather than poweroff as the latter is missing on runit systems. + + -- Mark Hindley Fri, 09 Nov 2018 10:06:29 +0000 + elogind (239.1-1~rc1) unstable; urgency=medium * New upstream release v239.1. diff --git a/debian/rules b/debian/rules index b1023c94f..a45cf0fc5 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,7 @@ # pam libs must go to /lib/*/security, same for udev rules # - disable killing users processes by default. This is weird an unexpected # behavior +# - /sbin/poweroff is missing on runit systems, so use /sbin/shutdown instead # - SELinux build is broken on 239 (fix available for 240) # - tests disabled beacuase some of the tests seem to require elogind running. # Need to sort out which tests could be run @@ -16,6 +17,7 @@ CONFFLAGS = \ -Ddocdir=/usr/share/doc/elogind \ -Dudevrulesdir=/lib/udev/rules.d \ -Ddefault-kill-user-processes=false \ + -Dpoweroff-path=/sbin/shutdown \ -Dselinux=false \ -Dtests=false -- cgit v1.2.3 From 3d472f1c6370226b878b8d1ff909773712bd3cbd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 8 Nov 2018 18:34:06 +0000 Subject: debian/watch: Strip +nosubmodule from version Signed-off-by: Ian Jackson --- debian/watch | 1 + 1 file changed, 1 insertion(+) (limited to 'debian') diff --git a/debian/watch b/debian/watch index fda9f7dad..158e3faed 100644 --- a/debian/watch +++ b/debian/watch @@ -7,4 +7,5 @@ version=3 # URLs use only the version as the name, it is recommended to use a # filenamemangle to adjust the name of the downloaded file: opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]*)\.tar\.gz/elogind-$1.tar.gz/" \ + "dversionmangle=s/\+nosubmodule//" \ https://github.com/elogind/elogind/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz -- cgit v1.2.3 From b4ada899b0670bba47f82f4a94bea8a8dd529771 Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Fri, 9 Nov 2018 10:52:01 +0000 Subject: Changelog --- debian/changelog | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index cbd0dfb14..7fdeda931 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,12 @@ -elogind (239.1-1~rc1) unstable; urgency=medium +elogind (239.1-1+nosubmodule~rc1) unstable; urgency=medium + * Remove upstream pwx git submodule. Thanks to Ian Jackson. + + -- Mark Hindley Fri, 09 Nov 2018 10:50:43 +0000 + +elogind (239.1-1+debian1~rc1) unstable; urgency=medium + + * Initial upload to Debian (closes: #905388). * New upstream release v239.1. * Rework packaging for meson buildsystem. * Change libpam-elogind Breaks dependencies to Conflicts. @@ -17,7 +24,7 @@ elogind (239.1-1~rc1) unstable; urgency=medium https://github.com/elogind/elogind/issues/92). * New version of /etc/pam.d/elogind-user based on Debian systemd. - -- Mark Hindley Wed, 07 Nov 2018 00:00:29 +0000 + -- Mark Hindley Wed, 07 Nov 2018 16:31:31 +0000 elogind (234.4-2~exp1) experimental; urgency=medium -- cgit v1.2.3 From 9f11e781f8706034121020f6b36c2118b30275e4 Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Fri, 9 Nov 2018 11:29:06 +0000 Subject: Disable Dbus activation by default. However, leave the Dbus service file so that a sysadmin could choose it, however unwisely. --- debian/changelog | 6 ++++++ debian/elogind.init | 2 +- debian/elogind.install | 7 +------ debian/patches/Disable_Dbus_activation_by_default.diff.patch | 11 +++++++++++ debian/patches/series | 1 + 5 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 debian/patches/Disable_Dbus_activation_by_default.diff.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index cbd0dfb14..358fe6b6d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +elogind (239.1-1+disable-dbus-activation~rc1) unstable; urgency=medium + + * Disable Dbus activation by default. + + -- Mark Hindley Fri, 09 Nov 2018 11:19:41 +0000 + elogind (239.1-1~rc1) unstable; urgency=medium * New upstream release v239.1. diff --git a/debian/elogind.init b/debian/elogind.init index e08335f91..2a1d36a7f 100644 --- a/debian/elogind.init +++ b/debian/elogind.init @@ -13,7 +13,7 @@ set -e # /etc/init.d/elogind: start and stop the elogind session management daemon -ELOGIND=/usr/sbin/elogind +ELOGIND=/lib/elogind/elogind test -x $ELOGIND || exit 0 diff --git a/debian/elogind.install b/debian/elogind.install index 9cef24e61..300006403 100644 --- a/debian/elogind.install +++ b/debian/elogind.install @@ -1,11 +1,6 @@ bin/ etc/elogind/logind.conf -lib/elogind/elogind /usr/sbin/ -lib/elogind/libelogind-shared*.so -lib/elogind/elogind-cgroups-agent -lib/elogind/elogind-uaccess-command -lib/elogind/system-sleep/.keep_dir -lib/elogind/system-shutdown/.keep_dir +lib/elogind/ lib/udev/rules.d/70-uaccess.rules lib/udev/rules.d/71-seat.rules lib/udev/rules.d/73-seat-late.rules diff --git a/debian/patches/Disable_Dbus_activation_by_default.diff.patch b/debian/patches/Disable_Dbus_activation_by_default.diff.patch new file mode 100644 index 000000000..48d67330e --- /dev/null +++ b/debian/patches/Disable_Dbus_activation_by_default.diff.patch @@ -0,0 +1,11 @@ +--- a/src/login/org.freedesktop.login1.service.in ++++ b/src/login/org.freedesktop.login1.service.in +@@ -7,5 +7,7 @@ + + [D-BUS Service] + Name=org.freedesktop.login1 +-Exec=@rootlibexecdir@/elogind --daemon ++# By default, Dbus activation of elogind is disabled. The daemon is started via an init script. ++# Exec=@rootlibexecdir@/elogind --daemon ++Exec=/bin/true + User=root diff --git a/debian/patches/series b/debian/patches/series index 33125a623..fb9c2028a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +Disable_Dbus_activation_by_default.diff.patch manpage-branding.diff Fix_glibc_program_invocation_name_pointer_overlap.diff -- cgit v1.2.3 From 0283a93cb8e00114a29e630b4ff7867a819d5bd5 Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Fri, 9 Nov 2018 12:51:53 +0000 Subject: Refreshed patch to match upstream fix for issue #92. --- debian/changelog | 4 ++ ...bc_program_invocation_name_pointer_overlap.diff | 63 ++++++++++------------ 2 files changed, 31 insertions(+), 36 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index cbd0dfb14..19aa5f55f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,7 @@ + * Update fix for SIGABRT to upstream #92. + + -- + elogind (239.1-1~rc1) unstable; urgency=medium * New upstream release v239.1. diff --git a/debian/patches/Fix_glibc_program_invocation_name_pointer_overlap.diff b/debian/patches/Fix_glibc_program_invocation_name_pointer_overlap.diff index 5f1868272..034bf292b 100644 --- a/debian/patches/Fix_glibc_program_invocation_name_pointer_overlap.diff +++ b/debian/patches/Fix_glibc_program_invocation_name_pointer_overlap.diff @@ -3,44 +3,35 @@ Bug: https://github.com/elogind/elogind/issues/92 --- a/src/shared/musl_missing.c +++ b/src/shared/musl_missing.c -@@ -34,9 +34,14 @@ +@@ -26,14 +26,14 @@ + #if HAVE_PROGRAM_INVOCATION_NAME == 0 + char *program_invocation_name = NULL; + char *program_invocation_short_name = NULL; +-#endif // libc does not provide these variables - static void elogind_free_program_name(void) { +-const char *program_arg_name = NULL; ++const char *program_arg_name = NULL; /* Helper */ ++#endif // libc does not provide program_invocation_[short_]name + + #include "musl_missing.h" -- if (program_invocation_name && (program_invocation_name != program_arg_name) && strlen(program_invocation_name)) -+ if (program_invocation_name && -+ (program_invocation_name != program_arg_name) && -+ strlen(program_invocation_name)) ++#if HAVE_PROGRAM_INVOCATION_NAME == 0 + static void elogind_free_program_name(void) { +- + if (program_invocation_name && (program_invocation_name != program_arg_name) && strlen(program_invocation_name)) program_invocation_name = mfree(program_invocation_name); -- if (program_invocation_short_name && (program_invocation_short_name != program_arg_name) && strlen(program_invocation_short_name)) -+ if (program_invocation_short_name && -+ (program_invocation_short_name != program_arg_name) && -+ (program_invocation_short_name + strlen(program_invocation_short_name) != program_invocation_name + strlen(program_invocation_name)) -+ && strlen(program_invocation_short_name)) - program_invocation_short_name = mfree(program_invocation_short_name); + if (program_invocation_short_name && (program_invocation_short_name != program_arg_name) && strlen(program_invocation_short_name)) +@@ -55,8 +55,11 @@ + program_invocation_name = strdup(program_arg_name); + if (NULL == program_invocation_short_name) + program_invocation_short_name = strdup(basename(program_arg_name)); +-#if HAVE_PROGRAM_INVOCATION_NAME == 0 + atexit(elogind_free_program_name); +-#endif // libc does not provide these variables } ++#else ++void elogind_set_program_name(const char* pcall) { ++ assert(pcall && pcall[0]); ++} ++#endif // libc does not provide program_invocation_[short_]name ---- a/src/basic/process-util.c -+++ b/src/basic/process-util.c -@@ -10,6 +10,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -306,8 +307,12 @@ - - k = strlen(program_invocation_name); - strncpy(program_invocation_name, name, k); -- if (l > k) -+ if (l > k) { - truncated = true; -+ program_invocation_short_name = NULL; -+ } -+ else -+ program_invocation_short_name = program_invocation_name + strlen(dirname(program_invocation_name)) -1; - } - - /* Third step, completely replace the argv[] array the kernel maintains for us. This requires privileges, but -- cgit v1.2.3 From 4691c18c097c64b222da2d44c3ca5060d08c3d4f Mon Sep 17 00:00:00 2001 From: Mark Hindley Date: Fri, 9 Nov 2018 13:01:54 +0000 Subject: Changelog 239.1-1+debian1~rc2 --- debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index d749d8a91..9fbff2864 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,7 @@ elogind (239.1-1+debian1~rc2) unstable; urgency=medium * Use shutdown rather than poweroff as the latter is missing on runit systems. * Remove upstream pwx git submodule. Thanks to Ian Jackson. - -- + -- Mark Hindley Fri, 09 Nov 2018 13:01:28 +0000 elogind (239.1-1+debian1~rc1) unstable; urgency=medium -- cgit v1.2.3