Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539766 - x11-base/xorg-server[minimal] failed to compile due to missing x11-proto/dri2proto dependency
Summary: x11-base/xorg-server[minimal] failed to compile due to missing x11-proto/dri2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 594838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-11 13:01 UTC by Joerg Bornkessel (RETIRED)
Modified: 2017-02-16 17:45 UTC (History)
2 users (show)

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


Attachments
patch from 594838 (xorg-dri2.patch,623 bytes, patch)
2017-01-31 18:39 UTC, Austin English (RETIRED)
Details | Diff
try 2 (try2.txt,1.82 KB, patch)
2017-02-15 23:48 UTC, Austin English (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Bornkessel (RETIRED) gentoo-dev 2015-02-11 13:01:54 UTC
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>
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-02-11 13:22:22 UTC
Do you mean xorg-server-1.17.0 or 1.17.1?
Comment 2 Joerg Bornkessel (RETIRED) gentoo-dev 2015-02-11 17:51:16 UTC
(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
Comment 3 Matt Turner gentoo-dev 2015-02-11 17:56:27 UTC
I'd like to consider whether the minimal USE flag is actually useful. Is it useful for you, and if so why?
Comment 4 Joerg Bornkessel (RETIRED) gentoo-dev 2015-02-11 18:29:13 UTC
(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
Comment 5 Mart Raudsepp gentoo-dev 2015-02-15 14:44:44 UTC
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.
Comment 6 Mart Raudsepp gentoo-dev 2015-03-27 13:03:38 UTC
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
Comment 7 kipeta 2015-11-30 14:41:08 UTC
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.
Comment 8 Matt Turner gentoo-dev 2017-01-28 05:41:19 UTC
*** Bug 594838 has been marked as a duplicate of this bug. ***
Comment 9 Austin English (RETIRED) gentoo-dev 2017-01-31 18:39:20 UTC
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.
Comment 10 Matt Turner gentoo-dev 2017-01-31 18:54:52 UTC
(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*.
Comment 11 Austin English (RETIRED) gentoo-dev 2017-02-15 23:48:50 UTC
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
Comment 12 Austin English (RETIRED) gentoo-dev 2017-02-16 17:45:27 UTC
(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