Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463284 - x11-base/xorg-server, at least 1.13.1 and 1.14.0: can't find mesa GL headers
Summary: x11-base/xorg-server, at least 1.13.1 and 1.14.0: can't find mesa GL headers
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 3 votes (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 22:28 UTC by Ivan Asmer
Modified: 2015-02-21 19:02 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,5.93 KB, text/plain)
2013-03-25 22:29 UTC, Ivan Asmer
Details
xorg-server compilation fail (xorg.fail,23.54 KB, text/plain)
2013-03-25 22:30 UTC, Ivan Asmer
Details
Patch to fix symlinks created by ebuilds in 1.13.3 and 1.14.0 (patch,15.80 KB, text/plain)
2013-04-05 10:05 UTC, Andreas Schäfer
Details
updated ebuild (xorg-server-1.14.1.ebuild,6.84 KB, text/plain)
2013-04-24 05:35 UTC, Andreas Schäfer
Details
emerge --info '=x11-base/xorg-server-1.14.3-r2::gentoo' (file_463284.txt,4.72 KB, text/plain)
2013-10-22 09:51 UTC, drkg4b
Details
emerge -pqv '=x11-base/xorg-server-1.14.3-r2::gentoo' (file_463284.txt,433 bytes, text/plain)
2013-10-22 09:53 UTC, drkg4b
Details
build.log (file_463284.txt,36.42 KB, text/plain)
2013-10-22 09:56 UTC, drkg4b
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Asmer 2013-03-25 22:28:27 UTC
For some reason mesa headers symlinked wrong into xorg-server compilation temp folder:

$ LC_ALL=C ls -l /var/tmp/portage/x11-base/xorg-server-1.13.1/temp/mesa-symlinks/GL/
total 0
lrwxrwxrwx 1 root root 39 Mar 25 23:46 gl.h -> /usr/lib64/opengl/xorg-x11/include/gl.h
lrwxrwxrwx 1 root root 40 Mar 25 23:46 glext.h -> /usr/lib64/opengl/global/include/glext.h
lrwxrwxrwx 1 root root 40 Mar 25 23:46 glx.h -> /usr/lib64/opengl/xorg-x11/include/glx.h
lrwxrwxrwx 1 root root 41 Mar 25 23:46 glxext.h -> /usr/lib64/opengl/global/include/glxext.h
lrwxrwxrwx 1 root root 42 Mar 25 23:46 glxmd.h -> /usr/lib64/opengl/xorg-x11/include/glxmd.h
lrwxrwxrwx 1 root root 45 Mar 25 23:46 glxproto.h -> /usr/lib64/opengl/xorg-x11/include/glxproto.h
lrwxrwxrwx 1 root root 46 Mar 25 23:46 glxtokens.h -> /usr/lib64/opengl/xorg-x11/include/glxtokens.h


BUT, mesa (installed some times, different versions, keyworded or stable):

$ equery files mesa
....
/usr/lib64/opengl/xorg-x11/include
/usr/lib64/opengl/xorg-x11/include/EGL
/usr/lib64/opengl/xorg-x11/include/EGL/egl.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglext.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglmesaext.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglplatform.h
/usr/lib64/opengl/xorg-x11/include/GL
/usr/lib64/opengl/xorg-x11/include/GL/gl.h
/usr/lib64/opengl/xorg-x11/include/GL/glext.h
/usr/lib64/opengl/xorg-x11/include/GL/glx.h
/usr/lib64/opengl/xorg-x11/include/GL/glxext.h
....

i. e. in line 162 and below of ebuild:

    # Xorg-server requires includes from OS mesa which are not visible for
    # users of binary drivers.
    mkdir -p "${T}/mesa-symlinks/GL"
    for i in gl glx glxmd glxproto glxtokens; do
        ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
    done
    for i in glext glxext; do
        ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die
    done

`/opengl/global/include/$i.h` should be changed to /opengl/global/include/GL/$i.h

I guessing, that it can happens because EGL flag turned on in mesa. I will try.

I sure, that many peoples successfully compiles mesa and xorg last monthes (last update of my xorg-server was in 13.07.2012), so may be it just some bug in my portage configuration.

Thanks, good luck.

And I will try little workaround with symlinks in /usr/lib64/opengl/global/include (GL folder symlinked to double dot).

Reproducible: Always

