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

Bug 502422

Summary: media-gfx/sane-backends[systemd]: links to systemd libraries without using pkg-config
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Chris Brannon (RETIRED) <teiresias>
Status: RESOLVED FIXED    
Severity: normal CC: eugene.shalygin, josef64, 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 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.