Mesa: upgrade to 9.2.2
Hi,
since this patch:
commit 263e654e5d28fa7f6b0c8cc23f57a31448e88a40
Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200
Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.
I have to define MESA_EGL_NO_X11_HEADERS in qtbase and qtwebkit again to build them without xlib.h available (DISTRO without x11 in DISTRO_FEATURES).
Are you sure that meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch was resolved in upstream?
Regards,
Quoted 17 lines · Martin Jansa
Hi,
since this patch:
commit263e654e5d28fa7f6b0c8cc23f57a31448e88a40Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.I have to define
MESA_EGL_NO_X11_HEADERSin qtbase and qtwebkit again to build them withoutxlib.havailable (DISTRO without x11 inDISTRO_FEATURES).
Quoted 5 lines
Are you sure that
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchwas resolved in upstream?Regards,
Hi,
Sorry for this late response,
I removed that patch after testing wayland without X and worked.
I've tried yesterday to build qtbase (meta-qt5) to see exactly what's the problem and determine if indeed part of that patch has to be upstream, but it was failing for not finding libGL (which of course, we don't build with mesa when DISTRO_FEATURES_remove="x11". Just not having X11 in DISTRO_FEATURES doesn't mean you'll not have it). Can you please give me some info about your config vars or your environment so I find out what's the problem!? (I'm trying to reproduce the issue).
Thanks for rising the issue!
Quoted 21 lines · Valentin Popa
Quoted 20 lines · Martin Jansa
Hi,
since this patch:
commit263e654e5d28fa7f6b0c8cc23f57a31448e88a40Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.I have to define
MESA_EGL_NO_X11_HEADERSin qtbase and qtwebkit again to build them withoutxlib.havailable (DISTRO without x11 inDISTRO_FEATURES).Are you sure that
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch
Quoted 7 lines
Quoted 3 lines
was resolved in upstream?
Regards,
Hi,
Sorry for this late response,
I removed that patch after testing wayland without X and worked.
I've tried yesterday to build qtbase (meta-qt5) to see exactly what's the problem and determine if indeed part of that patch has to be upstream, but it was failing for not finding libGL (which of course, we don't build with mesa when
I meant: libGL is not built together with the other mesa libraries when DISTRO_FEATURES_remove="x11" .
Quoted 4 lines
DISTRO_FEATURES_remove="x11". Just not having X11 in
DISTRO_FEATURESdoesn't mean you'll not have it).
Can you please give me some info about your config vars or your environment so I find out what's the problem!? (I'm trying to reproduce the issue).Thanks for rising the issue!
Quoted 32 lines · Valentin Popa
Quoted 23 lines · Valentin Popa
Quoted 22 lines · Martin Jansa
Hi,
since this patch:
commit263e654e5d28fa7f6b0c8cc23f57a31448e88a40Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.I have to define
MESA_EGL_NO_X11_HEADERSin qtbase and qtwebkit again to build them withoutxlib.havailable (DISTRO without x11 inDISTRO_FEATURES).Are you sure that
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchwas resolved in upstream?
Quoted 8 lines
Quoted 1 line
Regards,
Hi,
Sorry for this late response,
I removed that patch after testing wayland without X and worked. I've tried yesterday to build qtbase (meta-qt5) to see exactly what's the problem and determine if indeed part of that patch has to be upstream, but it was failing for not finding libGL (which of course, we don't build with mesa when
Quoted 7 lines
I meant: libGL is not built together with the other mesa libraries when DISTRO_FEATURES_remove="x11" .
Quoted 5 lines
DISTRO_FEATURES_remove="x11". Just not having X11 in
DISTRO_FEATURESdoesn't mean you'll not have it).
Can you please give me some info about your config vars or your environment so I find out what's the problem!? (I'm trying to reproduce the issue).
Hi,
I don't see how building libGL relates to this problem, which is more about mesa headers trying to include xlib.h which isn't available in sysroot for DISTRO without x11 DISTRO_FEATURE.
Here is part of my discussion with Ross about this problem, let me know if it's enough for you to see what the problem is:
18:33 < JaMa> rburton: do you still maintain mesa in oe-core?
18:47 < rburton> JaMa: i guess :)
18:47 < JaMa> rburton: http://lists.openembedded.org/pipermail/openembedded-core/2014-January/088072.html
18:48 < JaMa> rburton: I know you were working with upstream on this, so maybe you have better info than Valentin 18:54 < RP> JaMa: you'd be better addressing your email to ross as valentin is away for a few weeks 18:55 < JaMa> ah OK, I've used valentin as author of that commit
20:43 < rburton> JaMa: oh, *that*. noted, will re-open that can of worms tomorrow.
20:43 < rburton> the upstream solution was effectively "use pkgconfig"
20:59 < JaMa> hmm checking if .pc really has that flag :)
21:00 < JaMa> rburton: it's there for gl.pc, but not in gles*.pc, but that doesn't mean it has to be there 21:01 < JaMa> I need to check what that failing build was using in qtbase/qtwebkit
21:04 < rburton> JaMa: if you can mail the build log of what failed, that would be great
21:05 < JaMa> I'll have to simulate that with public layers first :)
21:05 < rburton> heh, yes :)
21:07 < JaMa> looking at qtbase/config.tests/x11/opengl/opengl.pro it just doesn't use pkg-config at all to read gl.pc 21:08 < JaMa> so as soon as -DMESA_EGL_NO_X11_HEADERS was removed from mesa header it can try to load xlib.h 21:09 < rburton> that entire platform thing is mostly arse
21:10 < JaMa> somewhere in ./src/platformsupport/glxconvenience it loads some mesa header which in turn loads xlib.h and fails 21:10 < JaMa> http://patchwork.openembedded.org/patch/60673/ this is basically the same
The conclusion is that if we cannot fix all apps to use pkgconfig when
searching for mesa, can we restore rebased meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch to fix them automatically?
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 70 lines · Martin Jansa
Quoted 32 lines · Valentin Popa
Quoted 23 lines · Valentin Popa
Quoted 22 lines · Martin Jansa
Hi,
since this patch:
commit263e654e5d28fa7f6b0c8cc23f57a31448e88a40Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.I have to define
MESA_EGL_NO_X11_HEADERSin qtbase and qtwebkit again to build them withoutxlib.havailable (DISTRO without x11 inDISTRO_FEATURES).Are you sure that
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchwas resolved in upstream?
Quoted 8 lines
Quoted 1 line
Regards,
Hi,
Sorry for this late response,
I removed that patch after testing wayland without X and worked. I've tried yesterday to build qtbase (meta-qt5) to see exactly what's the problem and determine if indeed part of that patch has to be upstream, but it was failing for not finding libGL (which of course, we don't build with mesa whenQuoted 7 lines
I meant: libGL is not built together with the other mesa libraries when DISTRO_FEATURES_remove="x11" .
Quoted 5 lines
DISTRO_FEATURES_remove="x11". Just not having X11 in
DISTRO_FEATURESdoesn't mean you'll not have it).
Can you please give me some info about your config vars or your environment so I find out what's the problem!? (I'm trying to reproduce the issue).Hi,
I don't see how building libGL relates to this problem, which is more about mesa headers trying to include
xlib.hwhich isn't available in sysroot for DISTRO without x11DISTRO_FEATURE.Here is part of my discussion with Ross about this problem, let me know if it's enough for you to see what the problem is:
18:33 < JaMa> rburton: do you still maintain mesa in oe-core?
18:47 < rburton> JaMa: i guess :)
18:47 < JaMa> rburton: http://lists.openembedded.org/pipermail/openembedded-core/2014-January/088072.html
18:48 < JaMa> rburton: I know you were working with upstream on this, so maybe you have better info than Valentin 18:54 < RP> JaMa: you'd be better addressing your email to ross as valentin is away for a few weeks 18:55 < JaMa> ah OK, I've used valentin as author of that commit
20:43 < rburton> JaMa: oh, *that*. noted, will re-open that can of worms tomorrow.
20:43 < rburton> the upstream solution was effectively "use pkgconfig"
20:59 < JaMa> hmm checking if .pc really has that flag :)
21:00 < JaMa> rburton: it's there for gl.pc, but not in gles*.pc, but that doesn't mean it has to be there 21:01 < JaMa> I need to check what that failing build was using in qtbase/qtwebkit
21:04 < rburton> JaMa: if you can mail the build log of what failed, that would be great
21:05 < JaMa> I'll have to simulate that with public layers first :)
21:05 < rburton> heh, yes :)
21:07 < JaMa> looking at qtbase/config.tests/x11/opengl/opengl.pro it just doesn't use pkg-config at all to read gl.pc 21:08 < JaMa> so as soon as -DMESA_EGL_NO_X11_HEADERS was removed from mesa header it can try to loadxlib.h21:09 < rburton> that entire platform thing is mostly arse
21:10 < JaMa> somewhere in ./src/platformsupport/glxconvenience it loads some mesa header which in turn loadsxlib.hand fails 21:10 < JaMa> http://patchwork.openembedded.org/patch/60673/ this is basically the same
Quoted 4 lines
The conclusion is that if we cannot fix all apps to use pkgconfig when
searching for mesa, can we restore rebasedmeta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchto fix them automatically?
This looks like a plan :-)
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 35 lines · Martin Jansa
Quoted 34 lines · Valentin Popa
Quoted 23 lines · Valentin Popa
Quoted 22 lines · Martin Jansa
Hi,
since this patch:
commit263e654e5d28fa7f6b0c8cc23f57a31448e88a40Author: Valentin Popa <[email protected]> Date: Wed Oct 30 12:27:39 2013 +0200Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.I have to define
MESA_EGL_NO_X11_HEADERSin qtbase and qtwebkit again to build them withoutxlib.havailable (DISTRO without x11 inDISTRO_FEATURES).Are you sure that
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchwas resolved in upstream?
Quoted 8 lines
Quoted 1 line
Regards,
Hi,
Sorry for this late response,
I removed that patch after testing wayland without X and worked. I've tried yesterday to build qtbase (meta-qt5) to see exactly what's the problem and determine if indeed part of that patch has to be upstream, but it was failing for not finding libGL (which of course, we don't build with mesa whenI meant: libGL is not built together with the other mesa libraries when DISTRO_FEATURES_remove="x11" .
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
DISTRO_FEATURES_remove="x11". Just not having X11 in
DISTRO_FEATURESdoesn't mean you'll not have it).
Can you please give me some info about your config vars or your environment so I find out what's the problem!? (I'm trying to reproduce the issue).Hi,
I don't see how building libGL relates to this problem, which is more
that was my problem trying to build qtbase
Quoted 26 lines
about mesa headers trying to include
xlib.hwhich isn't available in sysroot for DISTRO without x11DISTRO_FEATURE.Here is part of my discussion with Ross about this problem, let me know if it's enough for you to see what the problem is:
18:33 < JaMa> rburton: do you still maintain mesa in oe-core?
18:47 < rburton> JaMa: i guess :)
18:47 < JaMa> rburton: http://lists.openembedded.org/pipermail/openembedded-core/2014-January/088072.html
18:48 < JaMa> rburton: I know you were working with upstream on this, so maybe you have better info than Valentin 18:54 < RP> JaMa: you'd be better addressing your email to ross as valentin is away for a few weeks 18:55 < JaMa> ah OK, I've used valentin as author of that commit
20:43 < rburton> JaMa: oh, *that*. noted, will re-open that can of worms tomorrow.
20:43 < rburton> the upstream solution was effectively "use pkgconfig"
20:59 < JaMa> hmm checking if .pc really has that flag :)
21:00 < JaMa> rburton: it's there for gl.pc, but not in gles*.pc, but that doesn't mean it has to be there 21:01 < JaMa> I need to check what that failing build was using in qtbase/qtwebkit
21:04 < rburton> JaMa: if you can mail the build log of what failed, that would be great
21:05 < JaMa> I'll have to simulate that with public layers first :)
21:05 < rburton> heh, yes :)
21:07 < JaMa> looking at qtbase/config.tests/x11/opengl/opengl.pro it just doesn't use pkg-config at all to read gl.pc 21:08 < JaMa> so as soon as -DMESA_EGL_NO_X11_HEADERS was removed from mesa header it can try to loadxlib.h21:09 < rburton> that entire platform thing is mostly arse
21:10 < JaMa> somewhere in ./src/platformsupport/glxconvenience it loads some mesa header which in turn loadsxlib.hand fails 21:10 < JaMa> http://patchwork.openembedded.org/patch/60673/ this is basically the same
Quoted 5 lines
The conclusion is that if we cannot fix all apps to use pkgconfig when
searching for mesa, can we restore rebasedmeta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchto fix them automatically?
Nice reply, now I know what's the problem!
You are right, for an app that doesn't use pkgconfig this patch is a must . I'll put the patch back.
Thanks !
Quoted 9 lines · Valentin Popa
Quoted 6 lines
The conclusion is that if we cannot fix all apps to use pkgconfig when searching for mesa, can we restore rebased
meta/recipes-graphics/mesa/mesa-9.1.6/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patchto fix them automatically?Nice reply, now I know what's the problem!
You are right, for an app that doesn't use pkgconfig this patch is a must . I'll put the patch back.
Please engage with upstream here as patches to the build system are always a pain to work with going forwards. The problem is that upstream doesn't really have a build system maintainer but if you harass enough people you'll get somewhere. :) If you try in the mesa IRC channel find daniels - he wrote that patch originally and should have some more feedback or advice on how to get it integrated. Tell him I sent you. :)
Ross