Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12704 closed Bug Report - General (fixed)

Archlinux and systemd (re)packaging impacts systemd_notify detection on arch

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: Karl Egly
Priority: minor Milestone: 0.28.1
Component: MythTV - configure script Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no


A report on the irc dev channel by JohnBergqvist? on 2016-03-27 mentioned that archlinux has repackaged systemd in such a way that the pkg-config check in MythTV configure does not detected the availability of systemd libraries. This is likely the same as reported at where arch has merged various systemd components into the one package.

This ticket is just so the issue will not be forgotten.

I will add creating a patch (and the installing of an arch system to test the patch) to my growing TODO list, but if someone gets their first, excellent.

Change History (4)

comment:1 Changed 6 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Weakly tested (it compiles!) trivial patch....

diff --git a/mythtv/configure b/mythtv/configure
index 17d42d6..2527693 100755
--- a/mythtv/configure
+++ b/mythtv/configure
@@ -7244,6 +7244,8 @@ EOF
 if enabled systemd_notify ; then
    if check_pkg_config libsystemd-daemon systemd/sd-daemon.h sd_notify ; then
         require_pkg_config libsystemd-daemon systemd/sd-daemon.h sd_notify
+   elif check_pkg_config libsystemd systemd/sd-daemon.h sd_notify ; then
+        require_pkg_config libsystemd systemd/sd-daemon.h sd_notify
         disable systemd_notify

comment:2 Changed 6 years ago by Karl Dietz <dekarl@…>

Resolution: fixed
Status: newclosed

In d120ae8f995b2a0852f1c2261308572560a2040a/mythtv:

fix automatic detection of systemd on Arch

Patch by Gary Buhrmaster

Fixes #12704

comment:3 Changed 6 years ago by Karl Dietz <dekarl@…>

In f58b100dedc4335cca399e8ae78e3129211c206c/mythtv:

fix automatic detection of systemd on Arch

Patch by Gary Buhrmaster

Fixes #12704

(cherry picked from commit d120ae8f995b2a0852f1c2261308572560a2040a)

comment:4 Changed 6 years ago by Karl Egly

Milestone: unknown0.28.1
Owner: changed from JYA to Karl Egly
Version: Master Head0.28.0
Note: See TracTickets for help on using tickets.