Skip to contentSkip to conversation

libepoxy: New recipe updated to latest release

PATCH In review Francesco Giancane 3 participants 6 messages Feb 28, 2018 – Mar 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 libepoxy: New recipe updated to latest release

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30 --------------------
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26 +++++++++--------
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33 ----------------------
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb} (61%)
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -30
deleted file mode 100644
index ebe5754a7a..0000000000
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including eglplatform.h
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted [https://github.com/anholt/libepoxy/pull/153]
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +14 -12
index c2a2fa3453..5bddc12033 100644
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed for
  musl)
 
-Upstream-Status: Pending
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by default)
 
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference (depends on Doxygen)')
 +option('has-dlvsym',
 +       type: 'boolean', value: true,
 +       description: 'Whether dlvsym() is available (it is not when using musl C library)')
- option('enable-glx',
+ option('glx',
         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], [], true ],
      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ '-static' ], libtype == 'static' ],
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ], has_znow ],
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
  
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
  
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 -- 
-2.15.0
+2.14.3
 
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -33
deleted file mode 100644
index b9297257dc..0000000000
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/libepoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py	2017-06-06 04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py	2017-11-06 12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't define
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value) (static_cast<type>(value))')
-+                self.outln('#else')
-+                self.outln('#define EGL_CAST(type, value) ((type) (value))')
-+                self.outln('#endif')
-+                self.outln('#endif')
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +4 -6
similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb
index 8a5cb8f49f..dfdd19248d 100644
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
 
 SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch \
-           file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch \
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6"
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e9685a0cac261414175c2adf4645cdfab42a5d5"
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
 
 inherit meson pkgconfig distro_features_check
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no, virtual/libx11"
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
 
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
Signature · 1 line
2.14.3
#1 lore raw

Hi,

Sorry again. The patch was based on openembedded-core rather than poky, and this is why the patchwork failed to apply it.
This should be the last one.

Thanks for the patience,

Francesco Giancane

2018-02-28 23:08 GMT+01:00 Francesco Giancane <[email protected]> :

Quoted 241 lines

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30
--------------------
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26 +++++++++--------
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33
----------------------
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/0001-Define-
MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/Add-
fallback-definition-for-EGL-CAST.patch
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb =>

libepoxy_1.5.0.bb} (61%)

(quoted diff) +0 -0

MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define- MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted file mode 100644
index ebe5754a7a..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define- MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch +++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -4
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including

eglplatform.h
- when X11 is disabled

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -25
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted [https://github.com/anholt/libepoxy/pull/153]
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
(quoted diff) +0 -0

it-possible-to-disable-the-use-of-dlvsym-needed.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make- it-possible-to-disable-the-use-of-dlvsym-needed.patch index c2a2fa3453..5bddc12033 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make- it-possible-to-disable-the-use-of-dlvsym-needed.patch +++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make- it-possible-to-disable-the-use-of-dlvsym-needed.patch

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed

for
musl)

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
-Upstream-Status: Pending
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by

default)

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +4 -2
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference (depends

on Doxygen)')
+option('has-dlvsym',
+ type: 'boolean', value: true,
+ description: 'Whether dlvsym() is available (it is not when using
musl C library)')
- option('enable-glx',
+ option('glx',

         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],

diff --git a/test/meson.build b/test/meson.build

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c'

], [], [], true ],

      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [
'-static' ], libtype == 'static' ],
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ],

has_znow ],

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
 
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
 
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 --
-2.15.0
+2.14.3
 
(quoted diff) +0 -0

fallback-definition-for-EGL-CAST.patch b/meta/recipes-graphics/ libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted file mode 100644
index b9297257dc..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/Add- fallback-definition-for-EGL-CAST.patch
+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -10
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/libepoxy/commit/

ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -6
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py    2017-06-06

04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06 12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -8
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't define
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value)

(static_cast<type>(value))')
-+ self.outln('#else')
-+ self.outln('#define EGL_CAST(type, value) ((type)
(value))')
-+ self.outln('#endif')
-+ self.outln('#endif')

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -3
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -4
similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb
index 8a5cb8f49f..dfdd19248d 100644
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
 
 SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/$
 {BP}.tar.xz \
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch
 \
-           file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 \
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8b

c7fb2fda074478e329b063c1f872b826f6"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e9685

a0cac261414175c2adf4645cdfab42a5d5"
UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"

