From 757d4f4e1dab0d97e0e7aa2624483c20f1069d24e2fdb485254716a0a3606015 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 21 Aug 2017 05:39:17 +0000 Subject: [PATCH] Accepting request 517517 from home:dimstar:Factory include sys/uio.h for writev, fixes build failure in Staging:C https://build.opensuse.org/build/openSUSE:Factory:Staging:C:DVD/standard/x86_64/audit-secondary/_log OBS-URL: https://build.opensuse.org/request/show/517517 OBS-URL: https://build.opensuse.org/package/show/security/audit?expand=0&rev=89 --- audit-implicit-writev.patch | 24 ++++++++++++++++++++++++ audit-secondary.changes | 6 ++++++ audit-secondary.spec | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 audit-implicit-writev.patch diff --git a/audit-implicit-writev.patch b/audit-implicit-writev.patch new file mode 100644 index 0000000..d545e41 --- /dev/null +++ b/audit-implicit-writev.patch @@ -0,0 +1,24 @@ +Index: audit-2.7.7/audisp/audispd.c +=================================================================== +--- audit-2.7.7.orig/audisp/audispd.c ++++ audit-2.7.7/audisp/audispd.c +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include // for writev() and readv() + #include + #include + #include +Index: audit-2.7.7/audisp/audispd-builtins.c +=================================================================== +--- audit-2.7.7.orig/audisp/audispd-builtins.c ++++ audit-2.7.7/audisp/audispd-builtins.c +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include // for writev() + #include + #include "audispd-pconfig.h" + #include "audispd-builtins.h" diff --git a/audit-secondary.changes b/audit-secondary.changes index 6ab91b7..5897e7c 100644 --- a/audit-secondary.changes +++ b/audit-secondary.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 18 08:50:02 UTC 2017 - dimstar@opensuse.org + +- Add audit-implicit-writev.patch: include sys/uio.h to ensure + readv and writev are declared. + ------------------------------------------------------------------- Mon Jul 24 13:59:06 UTC 2017 - jengelh@inai.de diff --git a/audit-secondary.spec b/audit-secondary.spec index 9c8e84f..b1174f7 100644 --- a/audit-secondary.spec +++ b/audit-secondary.spec @@ -31,6 +31,7 @@ Patch1: audit-plugins-path.patch Patch2: audit-no-gss.patch Patch3: audit-allow-manual-stop.patch Patch4: audit-ausearch-do-not-require-tclass.patch +Patch5: audit-implicit-writev.patch BuildRequires: audit-devel = %{version} BuildRequires: autoconf >= 2.12 BuildRequires: gcc-c++ @@ -102,6 +103,7 @@ rm -rf audisp/plugins/prelude %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build autoreconf -fi