Attached patch allows libdrm to be built with only the video_cards_* you care about. It won't break anything, since users will already have the appropriate video card variable set for other packages like mesa and xorg-drivers. It also fixes braindead bugs like 297630 since video_cards_intel should already be masked on ARM, and partially fixes other silliness like bug 296482 by allowing platforms where libdrm doesn't matter to only compile core libdrm and not all the device-dependent components. I'm not sure if my IUSE= usage is correct, so please check that. Also, libkms is only supported on intel, nouveau, and vmware, so only allow it to be built in conjunction with one of them.
Created attachment 229527 [details, diff] patch to allow libdrm to be built with only {intel,nouveau,radeon,vmware} support
Yeah, we might have to do something like this now... Cheers
Doing this would also require to add USE dependencies to reverse deps (mesa, xf86-video-*)
(In reply to comment #3) > Doing this would also require to add USE dependencies to reverse deps (mesa, > xf86-video-*) Yes, good observation. I'd suggest that we fix this bug at the same time as bug 308497, since it will require the same sort of changes to xf86-video-{ati,intel}. Thanks. Let me know how I should proceed.
Fixed in CVS.