diff --git a/builderror-k316.diff b/builderror-k316.diff new file mode 100644 index 0000000..e34d374 --- /dev/null +++ b/builderror-k316.diff @@ -0,0 +1,28 @@ +From: Jan Engelhardt +Date: 2016-02-24 13:51:09.385315514 +0100 + +Fix a build error when your /usr/include/linux/seccomp.h exists, +but is "old enough". (Like openSUSE 13.2 / linux-glibc-devel 3.16). + +--- + src/system.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +Index: libseccomp/src/system.h +=================================================================== +--- libseccomp.orig/src/system.h ++++ libseccomp/src/system.h +@@ -37,6 +37,13 @@ struct db_filter_col; + /* system header file */ + #include + ++#ifndef SECCOMP_SET_MODE_STRICT ++# define SECCOMP_SET_MODE_STRICT 0 ++#endif ++#ifndef SECCOMP_SET_MODE_FILTER ++# define SECCOMP_SET_MODE_FILTER 1 ++#endif ++ + #else + + /* NOTE: the definitions below were taken from the Linux Kernel sources */ diff --git a/libseccomp.changes b/libseccomp.changes index 3f1931c..83bdee4 100644 --- a/libseccomp.changes +++ b/libseccomp.changes @@ -6,6 +6,7 @@ Wed Feb 24 10:11:26 UTC 2016 - jengelh@inai.de "multiplexed and direct socket syscalls" - Drop libseccomp-s390x-support.patch, libseccomp-ppc64le.patch (no longer apply - merged upstream) +- Add builderror-k316.diff ------------------------------------------------------------------- Fri Sep 25 12:14:37 UTC 2015 - dimstar@opensuse.org diff --git a/libseccomp.spec b/libseccomp.spec index 08b0861..a8f8f67 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -30,6 +30,7 @@ Source: %name-%version.tar.xz #Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/%name-%version.tar.gz.SHA256SUM.asc Source99: baselibs.conf Patch1: no-static.diff +Patch2: builderror-k316.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake >= 1.11 @@ -98,7 +99,7 @@ This subpackage contains debug utilities for the seccomp interface. %prep %setup -q -%patch -P 1 -p1 +%patch -P 1 -P 2 -p1 %build perl -i -pe 's{AC_INIT\(\[libseccomp\], \[0\.0\.0\]\)}{AC_INIT([libseccomp], [2.2.90])}' configure.ac