USE="minimal" x11-base/xorg-server-0.17.0 failed on compile on missing depends on x11-proto/dri2proto Reproducible: Always Steps to Reproduce: 1.USE="minimal" emerge =x11-base/xorg-server-0.17.0 -->failed 2.emerge x11-proto/dri2proto 3.USE="minimal" emerge =x11-base/xorg-server-0.17.0 --> works Actual Results: it compiles if x11-proto/dri2proto is installed Expected Results: this should fixed in xorg-server-0.17.0.ebuild DEPEND="${CDEPND} ... >=x11-proto/presentproto-1.0 + >=x11-proto/dri2proto-2.8 >=x11-proto/dri3proto-1.0 ... !minimal? ( >=x11-proto/xf86driproto-2.1.0 - >=x11-proto/dri2proto-2.8 I have tested x11-base/xorg-server-0.16.x this will compile fine withoutx11-proto/dri2proto looks like internal depends on include have changede in xorg-server-0.17 see lines below for compile error <snipp> Making all in drivers make[4]: Entering directory '/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0_build/hw/xfree86/drivers' Making all in modesetting make[5]: Entering directory '/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0_build/hw/xfree86/drivers/modesetting' /bin/sh ../../../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesett$ /bin/sh ../../../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesett$ libtool: compile: i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesetting -I../../../../include -I/var/tmp$ libtool: compile: i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesetting -I../../../../include -I/var/tmp$ In file included from /var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesetting/dri2.c:43:0: /var/tmp/portage/x11-base/xorg-server-1.17.0/work/xorg-server-1.17.0/hw/xfree86/drivers/modesetting/../../dri2/dri2.h:36:39: fatal error: X11/extensions/dri2tokens.h: No such file or directory #include <X11/extensions/dri2tokens.h> ^ compilation terminated. Makefile:718: recipe for target 'dri2.lo' failed make[5]: *** [dri2.lo] Error 1 </snapp>
Do you mean xorg-server-1.17.0 or 1.17.1?
(In reply to Chí-Thanh Christopher Nguyễn from comment #1) > Do you mean xorg-server-1.17.0 or 1.17.1? I mean xorg-server-1.17.0 but shortly added x11-base/xorg-server-0.17.1 fails with the same error emerge --unmerge dri2proto USE="minimal" emerge =x11-base/xorg-server-1.17.1 <snipp> /var/tmp/portage/x11-base/xorg-server-1.17.1/work/xorg-server-1.17.1/hw/xfree86/drivers/modesetting/../../dri2/dri2.h:36:39: fatal error: X11/extensions/dri2tokens.h: No such file or directory #include <X11/extensions/dri2tokens.h> </snapp> emerge dri2proto USE="minimal" emerge =x11-base/xorg-server-1.17.1 works, finaly, missing depends on use-flag minimal
I'd like to consider whether the minimal USE flag is actually useful. Is it useful for you, and if so why?
(In reply to Matt Turner from comment #3) > I'd like to consider whether the minimal USE flag is actually useful. Is it > useful for you, and if so why? minimal is used to bring up a X server without windows, mousecursers, etc. this setup is needed for nvidia driver with vdpau, it is mainly used by media-plugins/vdr-xineliboutput media-plugins/vdr-softhddevice ( in the moment in vdr-devel overlay) also when i USE="-minimal" it pulls in the big mesa lib and a lot more of uneeded crap
I also rely on xorg-server[minimal] on certain non-x86 machines to avoid a runtime dependency on mesa. To me the question is whether that include is in the right place upstream, i.e maybe it should be in a place that isn't compiled with USE=minimal for us. But I guess with dri3proto outside "!minimal?" block anyway too, that's kind of moot.
Another day, another ARM machine that will need to waste time recompiling xorg-server again after manually adding the dependency. Though now I wonder if modesetting driver should be optional or disabled with USE=minimal
Stable x11-base/xorg-server-1.17.4 is now suffering this same problem. Compile fails due to missing x11-proto/dri2proto dependency with USE=minimal.
*** Bug 594838 has been marked as a duplicate of this bug. ***
Created attachment 462020 [details, diff] patch from 594838 I uploaded a patch for this to bug 594838, which got no comments until it was marked as a dupe of this bug. If x11@ ACKs, I'll commit it.
(In reply to Austin English from comment #9) > Created attachment 462020 [details, diff] [details, diff] > patch from 594838 > > I uploaded a patch for this to bug 594838, which got no comments until it > was marked as a dupe of this bug. > > If x11@ ACKs, I'll commit it. The patch itself looks fine, but we cannot fix just 1.18.4. The fix must go to 9999, and 1.19*.
Created attachment 463896 [details, diff] try 2 Try 2, updating: xorg-server-1.18.4.ebuild xorg-server-1.19.1.ebuild xorg-server-9999.ebuild
(In reply to Austin English from comment #11) > Created attachment 463896 [details, diff] [details, diff] > try 2 > > Try 2, updating: > xorg-server-1.18.4.ebuild > xorg-server-1.19.1.ebuild > xorg-server-9999.ebuild https://github.com/gentoo/gentoo/commit/6329b2135cb42a69625a70a182fab0062ad73a21