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
This commit is contained in:
Marcus Meissner 2017-08-21 05:39:17 +00:00 committed by Git OBS Bridge
parent f336e4b06a
commit 757d4f4e1d
3 changed files with 32 additions and 0 deletions

View File

@ -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 <errno.h>
#include <string.h>
#include <sys/wait.h>
+#include <sys/uio.h> // for writev() and readv()
#include <pthread.h>
#include <dirent.h>
#include <fcntl.h>
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 <unistd.h>
#include <sys/un.h>
#include <sys/stat.h>
+#include <sys/uio.h> // for writev()
#include <fcntl.h>
#include "audispd-pconfig.h"
#include "audispd-builtins.h"

View File

@ -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 Mon Jul 24 13:59:06 UTC 2017 - jengelh@inai.de

View File

@ -31,6 +31,7 @@ Patch1: audit-plugins-path.patch
Patch2: audit-no-gss.patch Patch2: audit-no-gss.patch
Patch3: audit-allow-manual-stop.patch Patch3: audit-allow-manual-stop.patch
Patch4: audit-ausearch-do-not-require-tclass.patch Patch4: audit-ausearch-do-not-require-tclass.patch
Patch5: audit-implicit-writev.patch
BuildRequires: audit-devel = %{version} BuildRequires: audit-devel = %{version}
BuildRequires: autoconf >= 2.12 BuildRequires: autoconf >= 2.12
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -102,6 +103,7 @@ rm -rf audisp/plugins/prelude
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1 %patch4 -p1
%patch5 -p1
%build %build
autoreconf -fi autoreconf -fi