Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mail.openembedded.org (Postfix) with ESMTP id CB50D78908 for ; Wed, 28 Feb 2018 21:00:06 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id z81so7586417wmb.4 for ; Wed, 28 Feb 2018 13:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=uJhDXcJOzvlTBT2paUHljN9Dd7n7iGNBzYj9hLejAFY=; b=cjkv11yHrrYmSRvrV5brRSdNVJ7uhL/AC67L12mBbLs6w8vdJSdYWO+MR+LsP7gZgA k6jAKR5XEExJeT0ag6fjhrs7DKPOyaPsn4vXKR5WhlmSmqlF5dWtKpW4zBJULXnGeVFG lV9w4+hXZuE2CIYB/lPLBJx13aCz5T7YE1ki5DdySrzuecAE0gXGE147+PNr8OlvVPY+ 0Xwmkb84e7vuvjQLZPHcxNLE0/5EWCDv9R3ZL/HZmI2DqTU2kwe79kt3wn9esSOJRY8e MRNtjQtt+iJTL0ytMSgs9qLFn+E7N/Ea0TkcSMM/13hPzTrlXpooPOc8694QG8FJrPI6 CsMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uJhDXcJOzvlTBT2paUHljN9Dd7n7iGNBzYj9hLejAFY=; b=On5nMGRqGTzngKQDsRGR7ucdKrJQhmvx6mSxNco6jNWrLF6+waI1MVA8mNSP8/ySlV gF4H+827ng9q7IE2mfVC67uxZr5jaT4jgqg18CoeB4gLVKoKTne+DG5pn8VSVenYcnif y/AyrJQ4NDqQ5zOgRPNDvial4uhpcBLi4CHPD6FlKxPIeyOgtirI+amqlJXegAZBV7bf WnwKXD1CvZR5tWM3dsg6M+PmXaD1bKGdVVHlKjHqKjB/3an1a6RrQiOAUrKZaTJfYAAW h4blDuqMdnfL2VcXgxBO6KGwF/EfEUIWddQz4T4eXBup8BC/kPQuCoaBmjA2IbNTPFUL GZLw== X-Gm-Message-State: APf1xPBLOwWhwUwc90vMQnLGkVO1+/APTD5FKt9Z0BKAdDlTstK+LJ0d FKBJIzeBQu2cfuc7fw2aVkEKoUXP X-Google-Smtp-Source: AH8x225MH8u0037zPhwXwfnynv4dtlDJQvqB9rbN1U+dxNMGcNWUx0lSkqw+bsnNCJhkbaZ/0MYUZg== X-Received: by 10.28.3.65 with SMTP id 62mr14861626wmd.116.1519851606821; Wed, 28 Feb 2018 13:00:06 -0800 (PST) Received: from localhost.localdomain ([151.33.14.228]) by smtp.gmail.com with ESMTPSA id a14sm2439477wra.27.2018.02.28.13.00.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 13:00:05 -0800 (PST) From: Francesco Giancane To: openembedded-core@lists.openembedded.org Date: Wed, 28 Feb 2018 21:58:43 +0100 Message-Id: <20180228205843.3146-1-francescogiancane8@gmail.com> X-Mailer: git-send-email 2.14.3 Subject: [meta-oe][PATCH v2] libepoxy: New recipe updated to latest release X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 21:00:07 -0000 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. Signed-off-by: Francesco Giancane --- ...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} | 9 +++--- 3 files changed, 18 insertions(+), 50 deletions(-) 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} (66%) diff --git 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 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 @@ -1,36 +1,38 @@ -From 7bcefd311cd696955376fe2c5298ec85e8f954ce Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Wed, 15 Nov 2017 12:48:27 +0200 +From 9c964427656ef71210e2c5b48b279857806574e9 Mon Sep 17 00:00:00 2001 +From: Francesco Giancane +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 +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 +Signed-off-by: Francesco Giancane --- 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 diff --git a/meta/recipes-graphics/libepoxy/libepoxy/Add-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 @@ -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 - -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(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 diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb similarity index 66% rename from meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb rename to meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb index 72167a2fb8..dfdd19248d 100644 --- a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +++ b/meta/recipes-graphics/libepoxy/libepoxy_1.5.0.bb @@ -6,11 +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 \ " -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 @@ -19,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