Skip Menu |

This queue is for tickets about the Log-Journald CPAN distribution.

Report information
The Basics
Id: 132362
Status: new
Priority: 0/
Queue: Log-Journald

People
Owner: Nobody in particular
Requestors: abc.mikey [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Please fix Log::Journald Build.PL script for systemd >= 209
Date: Thu, 16 Apr 2020 14:15:42 +0200
To: bug-Log-Journald [...] rt.cpan.org
From: mikey <abc.mikey [...] gmail.com>
Could you please fix the install for systemd version >= 209? I'm happy to submit this somewhere if there is an abropriate repository; I couldn't see one. The following should work: ------------------------------------------------------ # libsystemd in systemd 209 (see its NEWS file). my $version = `systemctl --version` // ''; $version = ($version =~ /^systemd (\d+(?:\.\d+)?)/) ? $1 : 0; my $libsystemd = $version >= 209 ? 'libsystemd' : 'libsystemd-journal'; my $libsystemd_journal_CFLAGS = `pkg-config --cflags $libsystemd` → or warn 'Could not determine systemd-journal compiler flags'; my $libsystemd_journal_LDFLAGS = `pkg-config --libs $libsystemd` → or warn 'Could not determine systemd-journal compiler flags';