Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375631 - x11-libs/libdrm-2.4.26: libpciaccess should be a "RDEPEND" in the ebuild when "intel" VIDEO_CARDS is enabled
Summary: x11-libs/libdrm-2.4.26: libpciaccess should be a "RDEPEND" in the ebuild when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 09:00 UTC by Olivier DOLE
Modified: 2011-07-30 02:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier DOLE 2011-07-19 09:00:55 UTC
In x11-libs/libdrm-2.4.26 ebuild, libpciaccess is listed as a "DEPEND" component which is correct as long as you do not use VIDEO_CARDS="intel".
Indeed libdrm_intel is linked with libpciaccess, so in this case you need to add libpciaccess as "RDEPEND" in the ebuild:

readelf -d /usr/lib/libdrm_intel.so.1.0.0 

Dynamic section at offset 0x9efc contains 25 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libdrm.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpciaccess.so.0]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libdrm_intel.so.1]
...

Reproducible: Always

Steps to Reproduce:
1.VIDEO_CARDS+="intel" emerge libdrm
2.readelf -d /usr/lib/libdrm_intel.so.1.0.0 and you will see the runtime dependency with libpciaccess
3.have a look at the ebuild to check that libpciaccess is just list as a DEPEND
Comment 1 Matt Turner gentoo-dev 2011-07-30 02:22:30 UTC
Indeed. Thanks for the report. I shouldn't have missed this when I added libpciaccess to DEPEND.

Thanks!

(Changes committed to 2.4.25, 2.4.26, and -9999)