Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719574 - x11-drivers/xf86-video-intel-2.99.917_p20200310 requires x11-libs/libdrm-2.4.101
Summary: x11-drivers/xf86-video-intel-2.99.917_p20200310 requires x11-libs/libdrm-2.4.101
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on: 716574
Blocks:
  Show dependency tree
 
Reported: 2020-04-26 11:59 UTC by Alessandro Di Federico
Modified: 2020-04-26 17:44 UTC (History)
2 users (show)

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


Attachments
Configuration log (config.log,84.74 KB, text/x-log)
2020-04-26 11:59 UTC, Alessandro Di Federico
Details
grep -r 'libdrm' /usr/{lib,lib64,share}/pkgconfig (grep-result.txt,3.50 KB, text/plain)
2020-04-26 16:57 UTC, Alessandro Di Federico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Di Federico 2020-04-26 11:59:48 UTC
Created attachment 634636 [details]
Configuration log

x11-drivers/xf86-video-intel-2.99.917_p20200310 seems to require x11-libs/libdrm-2.4.101, which is masked.

It fails during configure phase with the following message:

```
checking for XORG... no
configure: error: Package requirements (xorg-server >= 1.6 xproto fontsproto damageproto pixman-1 >= 0.16  randrproto renderproto xextproto) were not met:

Package dependency requirement 'libdrm >= 2.4.101' could not be satisfied.
Package 'libdrm' has version '2.4.100', required version is '>= 2.4.101'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
```
Comment 1 Matt Turner gentoo-dev 2020-04-26 16:50:36 UTC
It doesn't require libdrm 2.4.101. What does this command say?

$ grep -r 'libdrm' /usr/{lib,lib64,share}/pkgconfig
Comment 2 Alessandro Di Federico 2020-04-26 16:57:29 UTC
Created attachment 634716 [details]
grep -r 'libdrm' /usr/{lib,lib64,share}/pkgconfig
Comment 3 Matt Turner gentoo-dev 2020-04-26 17:09:53 UTC
/usr/lib64/pkgconfig/dri.pc:Requires.private: libdrm >=  2.4.101

You need to reemerge Mesa :)
Comment 4 Alessandro Di Federico 2020-04-26 17:20:11 UTC
Uhm, I don't understand.
Can you explain what happened?

I'd like to understand if there's something I did wrong or there's a missing dependency somewhere.
Comment 5 Matt Turner gentoo-dev 2020-04-26 17:44:39 UTC
1) libdrm-2.4.101 was released with a bug that broke DRI driver loading under Firefox's sandbox. This was reported as bug 716574.

2) I package.mask'd libdrm-2.4.101 to limit the number of people experiencing this breakage

3) In doing so, we discovered that Mesa stored the exact libdrm version it was built against in its dri.pc. So if you build Mesa against libdrm-2.4.101 and then downgraded libdrm (due to the package.mask) anything that checked dri.pc would fail to build since 2.4.101 was not installed.

4) I fixed Mesa upstream (https://cgit.freedesktop.org/mesa/mesa/commit/?id=e4268ffb99279f46d9785bdccb6617022924a6c2) and the patch was cherry picked to the 20.0 stable branch in time for the 20.0.5 release

5) I made a revision bump of the 20.0.4 -> 20.0.4-r1 to encourage people to rebuild, so that their dri.pc did not contain an unnecessarily high version dependency on libdrm.

6) You did not rebuild Mesa :)