Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502448 - net-misc/aiccu[systemd]: links to systemd libraries without using pkg-config
Summary: net-misc/aiccu[systemd]: links to systemd libraries without using pkg-config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 502522
  Show dependency tree
 
Reported: 2014-02-25 23:52 UTC by Michał Górny
Modified: 2014-07-16 18:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (net-misc:aiccu-2007.01.15-r4:20140225-235057.log,12.23 KB, text/x-log)
2014-02-25 23:55 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
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
+