From 9e1669780b99d93dbcff123dafd38fcd703df06bce37a9fe37a5173f16a8d4ee Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 3 Aug 2017 08:16:09 +0000 Subject: [PATCH] Accepting request 513170 from home:Andreas_Schwab:glibc:rebuild - readv-proto.patch: include for readv prototype OBS-URL: https://build.opensuse.org/request/show/513170 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=90 --- libselinux-bindings.changes | 5 +++++ libselinux-bindings.spec | 3 +++ libselinux.changes | 6 +++++- libselinux.spec | 4 ++++ readv-proto.patch | 12 ++++++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 readv-proto.patch diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index ff07546..6c0226a 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 5 10:30:57 UTC 2017 - schwab@suse.de + +- readv-proto.patch: include for readv prototype + ------------------------------------------------------------------- Sun Jul 17 15:30:05 UTC 2016 - jengelh@inai.de diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index 0cbc371..fc96fc2 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -33,6 +33,8 @@ Source2: baselibs.conf Patch1: libselinux-2.2-ruby.patch # PATCH-FIX-UPSTREAM swig-3.10 use importlib which not search the directory __init__.py is in but standard path Patch2: python-selinux-swig-3.10.patch +# PATCH-FIX-UPSTREAM Include for readv prototype +Patch4: readv-proto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: pcre-devel @@ -76,6 +78,7 @@ language. %setup -q -n libselinux-%{version} %patch1 %patch2 -p1 +%patch4 -p1 %build make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src diff --git a/libselinux.changes b/libselinux.changes index 04d8e8f..764c089 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,9 +1,13 @@ +------------------------------------------------------------------- +Wed Jul 5 10:30:57 UTC 2017 - schwab@suse.de + +- readv-proto.patch: include for readv prototype + ------------------------------------------------------------------- Sun Jul 24 19:33:42 UTC 2016 - crrodriguez@opensuse.org - -devel static subpackage requires libpcre-devel and libsepol-devel - ------------------------------------------------------------------- Sun Jul 24 19:05:35 UTC 2016 - crrodriguez@opensuse.org diff --git a/libselinux.spec b/libselinux.spec index 5a7ab25..a7049f4 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -34,6 +34,8 @@ Patch1: %{name}-2.2-ruby.patch Patch2: python-selinux-swig-3.10.patch # PATCH-FIX-UPSTREAM Avoid mounting /proc outside of selinux_init_load_policy(). Patch3: libselinux-proc-mount-only-if-needed.patch +# PATCH-FIX-UPSTREAM Include for readv prototype +Patch4: readv-proto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: libsepol-devel >= %{libsepol_ver} @@ -103,6 +105,8 @@ necessary to develop your own software using libselinux. %patch1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 + %build make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS" diff --git a/readv-proto.patch b/readv-proto.patch new file mode 100644 index 0000000..795c9b2 --- /dev/null +++ b/readv-proto.patch @@ -0,0 +1,12 @@ +Index: libselinux-2.5/src/setrans_client.c +=================================================================== +--- libselinux-2.5.orig/src/setrans_client.c ++++ libselinux-2.5/src/setrans_client.c +@@ -9,6 +9,7 @@ + #include + #include + #include ++#include + + #include + #include