Skip to contentSkip to conversation

xorg-xserver: fix building of the package when different virtual/egl provider are selected

PATCH In review Francesco Giancane 2 participants 7 messages Sep 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xorg-xserver: fix building of the package when different virtual/egl provider are selected

xorg-xserver fails to build when Xwayland feature is enabled on targets which do not fully support mesa and/or have different vendor-provided openGL stack.

I.e. in the case of raspberry pi 3 the recipe 'userland' provided virtual/gles2
virtual/egl

Doing some checks revealed that the correct package is egl and NOT libegl, as wrongly stated in the PACKAGECONFIG[glamor] dependency.

This patch fixes the issue.

---
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +1 -1
index 863d80ce43..33fe66844e 100644
@@ -133,7 +133,7 @@ PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2,dri2proto"
 # DRI3 requires xshmfence to also be enabled
 PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3,dri3proto"
 PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,glproto virtual/libgl virtual/libx11"
-PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy,libegl"
+PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy,egl"
 PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
 PACKAGECONFIG[xshmfence] = "--enable-xshmfence,--disable-xshmfence,libxshmfence"
 PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
Signature · 1 line
2.13.5
#1 lore raw
Quoted 4 lines · Francesco Giancane

-PACKAGECONFIG[glamor] = "--enable-glamor,--disable- glamor,libepoxy,libegl"
+PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy,egl"

userland is in the wrong here, not mesa or xorg.

The policy is that there are generalised names (libgles, libegl) and they should either be used by BSPs directly, or RPROVIDED. Mesa generates libgles1-mesa libegl-mesa etc, and they RPROVIDE libegl libegl1.

Ross

#2 lore raw

Hi Ross,
Thank you for your clarification. I double checked the recipes before asking for the patch, and I found out that Mesa provides both virtual/egl and virtual/libegl; searching through the layers I did not find any recipe depending on libegl but only on egl. Incidentally, userland from meta-raspberrypi provided only egl, and that was the final confirmation.

Given that assumptions, if you can surely tell that libegl is the correct dependency name form of libEGL, I will be happy with rejection of the patch and contact meta-raspberrypi maintainers directly.

Thank you,

Francesco Giancane

Via Paolo Braccini 46, 10141 Torino (TO)

+393933920466

Il 29 set 2017 12:05, "Burton, Ross" <[email protected]> ha scritto:

Quoted 16 lines
Quoted 4 lines · Francesco Giancane

-PACKAGECONFIG[glamor] = "--enable-glamor,--disable-gla mor,libepoxy,libegl"
+PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy,egl"

userland is in the wrong here, not mesa or xorg.

The policy is that there are generalised names (libgles, libegl) and they should either be used by BSPs directly, or RPROVIDED. Mesa generates libgles1-mesa libegl-mesa etc, and they RPROVIDE libegl libegl1.

Ross

#3 lore raw
Quoted 7 lines · Francesco Giancane

Hi Ross,
Thank you for your clarification. I double checked the recipes before asking for the patch, and I found out that Mesa provides both virtual/egl and virtual/libegl; searching through the layers I did not find any recipe depending on libegl but only on egl. Incidentally, userland from meta-raspberrypi provided only egl, and that was the final confirmation.

Note that virtual/* are build-time dependencies, this dependency is a runtime dependency.

Ross

#4 lore raw

Yes, in fact Mesa rprovides both egl and libegl.
So the patch is to be issued to the userland recipe of raspberrypi in the end. Would you confirm that?

Francesco Giancane

Via Paolo Braccini 46, 10141 Torino (TO)

+393933920466

Il 29 set 2017 12:16, "Burton, Ross" <[email protected]> ha scritto:

Quoted 16 lines
Quoted 7 lines · Francesco Giancane

Hi Ross,
Thank you for your clarification. I double checked the recipes before asking for the patch, and I found out that Mesa provides both virtual/egl and virtual/libegl; searching through the layers I did not find any recipe depending on libegl but only on egl. Incidentally, userland from meta-raspberrypi provided only egl, and that was the final confirmation.

Note that virtual/* are build-time dependencies, this dependency is a runtime dependency.

Ross

#5 lore raw

Hi again Ross,
sorry to still bother but grepping inside poky recipes I did found no references to 'libegl'. Every (virtual) dependency is built upon virtual/egl; Maybe folks at meta-raspberrypi where not wrong... The same apply for Freescale GPU recipes: they do not provide libegl, only egl.
Francesco Giancane

Via Paolo Braccini 46, 10141 Torino (TO)
+393933920466
https://it.linkedin.com/in/francesco-giancane-aa7213117

2017-09-29 12:37 GMT+02:00 Francesco Giancane <[email protected]>:

Quoted 27 lines

Yes, in fact Mesa rprovides both egl and libegl.
So the patch is to be issued to the userland recipe of raspberrypi in the end. Would you confirm that?

Francesco Giancane

Via Paolo Braccini 46, 10141 Torino (TO)

+393933920466

Il 29 set 2017 12:16, "Burton, Ross" <[email protected]> ha scritto:

Quoted 16 lines
Quoted 7 lines · Francesco Giancane

Hi Ross,
Thank you for your clarification. I double checked the recipes before asking for the patch, and I found out that Mesa provides both virtual/egl and virtual/libegl; searching through the layers I did not find any recipe depending on libegl but only on egl. Incidentally, userland from meta-raspberrypi provided only egl, and that was the final confirmation.

Note that virtual/* are build-time dependencies, this dependency is a runtime dependency.

Ross

#6 lore raw
Quoted 8 lines · Francesco Giancane

Hi again Ross,
sorry to still bother but grepping inside poky recipes I did found no references to 'libegl'. Every (virtual) dependency is built upon virtual/egl; Maybe folks at meta-raspberrypi where not wrong... The same apply for Freescale GPU recipes: they do not provide libegl, only egl.
Francesco Giancane

You're confusing runtime and buildtime dependencies.

In oe-core the mesa recipes PROVIDES virtual/egl. It generates a package libegl-mesa, which RPROVIDES libegl and libegl1.

It is expected that other GL providers would follow the same pattern.

Ross