inherit meson pkgconfig distro_features_check

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -3
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no, virtual/libx11"
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
 
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
--

2.14.3

#2 lore raw
In reply to Francesco Giancane
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Francesco Giancane
Sent: den 28 februari 2018 23:09
To: [email protected]
Subject: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to latest release

This isn't in meta-oe, it's in meta. ;)

I suggest changing the subject to:

libepoxy: Update to 1.5.0

since it's not a new recipe, and "latest release" carries a lot less information than the actual version.

Quoted 4 lines

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

I'd remove the second sentence. All that information is conveyed by the updated subject anyway.

Quoted 61 lines

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30 --------------------
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26 +++++++++--------
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33 ----------------------
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb} (61%)
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -12
deleted file mode 100644
index ebe5754a7a..0000000000
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including eglplatform.h
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted

[https://github.com/anholt/libepoxy/pull/153]

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -18
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -0
index c2a2fa3453..5bddc12033 100644

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 7

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -4
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym() (needed for
  musl)
 
-Upstream-Status: Pending

Don't remove the Upstream-Status.

Quoted 129 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +11 -8
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by default)
 
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference (depends on Doxygen)')
 +option('has-dlvsym',
 +       type: 'boolean', value: true,
 +       description: 'Whether dlvsym() is available (it is not when using musl C library)')
- option('enable-glx',
+ option('glx',
         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c' ], [], [], true ],
      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [ '-static' ], libtype == 'static' ],
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ], has_znow ],
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
 
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
 
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 --
-2.15.0
+2.14.3
 
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -16
deleted file mode 100644
index b9297257dc..0000000000
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/libepoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py	2017-06-06

04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06
12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -15
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't define
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value) (static_cast<type>(value))')
-+                self.outln('#else')
-+                self.outln('#define EGL_CAST(type, value) ((type) (value))')
-+                self.outln('#endif')
-+                self.outln('#endif')
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +4 -7
similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb
index 8a5cb8f49f..dfdd19248d 100644
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
 
 SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch \
-           file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch \
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6"
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e9685a0cac261414175c2adf4645cdfab42a5d5"
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
 
 inherit meson pkgconfig distro_features_check
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no, virtual/libx11"
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
 
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
--
Quoted 1 line

2.14.3

//Peter

#3 lore raw

v4 is being sent with updated commit description and Upstream-Status included.
Thanks!

Francesco Giancane

2018-02-28 23:57 GMT+01:00 Peter Kjellerstedt <[email protected]>:

Quoted 271 lines
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Francesco Giancane
Sent: den 28 februari 2018 23:09
To: [email protected]
Subject: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to

latest release

This isn't in meta-oe, it's in meta. ;)

I suggest changing the subject to:

libepoxy: Update to 1.5.0

since it's not a new recipe, and "latest release" carries a lot less information than the actual version.

Quoted 4 lines

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

I'd remove the second sentence. All that information is conveyed by the updated subject anyway.

Quoted 11 lines

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30

--------------------

Quoted 1 line
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26

+++++++++--------

Quoted 1 line
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33

----------------------

Quoted 3 lines
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/0001-Define-

MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 1 line
 delete mode 100644 meta/recipes-graphics/libepoxy/libepoxy/Add-

fallback-definition-for-EGL-CAST.patch

Quoted 1 line
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb =>

libepoxy_1.5.0.bb} (61%)

Review

Quoted 2 lines
(quoted diff) +0 -0

MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define- MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 3 lines

deleted file mode 100644
index ebe5754a7a..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-

MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch line 4

Quoted 6 lines

+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -4
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including

eglplatform.h

Review

Quoted 28 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -8
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted

[https://github.com/anholt/libepoxy/pull/153]

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -18
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
(quoted diff) +0 -0

it-possible-to-disable-the-use-of-dlvsym-needed.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make- it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 2 lines

index c2a2fa3453..5bddc12033 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-

it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 1 line

+++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-

it-possible-to-disable-the-use-of-dlvsym-needed.patch

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 4

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym()

(needed for

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 7

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -1
  musl)
 
-Upstream-Status: Pending

Don't remove the Upstream-Status.

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -1
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by

default)

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -0
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference

(depends on Doxygen)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -0
 +option('has-dlvsym',
 +       type: 'boolean', value: true,
 +       description: 'Whether dlvsym() is available (it is not when

using musl C library)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 12 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
- option('enable-glx',
+ option('glx',
         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c'

], [], [], true ],

Review line 36

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [

'-static' ], libtype == 'static' ],

Review line 37

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ],

has_znow ],

Review

Quoted 17 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
 
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
 
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 --
-2.15.0
+2.14.3
 
(quoted diff) +0 -0

fallback-definition-for-EGL-CAST.patch b/meta/recipes-graphics/ libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 3 lines

deleted file mode 100644
index b9297257dc..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/Add-

fallback-definition-for-EGL-CAST.patch

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -10
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/libepoxy/commit/

ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -6
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py  2017-06-06

04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06
12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -8
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't define
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value)

(static_cast<type>(value))')

Quoted 2 lines

-+ self.outln('#else')
-+ self.outln('#define EGL_CAST(type, value) ((type)

(value))')

Review

Quoted 6 lines

-+ self.outln('#endif')
-+ self.outln('#endif')

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -3
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
(quoted diff) +0 -0

b/meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 6

Quoted 8 lines

similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb index 8a5cb8f49f..dfdd19248d 100644

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf46

4b"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 7

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
 SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/$

{BP}.tar.xz \

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 8

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

\

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 10

Quoted 1 line
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

\

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT"

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -2
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8b

c7fb2fda074478e329b063c1f872b826f6"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 11

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e9685

a0cac261414175c2adf4645cdfab42a5d5"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 23

Quoted 12 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -2
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
 
 inherit meson pkgconfig distro_features_check
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no, virtual/libx11"
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}

egl"

Quoted 4 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
--

2.14.3

//Peter

#4 lore raw

Hi,

This email just to point that a revised patch has been submitted.

Please find attached at https://patchwork.openembedded.org/patch/148586/

Thanks,

Francesco Giancane

2018-03-01 17:20 GMT+01:00 Francesco Giancane <[email protected]> :

Quoted 284 lines

v4 is being sent with updated commit description and Upstream-Status included.
Thanks!

Francesco Giancane

2018-02-28 23:57 GMT+01:00 Peter Kjellerstedt <[email protected]

Quoted 276 lines

:

Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Francesco Giancane
Sent: den 28 februari 2018 23:09
To: [email protected]
Subject: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to

latest release

This isn't in meta-oe, it's in meta. ;)

I suggest changing the subject to:

libepoxy: Update to 1.5.0

since it's not a new recipe, and "latest release" carries a lot less information than the actual version.

Quoted 4 lines

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

I'd remove the second sentence. All that information is conveyed by the updated subject anyway.

Quoted 11 lines

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30

--------------------

Quoted 1 line
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26

+++++++++--------

Quoted 1 line
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33

----------------------

Quoted 3 lines
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy

/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 1 line
 delete mode 100644 meta/recipes-graphics/libepoxy

/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 1 line
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb =>

libepoxy_1.5.0.bb} (61%)

Review

Quoted 2 lines
(quoted diff) +0 -0

EGL_NO_X11_HEADERS-before-including-eglp.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_ EGL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 3 lines

deleted file mode 100644
index ebe5754a7a..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_

EGL_NO_X11_HEADERS-before-including-eglp.patch

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch line 4

Quoted 6 lines

+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -4
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including

eglplatform.h

Review

Quoted 28 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -8
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted

[https://github.com/anholt/libepoxy/pull/153]

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -18
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
(quoted diff) +0 -0

possible-to-disable-the-use-of-dlvsym-needed.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it- possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 2 lines

index c2a2fa3453..5bddc12033 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-

possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 1 line

+++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-

possible-to-disable-the-use-of-dlvsym-needed.patch

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 4

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym()

(needed for

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 7

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -1
  musl)
 
-Upstream-Status: Pending

Don't remove the Upstream-Status.

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -1
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by

default)

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -0
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference

(depends on Doxygen)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -0
 +option('has-dlvsym',
 +       type: 'boolean', value: true,
 +       description: 'Whether dlvsym() is available (it is not when

using musl C library)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 12 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
- option('enable-glx',
+ option('glx',
         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c'

], [], [], true ],

Review line 36

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [

'-static' ], libtype == 'static' ],

Review line 37

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ],

has_znow ],

Review

Quoted 17 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
 
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
 
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 --
-2.15.0
+2.14.3
 
(quoted diff) +0 -0

b/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback- definition-for-EGL-CAST.patch

Quoted 3 lines

deleted file mode 100644
index b9297257dc..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-

definition-for-EGL-CAST.patch

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -10
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/lib

epoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -6
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py  2017-06-06

04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06
12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 4 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -4
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't

define

Quoted 4 lines
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value)

(static_cast<type>(value))')

Quoted 2 lines

-+ self.outln('#else')
-+ self.outln('#define EGL_CAST(type, value) ((type)

(value))')

Review

Quoted 6 lines

-+ self.outln('#endif')
-+ self.outln('#endif')

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -3
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
(quoted diff) +0 -0

b/meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 6

Quoted 8 lines

similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb index 8a5cb8f49f..dfdd19248d 100644

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d4

01e07bd9ee8b6b58cf464b"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 7

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
 SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${

BP}.tar.xz \

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 8

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

\

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 10

Quoted 1 line
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

\

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT"

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -2
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8

bc7fb2fda074478e329b063c1f872b826f6"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 11

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e968

5a0cac261414175c2adf4645cdfab42a5d5"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 24

Quoted 9 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -2
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
 
 inherit meson pkgconfig distro_features_check
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no,

virtual/libx11"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 22

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11

virtual/libgl"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 23

Quoted 1 line
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}

egl"

Quoted 4 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
--

2.14.3

//Peter

#5 lore raw

Yes, it's been merged :)

Ross

Quoted 311 lines · Francesco Giancane

Hi,

This email just to point that a revised patch has been submitted.

Please find attached at https://patchwork.openembedded.org/patch/148586/

Thanks,

Francesco Giancane

2018-03-01 17:20 GMT+01:00 Francesco Giancane <
[email protected]>:

Quoted 4 lines

v4 is being sent with updated commit description and Upstream-Status included.
Thanks!

Quoted 285 lines

Francesco Giancane

2018-02-28 23:57 GMT+01:00 Peter Kjellerstedt <
[email protected]>:

Quoted 279 lines
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Francesco Giancane
Sent: den 28 februari 2018 23:09
To: [email protected]
Subject: [OE-core] [meta-oe][PATCH v3] libepoxy: New recipe updated to

latest release

This isn't in meta-oe, it's in meta. ;)

I suggest changing the subject to:

libepoxy: Update to 1.5.0

since it's not a new recipe, and "latest release" carries a lot less information than the actual version.

Quoted 4 lines

libepoxy 1.4.3 did not compile successfully because of implicit symbol definitions and link-time errors. A new recipe with latest libepoxy release (1.5.0) which successfully compiles is provided.

I'd remove the second sentence. All that information is conveyed by the updated subject anyway.

Quoted 11 lines

Patch to disable 'dlvsym' has also been forward-ported to be applicable to version 1.5.0.
The patch 'Add-fallback-definition-for-EGL-CAST.patch' is mainline now; thus it can be safely removed.
Also, the patch 0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch is no longer required since mainline fixed this too.

---
 ..._EGL_NO_X11_HEADERS-before-including-eglp.patch | 30

--------------------

Quoted 1 line
 ...sible-to-disable-the-use-of-dlvsym-needed.patch | 26

+++++++++--------

Quoted 1 line
 .../Add-fallback-definition-for-EGL-CAST.patch     | 33

----------------------

Quoted 3 lines
 .../{libepoxy_1.4.3.bb => libepoxy_1.5.0.bb}       | 10 +++----
 4 files changed, 18 insertions(+), 81 deletions(-)
 delete mode 100644 meta/recipes-graphics/libepoxy

/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-includi ng-eglp.patch

Quoted 1 line
 delete mode 100644 meta/recipes-graphics/libepoxy

/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 1 line
 rename meta/recipes-graphics/libepoxy/{libepoxy_1.4.3.bb =>

libepoxy_1.5.0.bb} (61%)

Review

Quoted 2 lines
(quoted diff) +0 -0

xy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_E GL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 3 lines

deleted file mode 100644
index ebe5754a7a..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_E

GL_NO_X11_HEADERS-before-including-eglp.patch

Review line 1

Quoted 3 lines

+++ /dev/null

(quoted diff) +0 -1
@@ -1,30 +0,0 @@
-From 62e178ddae24c7633d2a03b129dc52261e0a15bf Mon Sep 17 00:00:00

