- Add builderror-k316.diff
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=41
This commit is contained in:
parent
cf4226a89a
commit
e65e8732d4
28
builderror-k316.diff
Normal file
28
builderror-k316.diff
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
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 <linux/seccomp.h>
|
||||||
|
|
||||||
|
+#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 */
|
@ -6,6 +6,7 @@ Wed Feb 24 10:11:26 UTC 2016 - jengelh@inai.de
|
|||||||
"multiplexed and direct socket syscalls"
|
"multiplexed and direct socket syscalls"
|
||||||
- Drop libseccomp-s390x-support.patch, libseccomp-ppc64le.patch
|
- Drop libseccomp-s390x-support.patch, libseccomp-ppc64le.patch
|
||||||
(no longer apply - merged upstream)
|
(no longer apply - merged upstream)
|
||||||
|
- Add builderror-k316.diff
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 25 12:14:37 UTC 2015 - dimstar@opensuse.org
|
Fri Sep 25 12:14:37 UTC 2015 - dimstar@opensuse.org
|
||||||
|
@ -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
|
#Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/%name-%version.tar.gz.SHA256SUM.asc
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Patch1: no-static.diff
|
Patch1: no-static.diff
|
||||||
|
Patch2: builderror-k316.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake >= 1.11
|
BuildRequires: automake >= 1.11
|
||||||
@ -98,7 +99,7 @@ This subpackage contains debug utilities for the seccomp interface.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 1 -p1
|
%patch -P 1 -P 2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl -i -pe 's{AC_INIT\(\[libseccomp\], \[0\.0\.0\]\)}{AC_INIT([libseccomp], [2.2.90])}' configure.ac
|
perl -i -pe 's{AC_INIT\(\[libseccomp\], \[0\.0\.0\]\)}{AC_INIT([libseccomp], [2.2.90])}' configure.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user