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

Bug 856754

Summary: x11-libs/libdrm: installed .pc has valgrind in Requires.private (was: x11-base/xorg-server-21.1.3-r3: ERROR: Problem encountered: DRI requested, but LIBDRM not found)
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Luke-Jr 2022-07-06 20:08:29 UTC
Run-time dependency libdrm found: NO (tried pkgconfig and cmake) ERROR: Problem encountered: DRI requested, but LIBDRM not found

NOTE: x11-libs/libdrm-2.4.111 is installed, via binary package

Called `/usr/bin/x86_64-pc-linux-gnu-pkg-config --cflags libdrm` -> 1

pkg-config error with 'libdrm': Could not generate cargs for libdrm:
Package valgrind was not found in the pkg-config search path.
Perhaps you should add the directory containing `valgrind.pc'
to the PKG_CONFIG_PATH environment variable
Package 'valgrind', required by 'libdrm', not found

NOTE: valgrind IS NOT installed
Comment 1 Luke-Jr 2022-07-06 20:09:39 UTC
/usr/lib/pkgconfig/libdrm.pc makes no mention of valgrind
Comment 2 Luke-Jr 2022-07-07 00:44:56 UTC
/usr/lib64/pkgconfig/libdrm.pc, however, *does* have:
    Requires.private: valgrind

It's not clear to me, if this is a bug in libdrm, or a bug in the RDEPEND for libdrm's ebuild.
Comment 3 Luke-Jr 2022-07-07 01:26:20 UTC
Installing valgrind allows xorg-server to build.