Steps to Reproduce:
1. emerge xorg-server

Actual Results:  
Fail. Attached

Expected Results:  
Successful emerge

look to description
Comment 1 Ivan Asmer 2013-03-25 22:29:37 UTC
Created attachment 343272 [details]
emerge --info
Comment 2 Ivan Asmer 2013-03-25 22:30:05 UTC
Created attachment 343274 [details]
xorg-server compilation fail
Comment 3 Ivan Asmer 2013-03-25 22:52:58 UTC
recompiling mesa w/o egl - no result, .h still in GL folder:

/usr/lib64/opengl/xorg-x11/include/GL/gl.h
/usr/lib64/opengl/xorg-x11/include/GL/glext.h
/usr/lib64/opengl/xorg-x11/include/GL/glx.h
/usr/lib64/opengl/xorg-x11/include/GL/glxext.h
Comment 4 Ivan Asmer 2013-03-25 23:12:19 UTC
Dirty workaround:

symlinks, which `copies` gl*.h files for one level from GL folder, works. xorg-server compiled successfully.
Comment 5 Andreas Schäfer 2013-04-05 10:05:25 UTC
Created attachment 344480 [details]
Patch to fix symlinks created by ebuilds in 1.13.3 and 1.14.0

I can confirm this bug on multiple boxes. The attached patch solves the problem.
Comment 6 Andreas Schäfer 2013-04-24 05:35:08 UTC
Created attachment 346452 [details]
updated ebuild

Sheesh, why is this bug still unconfirmed? Please find attached an fixed ebuild for xorg-server-1.14.1. Apparently the bug is only triggered when using the binary drivers (I'm running Nvidia). 

There is also a separate bug report on this issue in the forums: http://forums.gentoo.org/viewtopic-t-943244-highlight-.html
Comment 7 drkg4b 2013-10-22 09:50:39 UTC
I'm still affected by this bug and the patch doesn't work for me! Please find attached the emerge --info and build log.
Comment 8 drkg4b 2013-10-22 09:51:38 UTC
Created attachment 361596 [details]
emerge --info '=x11-base/xorg-server-1.14.3-r2::gentoo'
Comment 9 drkg4b 2013-10-22 09:53:14 UTC
Created attachment 361598 [details]
emerge -pqv '=x11-base/xorg-server-1.14.3-r2::gentoo'
Comment 10 drkg4b 2013-10-22 09:56:05 UTC
Created attachment 361600 [details]
build.log
Comment 11 jerry.mcbride 2014-01-12 19:55:17 UTC
(In reply to Andreas Schäfer from comment #6)
> Created attachment 346452 [details]
> updated ebuild
> 
> Sheesh, why is this bug still unconfirmed? Please find attached an fixed
> ebuild for xorg-server-1.14.1. Apparently the bug is only triggered when
> using the binary drivers (I'm running Nvidia). 
> 
> There is also a separate bug report on this issue in the forums:
> http://forums.gentoo.org/viewtopic-t-943244-highlight-.html

I confirm this bug. and if you ahdn't mentioned that it is a problem with binary video drivers, I never would have been able to fix a box I am upgrading.

Thank You!

And I hope they either fix the standard ebuild or use yours instead. It works!
Comment 12 Andreas Schäfer 2014-01-12 20:02:37 UTC
(In reply to jerry.mcbride from comment #11)
> (In reply to Andreas Schäfer from comment #6)
> > Created attachment 346452 [details]
> > updated ebuild
> > 
> > Sheesh, why is this bug still unconfirmed? Please find attached an fixed
> > ebuild for xorg-server-1.14.1. Apparently the bug is only triggered when
> > using the binary drivers (I'm running Nvidia). 
> > 
> > There is also a separate bug report on this issue in the forums:
> > http://forums.gentoo.org/viewtopic-t-943244-highlight-.html
> 
> I confirm this bug. and if you ahdn't mentioned that it is a problem with
> binary video drivers, I never would have been able to fix a box I am
> upgrading.
> 
> Thank You!
> 
> And I hope they either fix the standard ebuild or use yours instead. It
> works!

Glad I could be of service :-)
Comment 13 Matt Turner gentoo-dev 2015-02-21 19:02:16 UTC
I expect this is long since fixed, especially since the versions of the xserver you mention are no longer in portage.