From patchwork Mon Aug 14 17:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Perez de Castro X-Patchwork-Id: 801280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="cmk8cK2l"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xWMsM0PGZz9t31 for ; Tue, 15 Aug 2017 03:23:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 061C588C1E; Mon, 14 Aug 2017 17:23:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OqtsUSpchmSr; Mon, 14 Aug 2017 17:23:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 335678891A; Mon, 14 Aug 2017 17:23:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2A5B21BFC55 for ; Mon, 14 Aug 2017 17:23:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2486F86D02 for ; Mon, 14 Aug 2017 17:23:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IyBHDK-8zsxG for ; Mon, 14 Aug 2017 17:23:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fanzine.igalia.com (fanzine.igalia.com [91.117.99.155]) by fraxinus.osuosl.org (Postfix) with ESMTPS id B239286D01 for ; Mon, 14 Aug 2017 17:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Message-Id:Date:Subject:Cc:To:From; bh=A9F5YiIItvKgM9DedeUXwJc2ZOa48rXdZk6+5woYjac=; b=cmk8cK2lht1ShiP3I43F/ra+GUkTEZcpA7FFyWuCuoNRKDeviQIZs6vO61OYqJa/8TZXZCAs5rNmgACu1cuUkFGXlEfmdMnyHdInpzdCkVDNoVjjBcrppKgaBIQKGxyR4fWMflDbMA5+sAMCVnqwRuJhclQGeQZ2d9Urga+0j/4odEI5igLOtgXfkqtEmAPAkNQ0s8Vc9NRZwu1X8zEdSzcMadMqqKJl95XyU/Jx6w9qBxohXTvSrH13mcflnvgxW2VEQaprAbfSsyHJCUEnUQzXfYbgzDMFe20iCrG5mMtdkXzm1DIpNpfS5IA3U0Dtx62fg8tcSsi6alBWS6X5OQ==; Received: from 82-181-186-227.bb.dnainternet.fi ([82.181.186.227] helo=momiji) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1dhJ5P-0001xm-61; Mon, 14 Aug 2017 19:23:31 +0200 Received: from localhost (momiji [local]) by momiji (OpenSMTPD) with ESMTPA id b82b86a2; Mon, 14 Aug 2017 17:23:20 +0000 (UTC) From: Adrian Perez de Castro To: buildroot@buildroot.org Date: Mon, 14 Aug 2017 20:23:20 +0300 Message-Id: <20170814172320.16984-1-aperez@igalia.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH 1/1] libepoxy: bump to version 1.4.3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Among other small fixes, the new version fixes crashes when running in X11 without GLX (i.e. using EGL). Additionally, the changes from patch "0002-Make-EGL-support-optional.patch" were committed upstream, and the file can be dropped. Signed-off-by: Adrian Perez de Castro --- .../libepoxy/0002-Make-EGL-support-optional.patch | 200 --------------------- package/libepoxy/libepoxy.hash | 4 +- package/libepoxy/libepoxy.mk | 4 +- 3 files changed, 3 insertions(+), 205 deletions(-) delete mode 100644 package/libepoxy/0002-Make-EGL-support-optional.patch diff --git a/package/libepoxy/0002-Make-EGL-support-optional.patch b/package/libepoxy/0002-Make-EGL-support-optional.patch deleted file mode 100644 index b114bb268c..0000000000 --- a/package/libepoxy/0002-Make-EGL-support-optional.patch +++ /dev/null @@ -1,200 +0,0 @@ -From 0511fc56e7017209ad18d16551ccaad05de9486c Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni -Date: Mon, 8 May 2017 23:12:49 +0200 -Subject: [PATCH] Make EGL support optional - -It is perfectly possible to build Mesa3D with just OpenGL support, and -use with GLX in X.org, without having EGL/OpenGLES support. - -However, libepoxy currently unconditionally requires EGL support in its -configure.ac, which causes a build failure when Mesa3D only provides -full OpenGL support: - -checking for EGL... no -configure: error: Package requirements (egl) were not met: - -Package egl was not found in the pkg-config search path. -Perhaps you should add the directory containing `egl.pc' -to the PKG_CONFIG_PATH environment variable -Package 'egl', required by 'world', not found - -This commit fixes that by: - - - Adjusting the configure.ac to add a --{enable,disable}-egl option - handled in the exact same way as --{enable,disable}-glx - - - Adjusting the meson build logic in the same way. - - - Adjusting src/dispatch_common.h to define PLATFORM_HAS_EGL correctly, - which allows to not include any EGL related header file if EGL - support is not enabled. - -Submitted-upstream: https://github.com/anholt/libepoxy/pull/123 -Signed-off-by: Thomas Petazzoni ---- - configure.ac | 33 ++++++++++++++++++++++++++++----- - meson.build | 21 ++++++++++++++++++--- - meson_options.txt | 5 +++++ - src/dispatch_common.h | 8 ++++---- - 4 files changed, 55 insertions(+), 12 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 31b0985..2dbecd9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -88,11 +88,35 @@ AS_CASE([$enable_glx], - [AC_MSG_ERROR([Invalid value "$enable_glx" for option "--enable-glx"])] - ]) - --# The remaining platform specific API for GL/GLES are enabled --# depending on the platform we're building for -+AC_ARG_ENABLE([egl], -+ [AC_HELP_STRING([--enable-egl=@<:@auto,yes,no@:>@], [Enable EGL support @<:@default=auto@:>@])], -+ [enable_egl=$enableval], -+ [enable_egl=auto]) -+ -+AS_CASE([$enable_egl], -+ [auto], [ -+ AS_CASE([$host_os], -+ [mingw*], [build_egl=no], -+ [darwin*], [build_egl=no], -+ [android*], [build_egl=no], -+ [build_egl=yes]) -+ ], -+ -+ [yes], [ -+ build_egl=yes -+ ], -+ -+ [no], [ -+ build_egl=no -+ ], -+ -+ [AC_MSG_ERROR([Invalid value "$enable_egl" for option "--enable-egl"])] -+]) -+ -+# The remaining platform specific API are enabled depending on the -+# platform we're building for - AS_CASE([$host_os], - [mingw*], [ -- build_egl=no - build_wgl=yes - has_znow=yes - # On windows, the DLL has to have all of its functions -@@ -108,7 +132,6 @@ AS_CASE([$host_os], - ], - - [darwin*], [ -- build_egl=no - build_wgl=no - build_apple=yes - has_znow=no -@@ -116,7 +139,6 @@ AS_CASE([$host_os], - ], - - [ -- build_egl=yes - build_wgl=no - has_znow=yes - # On platforms with dlopen, we load everything dynamically and -@@ -131,6 +153,7 @@ AM_CONDITIONAL(BUILD_EGL, test x$build_egl = xyes) - if test x$build_egl = xyes; then - PKG_CHECK_MODULES(EGL, [egl]) - AC_DEFINE([BUILD_EGL], [1], [build EGL tests]) -+ AC_DEFINE(ENABLE_EGL, [1], [Whether EGL support is enabled]) - fi - - AM_CONDITIONAL(BUILD_GLX, test x$build_glx = xyes) -diff --git a/meson.build b/meson.build -index 5435f45..226152e 100644 ---- a/meson.build -+++ b/meson.build -@@ -51,26 +51,41 @@ elif enable_glx == 'no' - build_glx = false - endif - -+enable_egl = get_option('enable-egl') -+if enable_egl == 'auto' -+ if host_system == 'windows' -+ build_egl = false -+ elif host_system == 'darwin' -+ build_egl = false -+ elif host_system == 'android' -+ build_egl = false -+ else -+ build_egl = true -+ endif -+elif enable_egl == 'yes' -+ build_egl = true -+elif enable_egl == 'no' -+ build_egl = false -+endif -+ - # The remaining platform specific API for GL/GLES are enabled - # depending on the platform we're building for - if host_system == 'windows' -- build_egl = false - build_apple = false - build_wgl = true - has_znow = true - elif host_system == 'darwin' -- build_egl = false - build_apple = true - build_wgl = false - has_znow = false - else -- build_egl = true - build_apple = false - build_wgl = false - has_znow = true - endif - - conf.set10('ENABLE_GLX', build_glx) -+conf.set10('ENABLE_EGL', build_egl) - - # Compiler flags, taken from the Xorg macros - if cc.get_id() == 'msvc' -diff --git a/meson_options.txt b/meson_options.txt -index 18932f5..244476a 100644 ---- a/meson_options.txt -+++ b/meson_options.txt -@@ -6,3 +6,8 @@ option('enable-glx', - choices: [ 'auto', 'yes', 'no' ], - value: 'auto', - description: 'Enable GLX support') -+option('enable-egl', -+ type: 'combo', -+ choices: [ 'auto', 'yes', 'no' ], -+ value: 'auto', -+ description: 'Enable EGL support') -diff --git a/src/dispatch_common.h b/src/dispatch_common.h -index e3277f7..e16771f 100644 ---- a/src/dispatch_common.h -+++ b/src/dispatch_common.h -@@ -24,19 +24,19 @@ - #include "config.h" - - #ifdef _WIN32 --#define PLATFORM_HAS_EGL 0 -+#define PLATFORM_HAS_EGL ENABLE_EGL - #define PLATFORM_HAS_GLX ENABLE_GLX - #define PLATFORM_HAS_WGL 1 - #elif defined(__APPLE__) --#define PLATFORM_HAS_EGL 0 -+#define PLATFORM_HAS_EGL ENABLE_EGL - #define PLATFORM_HAS_GLX ENABLE_GLX - #define PLATFORM_HAS_WGL 0 - #elif defined(ANDROID) --#define PLATFORM_HAS_EGL 1 -+#define PLATFORM_HAS_EGL ENABLE_EGL - #define PLATFORM_HAS_GLX 0 - #define PLATFORM_HAS_WGL 0 - #else --#define PLATFORM_HAS_EGL 1 -+#define PLATFORM_HAS_EGL ENABLE_EGL - #define PLATFORM_HAS_GLX ENABLE_GLX - #define PLATFORM_HAS_WGL 0 - #endif --- -2.7.4 - diff --git a/package/libepoxy/libepoxy.hash b/package/libepoxy/libepoxy.hash index 7d2ade8baf..d7ebec5b5f 100644 --- a/package/libepoxy/libepoxy.hash +++ b/package/libepoxy/libepoxy.hash @@ -1,2 +1,2 @@ -# From ftp://ftp.gnome.org/pub/gnome/sources/libepoxy/1.4/libepoxy-1.4.1.sha256sum -sha256 88c6abf5522fc29bab7d6c555fd51a855cbd9253c4315f8ea44e832baef21aa6 libepoxy-1.4.1.tar.xz +# From ftp://ftp.gnome.org/pub/GNOME/sources/libepoxy/1.4/libepoxy-1.4.3.sha256sum +sha256 0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6 libepoxy-1.4.3.tar.xz diff --git a/package/libepoxy/libepoxy.mk b/package/libepoxy/libepoxy.mk index e72743df39..366cc11367 100644 --- a/package/libepoxy/libepoxy.mk +++ b/package/libepoxy/libepoxy.mk @@ -5,15 +5,13 @@ ################################################################################ LIBEPOXY_VERSION_MAJOR = 1.4 -LIBEPOXY_VERSION = $(LIBEPOXY_VERSION_MAJOR).1 +LIBEPOXY_VERSION = $(LIBEPOXY_VERSION_MAJOR).3 LIBEPOXY_SITE = http://ftp.gnome.org/pub/gnome/sources/libepoxy/$(LIBEPOXY_VERSION_MAJOR) LIBEPOXY_SOURCE = libepoxy-$(LIBEPOXY_VERSION).tar.xz LIBEPOXY_INSTALL_STAGING = YES LIBEPOXY_DEPENDENCIES = host-pkgconf xutil_util-macros LIBEPOXY_LICENSE = MIT LIBEPOXY_LICENSE_FILES = COPYING -# 0002-Make-EGL-support-optional.patch -LIBEPOXY_AUTORECONF = YES ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y) LIBEPOXY_CONF_OPTS += --enable-egl