Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/4] mesa: make runtime variables depend on PACKAGECONFIG
@ 2013-10-17 11:31 Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 2/4] mesa-gl: use base_set_filespath Andreas Oberritter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andreas Oberritter @ 2013-10-17 11:31 UTC (permalink / raw)
  To: openembedded-core

- This solves a conflict between mesa-gl and a custom library,
  both providing a libgles2 package, although being disabled
  in mesa-gl.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-graphics/mesa/mesa.inc | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index afc795c..3e8041b 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -105,11 +105,16 @@ do_install_append () {
 # they don't get Debian-renamed (which would remove the -mesa suffix), and
 # RPROVIDEs/RCONFLICTs on the generic libgl name.
 python __anonymous() {
-    for p in (("libegl", "libegl1"), ("libgl", "libgl1"),
-              ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"),
-              ("libgles3",)):
-        fullp = p[0] + "-mesa"
-        pkgs = " ".join(p)
+    pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
+    for p in (("egl", "libegl", "libegl1"),
+              ("dri", "libgl", "libgl1"),
+              ("gles", "libgles1", "libglesv1-cm1"),
+              ("gles", "libgles2", "libglesv2-2"),
+              ("gles", "libgles3",)):
+        if not p[0] in pkgconfig:
+            continue
+        fullp = p[1] + "-mesa"
+        pkgs = " ".join(p[1:])
         d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
         d.appendVar("RREPLACES_" + fullp, pkgs)
         d.appendVar("RPROVIDES_" + fullp, pkgs)
@@ -117,7 +122,7 @@ python __anonymous() {
         
         # For -dev, the first element is both the Debian and original name
         fullp += "-dev"
-        pkgs = p[0] + "-dev"
+        pkgs = p[1] + "-dev"
         d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
         d.appendVar("RREPLACES_" + fullp, pkgs)
         d.appendVar("RPROVIDES_" + fullp, pkgs)
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] mesa-gl: use base_set_filespath
  2013-10-17 11:31 [PATCH 1/4] mesa: make runtime variables depend on PACKAGECONFIG Andreas Oberritter
@ 2013-10-17 11:31 ` Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 3/4] cogl-1.0: depend on virtual/mesa Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 4/4] cogl-1.0: explicitly disable cairo Andreas Oberritter
  2 siblings, 0 replies; 5+ messages in thread
From: Andreas Oberritter @ 2013-10-17 11:31 UTC (permalink / raw)
  To: openembedded-core

- Fixes FILESEXTRAPATHS being ignored in mesa-gl bbappend.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-graphics/mesa/mesa-gl_9.1.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_9.1.6.bb b/meta/recipes-graphics/mesa/mesa-gl_9.1.6.bb
index 0e9dbb5..21f6151 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_9.1.6.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_9.1.6.bb
@@ -2,7 +2,7 @@ require mesa_${PV}.bb
 
 SUMMARY += " (OpenGL only, no EGL/GLES)"
 
-FILESPATH = "${FILE_DIRNAME}/mesa-${PV}:${FILE_DIRNAME}/mesa"
+FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/mesa-${PV}", "${FILE_DIRNAME}/mesa"], d)}"
 
 PROVIDES = "virtual/libgl virtual/mesa"
 
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] cogl-1.0: depend on virtual/mesa
  2013-10-17 11:31 [PATCH 1/4] mesa: make runtime variables depend on PACKAGECONFIG Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 2/4] mesa-gl: use base_set_filespath Andreas Oberritter
@ 2013-10-17 11:31 ` Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 4/4] cogl-1.0: explicitly disable cairo Andreas Oberritter
  2 siblings, 0 replies; 5+ messages in thread
From: Andreas Oberritter @ 2013-10-17 11:31 UTC (permalink / raw)
  To: openembedded-core

- Wayland support depends on wayland-egl, which is provided by mesa.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-graphics/cogl/cogl-1.0.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index 59ff66e..0c4e86d 100644
--- a/meta/recipes-graphics/cogl/cogl-1.0.inc
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -21,7 +21,7 @@ EDEPENDS_GLES2 = "virtual/libgles2"
 EDEPENDS_KMS = "libdrm virtual/egl"
 EDEPENDS_EGL = "virtual/egl"
 EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr"
-EDEPENDS_WAYLAND = "wayland"
+EDEPENDS_WAYLAND = "virtual/mesa wayland"
 
 # Extra RDEPENDS for PACKAGECONFIG
 # This has to be explictly listed, because cogl dlopens the backends
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] cogl-1.0: explicitly disable cairo
  2013-10-17 11:31 [PATCH 1/4] mesa: make runtime variables depend on PACKAGECONFIG Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 2/4] mesa-gl: use base_set_filespath Andreas Oberritter
  2013-10-17 11:31 ` [PATCH 3/4] cogl-1.0: depend on virtual/mesa Andreas Oberritter
@ 2013-10-17 11:31 ` Andreas Oberritter
  2013-12-05 12:50   ` Andreas Oberritter
  2 siblings, 1 reply; 5+ messages in thread
From: Andreas Oberritter @ 2013-10-17 11:31 UTC (permalink / raw)
  To: openembedded-core

- Cairo was auto-detected, but not listed as a dependency.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-graphics/cogl/cogl-1.0.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index 0c4e86d..11810ef 100644
--- a/meta/recipes-graphics/cogl/cogl-1.0.inc
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -33,6 +33,7 @@ EXTRA_OECONF += "--disable-introspection	\
 	       	 --enable-examples-install	\
 	       	 --enable-debug		 	\
 	       	 --disable-gles1		\
+	         --disable-cairo                \
 	    	"
 
 # OpenGL/GLX
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 4/4] cogl-1.0: explicitly disable cairo
  2013-10-17 11:31 ` [PATCH 4/4] cogl-1.0: explicitly disable cairo Andreas Oberritter
@ 2013-12-05 12:50   ` Andreas Oberritter
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Oberritter @ 2013-12-05 12:50 UTC (permalink / raw)
  To: openembedded-core

Ping.

On 17.10.2013 13:31, Andreas Oberritter wrote:
> - Cairo was auto-detected, but not listed as a dependency.
> 
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
>  meta/recipes-graphics/cogl/cogl-1.0.inc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
> index 0c4e86d..11810ef 100644
> --- a/meta/recipes-graphics/cogl/cogl-1.0.inc
> +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
> @@ -33,6 +33,7 @@ EXTRA_OECONF += "--disable-introspection	\
>  	       	 --enable-examples-install	\
>  	       	 --enable-debug		 	\
>  	       	 --disable-gles1		\
> +	         --disable-cairo                \
>  	    	"
>  
>  # OpenGL/GLX
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-05 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 11:31 [PATCH 1/4] mesa: make runtime variables depend on PACKAGECONFIG Andreas Oberritter
2013-10-17 11:31 ` [PATCH 2/4] mesa-gl: use base_set_filespath Andreas Oberritter
2013-10-17 11:31 ` [PATCH 3/4] cogl-1.0: depend on virtual/mesa Andreas Oberritter
2013-10-17 11:31 ` [PATCH 4/4] cogl-1.0: explicitly disable cairo Andreas Oberritter
2013-12-05 12:50   ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox