summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-01-29 15:39:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-30 11:50:11 +0000
commitfc56788a3201daf1b1a9f3b96d5501ffe489dcd1 (patch)
treefd134cdfa155403327f0c9c7b219c75e4b7eaa51 /meta/recipes-graphics/xorg-lib
parent2c09f9722a6f44651534770117b91ad0d89c0a43 (diff)
downloadpoky-fc56788a3201daf1b1a9f3b96d5501ffe489dcd1.tar.gz
libxshmfence: fix build with glibc 2.27
With glibc 2.27 memfd_create() is behind a _GNU_SOURCE guard, so use AC_USE_SYSTEM_EXTENSIONS to define it. (From OE-Core rev: 88b3d730021107985ea749c92e52a323690f87dc) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch17
-rw-r--r--meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb2
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch
new file mode 100644
index 0000000000..4cc9e05ab5
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch
@@ -0,0 +1,17 @@
1With glibc 2.27 memfd_create is behind a _GNU_SOURCE guard, so call
2AC_USE_SYSTEM_EXTENSIONS to get that defined.
3
4Upstream-Status: Submitted
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7diff --git a/configure.ac b/configure.ac
8index 0c98875..ebf4dee 100644
9--- a/configure.ac
10+++ b/configure.ac
11@@ -29,4 +29,6 @@ AC_CONFIG_SRCDIR([Makefile.am])
12 AC_CONFIG_HEADERS([config.h])
13
14+AC_USE_SYSTEM_EXTENSIONS
15+
16 # Initialize Automake
17 AM_INIT_AUTOMAKE([foreign dist-bzip2])
diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb b/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb
index ae34b1fe46..1df068d1b0 100644
--- a/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb
+++ b/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb
@@ -13,5 +13,7 @@ DEPENDS += "virtual/libx11"
13 13
14BBCLASSEXTEND = "native nativesdk" 14BBCLASSEXTEND = "native nativesdk"
15 15
16SRC_URI += "file://extensions.patch"
17
16SRC_URI[md5sum] = "66662e76899112c0f99e22f2fc775a7e" 18SRC_URI[md5sum] = "66662e76899112c0f99e22f2fc775a7e"
17SRC_URI[sha256sum] = "d21b2d1fd78c1efbe1f2c16dae1cb23f8fd231dcf891465b8debe636a9054b0c" 19SRC_URI[sha256sum] = "d21b2d1fd78c1efbe1f2c16dae1cb23f8fd231dcf891465b8debe636a9054b0c"