Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 502448

Summary: net-misc/aiccu[systemd]: links to systemd libraries without using pkg-config
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED FIXED    
Severity: normal CC: jcallen, lists, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 502522    
Attachments: Build log

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-25 23:52:40 UTC
Long story short, in systemd-209 the libsystemd-* libraries were removed and replaced with single libsystemd. We install compatibility libsystemd-*.pc pkg-config files, so apps using pkg-config are not affected (yet :)).

Since this package tries to link libsystemd-daemon directly, it fails terribly with >=systemd-209.

The possibilities are:

1. use pkg-config to query libsystemd-daemon -- compatible with all versions but at some point we will be removing compat pkg-config files,

2. use pkg-config to query libsystemd, fallback to querying libsystemd-daemon -- future- and backwards-compatible,

3. just use libsystemd, and dep on >=systemd-210 in the ebuild (we didn't add -209).

Preferably, always use pkg-config :).

If you need any help, please let us know. I will attach a build log in a few minutes.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-25 23:55:15 UTC
Created attachment 371266 [details]
Build log
Comment 2 Jonathan Callen (RETIRED) gentoo-dev 2014-03-30 20:27:34 UTC
The easist way to do option 2 above would be to change line 24 of aiccu-*-systemd.patch to read:

+LIBS   += $(shell pkg-config --libs libsystemd 2>/dev/null || pkg-config --libs libsystemd-daemon)

Instead of hardcoding -lsystemd-daemon there.
Comment 3 Pacho Ramos gentoo-dev 2014-07-16 18:05:06 UTC
+  16 Jul 2014; Pacho Ramos <pacho@gentoo.org> -aiccu-2007.01.15-r2.ebuild,
+  aiccu-2007.01.15-r4.ebuild, files/aiccu-2007.01.15-systemd.patch:
+  Fix systemd linking (#502448 by Jonathan Callen), drop old
+