Summary: | x11-base/xorg-server: support building without the opengl subsystem switch | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The xorg-server patch
The glproto patch |
Description
Michał Górny
![]() ![]() ![]() ![]() Created attachment 227813 [details, diff]
The xorg-server patch
Created attachment 227815 [details, diff]
The glproto patch
The new versions of related ebuilds can be found on: http://git.mgorny.alt.pl/x11/ (which is a clone of the x11 overlay). I've made the following changes: 1) added eselect-opengl with patch to support installing headers inside 'GL' subdirectory, 2) modified and revbumped glproto and mesa to install their headers inside the 'GL' subdirectory, 3) modified mesa and xorg-server to use the OpenGL headers from /usr/$(get_libdir)/opengl instead of relying on eselect-opengl to provide xorg-x11 implementation. Ok, I've managed to "fix" xorg-server to do all the work on its own without requiring modifications anywhere else. I'm pretty sure this could be further improved, but this is at least a good first step. If anyone wants to do this with a fake .pc file instead, be my guest :) Like Michał, I've managed to build this with /usr/include/GL files hacked to contain #error (meaning they are effectively ignored, otherwise the build would fail). Bottom line, the currenly selected opengl implementation with eselect-opengl no longer matters. With this done, eselect-opengl should be cleaned up to what it used to do. No other patches are needed. Many thanks to Michał for doing most of the work I've committed :) Cheers |