diff --git a/libxshmfence.changes b/libxshmfence.changes index c43dfe1..a9b95dc 100644 --- a/libxshmfence.changes +++ b/libxshmfence.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 7 14:33:29 UTC 2018 - msrb@suse.com + +- Add u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch + * Fixes build with GLIBC 2.27. (bnc#1079830) + ------------------------------------------------------------------- Mon Jan 5 16:44:31 UTC 2015 - sndirsch@suse.com diff --git a/libxshmfence.spec b/libxshmfence.spec index 3eddaa2..2e3311a 100644 --- a/libxshmfence.spec +++ b/libxshmfence.spec @@ -1,7 +1,7 @@ # # spec file for package libxshmfence # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Url: http://xorg.freedesktop.org/ #Git-Web: http://cgit.freedesktop.org/xorg/lib/libxshmfence/ Source: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 Source1: baselibs.conf +Patch1: u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf >= 2.60 @@ -70,6 +71,7 @@ in %name. %prep %setup -q +%patch1 -p1 %build autoreconf -fi diff --git a/u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch b/u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch new file mode 100644 index 0000000..2249e7d --- /dev/null +++ b/u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch @@ -0,0 +1,31 @@ +Git-commit: 0b550a4e7acf02d3478602848f6afbfcbfb0d4b2 +Author: Ross Burton +Subject: configure.ac: call AC_USE_SYSTEM_EXTENSIONS +Signed-off-by: Michal Srb +References: bnc#1079830 +Patch-mainline: Upstream + +With glibc 2.27 memfd_create() is inside a _GNU_SOURCE guard, so call +AC_USE_SYSTEM_EXTENSIONS to get this defined. + +Signed-off-by: Ross Burton +--- + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 55772d0..ed77e6d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -28,6 +28,8 @@ AC_INIT([libxshmfence], [1.2], + AC_CONFIG_SRCDIR([Makefile.am]) + AC_CONFIG_HEADERS([config.h]) + ++AC_USE_SYSTEM_EXTENSIONS ++ + # Initialize Automake + AM_INIT_AUTOMAKE([foreign dist-bzip2]) + +-- +2.13.6 +