Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502422 - media-gfx/sane-backends[systemd]: links to systemd libraries without using pkg-config
Summary: media-gfx/sane-backends[systemd]: links to systemd libraries without using pk...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chris Brannon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 502522
  Show dependency tree
 
Reported: 2014-02-25 18:20 UTC by Michał Górny
Modified: 2014-03-03 17:00 UTC (History)
3 users (show)

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


Attachments
Build log (media-gfx:sane-backends-1.0.24-r2:20140225-170927.log,84.55 KB, text/x-log)
2014-02-25 18:20 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 18:20:54 UTC
Created attachment 371246 [details]
Build log

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 sane-backends 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.
Comment 1 Chris Brannon (RETIRED) gentoo-dev 2014-02-27 12:09:53 UTC
I suppose this will also require a patch to stable eventually, since
stable will fail to build against version 209?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-27 12:12:24 UTC
(In reply to Chris Brannon from comment #1)
> I suppose this will also require a patch to stable eventually, since
> stable will fail to build against version 209?

Either that, or proper <systemd-209 dep. We don't expect systemd-210 to go stable anytime soon though :).
Comment 3 Pacho Ramos gentoo-dev 2014-02-27 22:25:01 UTC
Would be nice to know how other distributions plan to handle that (to not reinvent the wheel or to not spend efforts in some solution that will finally be rejected by upstreams because other distros choose to go in other direction)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-27 22:28:42 UTC
Most of other distros don't have much of a problem since they need to support one version only -- the one they link to :).
Comment 5 Chris Brannon (RETIRED) gentoo-dev 2014-03-03 16:53:09 UTC
Fixed in sane-backends-1.0.24-r3.
Also going to commit to stable with a dependency on <sys-apps/systemd-209,
since I realize that this is safe because of the compatibility symlink.