Summary: | x11-drivers/xf86-video-mga fails to compile when USE flag -dri is used | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Olav Sandstå <olav> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | michael.heide |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 276822 |
Description
Olav Sandstå
2009-07-05 20:10:04 UTC
Same here (not x86 related): mips64el-unknown-linux-gnu, emerging x11-drivers/xf86-video-sis-0.10.1 dri use flag is not changeable via USE="dri" because it's in ()-braces, the ebuilds Changelog says it "is handled in x-modular.eclass now". I did the following to successfully compile it: I have stopped emerge (via ~Z / ctrl-z) at the end of the configure script, right some milliseconds after writing config.h and manually edited config.h: - /* #undef XF86DRI */ + #undef XF86DRI - /* #undef XF86DRI_DEVEL */ + #undef XF86DRI_DEVEL The reason for the compiling error is: portage configures the video driver with "--disable-dri" set so the configure-script does not search any dri includes. In config.h it does not define any XF86DRI settings but it #include "xorg-server.h" where XF86DRI gets set to 1. Without #undef XF86DRI this must fail. That's the reason why it works if you enable dri support. (I do not want this because my sis315 is not supported by linux' dri anyway) Can also confirm this behaviour for xf86-video-sis (tried with version 0.10.2). Now I see that Michael Heide also uses xf86-video-sis in his example, sorry for the double take. But I can at least confirm it works for version 0.10.2 too. *** This bug has been marked as a duplicate of bug 266087 *** |