summaryrefslogtreecommitdiff
path: root/packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-28 12:53:13 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-28 12:53:13 +0300
commit08b57aa38a665e7a4b88c709246cada7b4a28711 (patch)
tree16c4b4d6ec0f9aeccb60efa977d7c24580d8bce7 /packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch
parent3973c33e411b911fa06a560f7fa67877ae98ef44 (diff)
added slightly edited mesa from x11 repo
Diffstat (limited to 'packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch')
-rw-r--r--packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch b/packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch
new file mode 100644
index 0000000..bce9bf7
--- /dev/null
+++ b/packages/x11-dri/mesa/files/mesa-configure.ac-Add-with-wayland-scanner-path-17.2.patch
@@ -0,0 +1,40 @@
+Source: See below, slightly modified for 17.2.0
+Upstream: under review, https://patchwork.freedesktop.org/patch/157889/
+Reason: Fix cross compiling
+
+diff --git a/configure.ac b/configure.ac
+index 0bd9650..c5dc8da 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1696,12 +1696,18 @@ if test "x$with_platforms" = xauto; then
+ with_platforms=$with_egl_platforms
+ fi
+
+-PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
++AC_ARG_WITH([wayland-scanner-path],
++ [AS_HELP_STRING([--with-wayland-scanner-path=PATH],
++ [Path to wayland-scanner (by default the path from
++ 'pkg-config --variable=wayland_scanner wayland-scanner' is used)])],
++ [WAYLAND_SCANNER="$withval"],
++ [WAYLAND_SCANNER="auto"])
++if test x$WAYLAND_SCANNER = xauto; then
++ PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
+ WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
+- WAYLAND_SCANNER='')
+-if test "x$WAYLAND_SCANNER" = x; then
+- AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
++ WAYLAND_SCANNER=":")
+ fi
++AC_SUBST(WAYLAND_SCANNER)
+
+ PKG_CHECK_EXISTS([wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED], [have_wayland_protocols=yes], [have_wayland_protocols=no])
+ if test "x$have_wayland_protocols" = xyes; then
+@@ -1718,7 +1724,7 @@ for plat in $platforms; do
+ PKG_CHECK_MODULES([WAYLAND], [wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED])
+
+ if test "x$WAYLAND_SCANNER" = "x:"; then
+- AC_MSG_ERROR([wayland-scanner is needed to compile the wayland platform])
++ AC_MSG_ERROR([wayland-scanner is needed by Wayland platform but it could not be found and --with-wayland-scanner-path was not used])
+ fi
+ if test "x$have_wayland_protocols" = xno; then
+ AC_MSG_ERROR([wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED is needed to compile the wayland platform])