Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594838 - x11-base/xorg-server-1.18.4: fatal error: X11/extensions/dri2tokens.h: No such file or directory (missing x11-proto/dri2proto dependency with USE=minimal)
Summary: x11-base/xorg-server-1.18.4: fatal error: X11/extensions/dri2tokens.h: No suc...
Status: RESOLVED DUPLICATE of bug 539766
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 21:47 UTC by Austin English (RETIRED)
Modified: 2017-01-28 05:41 UTC (History)
1 user (show)

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


Attachments
patch (xorg-dri2.patch,623 bytes, patch)
2016-10-11 22:34 UTC, Austin English (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English (RETIRED) gentoo-dev 2016-09-22 21:47:02 UTC
In file included from /var/tmp/portage/x11-base/xorg-server-1.18.4/work/xorg-server-1.18.4/hw/xfree86/drivers/modesetting/dri2.c:43:0:
/var/tmp/portage/x11-base/xorg-server-1.18.4/work/xorg-server-1.18.4/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:734: recipe for target 'dri2.lo' failed
make[5]: *** [dri2.lo] Error 1
make[5]: *** Waiting for unfinished jobs....

# equery u xorg-server
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-base/xorg-server-1.18.4:
 U I
 - - dmx         : Build the Distributed Multiheaded X server
 - - doc         : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - glamor      : Enable Glamor OpenGL 2D acceleration
 + + ipv6        : Add support for IP version 6
 - - kdrive      : Build the kdrive X servers
 - - libressl    : Use dev-libs/libressl as SSL provider (might need ssl USE flag), packages should not depend on this USE flag
 + + minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
 - - static-libs : Build static versions of dynamic libraries as well
 + + suid        : Enable setuid root program, with potential security risks
 - - systemd     : Enable use of systemd-specific libraries and features like socket activation or session tracking
 - - tslib       : Build with tslib support for touchscreen devices
 + + udev        : Enable virtual/udev integration (device discovery, power and storage device support, etc)
 - - unwind      : Enable libunwind usage for backtraces
 - - wayland     : Enable dev-libs/wayland backend
 - - xephyr      : Build the Xephyr server
 - - xnest       : Build the Xnest server
 + + xorg        : Build the Xorg X server (HIGHLY RECOMMENDED)
 + + xvfb        : Build the Xvfb server


Installing x11-proto/dri2proto fixes the problem.
Comment 1 Austin English (RETIRED) gentoo-dev 2016-10-11 22:34:23 UTC
Created attachment 449928 [details, diff]
patch

Looks like this only affects USE=minimal, as if that USE flag is disabled, dri2proto is included.

Moving the depend outside of that conditional fixes the issue for me.
Comment 2 Matt Turner gentoo-dev 2017-01-28 05:41:19 UTC

*** This bug has been marked as a duplicate of bug 539766 ***