2001

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -3
-From: Khem Raj <[email protected]>
-Date: Wed, 7 Feb 2018 00:48:03 -0800
-Subject: [PATCH] Define MESA_EGL_NO_X11_HEADERS before including

eglplatform.h

Review

Quoted 28 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -8
- when X11 is disabled
-
-This helps in compiling when GL implementations e.g. mesa use
-this define to exclude X11 headers
-
-Signed-off-by: Khem Raj <[email protected]>
----
-Upstream-Status: Submitted

[https://github.com/anholt/libepoxy/pull/153]

meta/recipes-graphics/libepoxy/libepoxy/0001-Define-MESA_EGL_NO_X11_HEADERS-before-including-eglp.patch deleted +0 -18
-
- src/dispatch_common.h | 3 +++
- 1 file changed, 3 insertions(+)
-
-Index: libepoxy-1.4.3/src/dispatch_common.h
-===================================================================
---- libepoxy-1.4.3.orig/src/dispatch_common.h
-+++ libepoxy-1.4.3/src/dispatch_common.h
-@@ -46,6 +46,9 @@
- #include "epoxy/glx.h"
- #endif
- #if PLATFORM_HAS_EGL
-+#if !PLATFORM_HAS_GLX
-+#define MESA_EGL_NO_X11_HEADERS 1
-+#endif
- #include "epoxy/egl.h"
- #endif
- #if PLATFORM_HAS_WGL
(quoted diff) +0 -0

xy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possi ble-to-disable-the-use-of-dlvsym-needed.patch

Quoted 2 lines

index c2a2fa3453..5bddc12033 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possi

ble-to-disable-the-use-of-dlvsym-needed.patch

Quoted 1 line

+++ b/meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possi

ble-to-disable-the-use-of-dlvsym-needed.patch

Review line 1

Quoted 2 lines
(quoted diff) +0 -1
@@ -1,36 +1,38 @@
-From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00

2001

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +1 -2
-From: Alexander Kanavin <[email protected]>
-Date: Wed, 15 Nov 2017 12:48:27 +0200
+From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00

2001

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -0
+From: Francesco Giancane <[email protected]>
+Date: Wed, 28 Feb 2018 21:32:24 +0100
 Subject: [PATCH] Make it possible to disable the use of dlvsym()

(needed for

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch line 7

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -1
  musl)
 
-Upstream-Status: Pending

Don't remove the Upstream-Status.

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -1
-Signed-off-by: Alexander Kanavin <[email protected]>
+Add a patch to work around absence of dlvsym() on musl
+(wasn't previously a problem as autotools weren't building tests by

default)

Quoted 8 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -0
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Francesco Giancane <[email protected]>
 ---
  meson_options.txt | 3 +++
  test/meson.build  | 6 +++---
  2 files changed, 6 insertions(+), 3 deletions(-)
 

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
 diff --git a/meson_options.txt b/meson_options.txt
-index 244476a..071f0b6 100644
+index b5d7c98..aa849c2 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -1,6 +1,9 @@
- option('enable-docs',
+ option('docs',
         type: 'boolean', value: false,
         description: 'Enable generating the Epoxy API reference

(depends on Doxygen)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +0 -0
 +option('has-dlvsym',
 +       type: 'boolean', value: true,
 +       description: 'Whether dlvsym() is available (it is not when

using musl C library)')

meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch

Quoted 12 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +3 -3
- option('enable-glx',
+ option('glx',
         type: 'combo',
         choices: [ 'auto', 'yes', 'no' ],
 diff --git a/test/meson.build b/test/meson.build
-index 2340fc6..bc4330b 100644
+index c5788b4..4c46ae6 100644
 --- a/test/meson.build
 +++ b/test/meson.build
-@@ -86,8 +86,8 @@ if build_glx
+@@ -92,8 +92,8 @@ if build_glx
      [ 'glx_has_extension_nocontext', [ 'glx_has_extension_nocontext.c'

], [], [], true ],

Review line 36

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_static', [ 'glx_static.c' ], [ '-DNEEDS_TO_BE_STATIC'], [

'-static' ], libtype == 'static' ],

Review line 37

Quoted 1 line
(quoted diff) +0 -0
      [ 'glx_shared_znow', [ 'glx_static.c', ], [], [ '-Wl,-z,now' ],

has_znow ],

Review

Quoted 17 lines
meta/recipes-graphics/libepoxy/libepoxy/0001-Make-it-possible-to-disable-the-use-of-dlvsym-needed.patch +2 -2
@@ -41,7 +43,7 @@ index 2340fc6..bc4330b 100644
    ]
 
    foreach test: glx_tests
-@@ -108,7 +108,7 @@ if build_glx
+@@ -114,7 +114,7 @@ if build_glx
      endif
    endforeach
 
@@ -51,5 +53,5 @@ index 2340fc6..bc4330b 100644
      if build_egl
        glx_egl_sources = [
 --
-2.15.0
+2.14.3
 
(quoted diff) +0 -0

xy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch b/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-defin ition-for-EGL-CAST.patch

Quoted 3 lines

deleted file mode 100644
index b9297257dc..0000000000
--- a/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-defin

ition-for-EGL-CAST.patch

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -10
@@ -1,33 +0,0 @@
-Add fallback definition for EGL_CAST
-
-The EGL API update from d11104f introduced a dependency on the
-EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
-don't provide eglplatform.h, add a fallback definition for if we're
-building against Mesa 17.0.x or similar.
-
-https://bugs.gentoo.org/show_bug.cgi?id=623926
-
-Upstream-Status: Backport [https://github.com/anholt/lib

epoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]

Quoted 10 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -6
-
-Signed-off-by: Tom Hochstein <[email protected]>
-
-Index: libepoxy-1.4.3/src/gen_dispatch.py
-===================================================================
---- libepoxy-1.4.3.orig/src/gen_dispatch.py  2017-06-06

04:24:13.000000000 -0500
-+++ libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06
12:45:43.594966473 -0600
-@@ -491,6 +491,15 @@

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

Quoted 4 lines
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -4
-             self.outln('#include "epoxy/gl.h"')
-             if self.target == "egl":
-                 self.outln('#include "EGL/eglplatform.h"')
-+                # Account for older eglplatform.h, which doesn't

define

Quoted 4 lines
-+                # the EGL_CAST macro.
-+                self.outln('#ifndef EGL_CAST')
-+                self.outln('#if defined(__cplusplus)')
-+                self.outln('#define EGL_CAST(type, value)

(static_cast<type>(value))')

Quoted 2 lines

-+ self.outln('#else')
-+ self.outln('#define EGL_CAST(type, value) ((type)

(value))')

Review

Quoted 6 lines

-+ self.outln('#endif')
-+ self.outln('#endif')

meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch deleted +0 -3
-         else:
-             # Add some ridiculous inttypes.h redefinitions that are
-             # from khrplatform.h and not included in the XML.  We
(quoted diff) +0 -0

b/meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 6

Quoted 8 lines

similarity index 61%
rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb index 8a5cb8f49f..dfdd19248d 100644

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
@@ -6,12 +6,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d4

01e07bd9ee8b6b58cf464b"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 7

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
 SRC_URI = "https://github.com/anholt/${B

PN}/releases/download/${PV}/${BP}.tar.xz \

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 8

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://Add-fallback-definition-for-EGL-CAST.patch \
            file://0001-Make-it-possible-

to-disable-the-use-of-dlvsym-needed.patch \

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 10

Quoted 1 line
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
-           file://0001-Define-MESA_EGL_N

O_X11_HEADERS-before-including-eglp.patch \

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT"

Quoted 3 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -2
            "
-SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
-SRC_URI[sha256sum] = "0b808a06c9685a62fca34b680abb8

bc7fb2fda074478e329b063c1f872b826f6"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb LICENSE = "MIT" · line 11

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+SRC_URI[md5sum] = "63fe3847789258254dcd7e3fdb9e7f5e"
+SRC_URI[sha256sum] = "4c94995398a6ebf691600dda2e968

5a0cac261414175c2adf4645cdfab42a5d5"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 24

Quoted 9 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -2
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
 
 inherit meson pkgconfig distro_features_check
@@ -20,8 +18,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 
 DEPENDS = "util-macros"
 
-PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl"
-PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no,

virtual/libx11"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 22

Quoted 2 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +2 -0
+PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
+PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11

virtual/libgl"

meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb REQUIRED_DISTRO_FEATURES = "opengl" · line 23

Quoted 1 line
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -0
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}

egl"

Quoted 4 lines
meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb renamed from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +0 -1
 EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false "
--

2.14.3

//Peter

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core