Currently, all the tests for x11-libs/libdrm are built during src_compile, even if the tests will never be run. Attached is a patch (suitable for upstreaming).
Created attachment 216146 [details, diff] patch to only build tests in make check
libdrm does need a little work wrt to tests. Let's track all those issues in the duped bug. Thanks *** This bug has been marked as a duplicate of bug 299008 ***
this one isn't really a dupe ... this is about some of the various tests unconditional, not deps that get detected at configure time
*** Bug 412907 has been marked as a duplicate of this bug. ***
Since Jonathan's patch was accepted into the 2.4.21 release, I was pretty confused why this bug was reopened. Upon further investigation, libdrm still builds modeprint, modetest, vbltest, proptest, intel/test_decode, and probably some other binaries that aren't installed. Given that patching things to avoid building them probably means an autoreconf, I doubt it's worth it.
(In reply to Matt Turner from comment #5) > Given that patching things to avoid building them probably means an > autoreconf, I doubt it's worth it.