SHA256
1
0
forked from pool/openscap
Marcus Meissner 2014-01-10 10:41:10 +00:00 committed by Git OBS Bridge
parent 4ef63de556
commit 78aa0d74d6
2 changed files with 14 additions and 2 deletions

12
fix-return.patch Normal file
View File

@ -0,0 +1,12 @@
Index: openscap-1.0.2/src/OVAL/results/oval_cmp_ip_address.c
===================================================================
--- openscap-1.0.2.orig/src/OVAL/results/oval_cmp_ip_address.c
+++ openscap-1.0.2/src/OVAL/results/oval_cmp_ip_address.c
@@ -58,6 +58,7 @@ static inline int ipaddr_cmp(int af, con
return memcmp(addr1, addr2, sizeof(struct in6_addr));
assert(false);
+ return 42;
}
static inline void ipaddr_mask(int af, const void *ip_addr, uint32_t mask)

View File

@ -31,9 +31,8 @@ Source2: sysconfig.oscap-scan
# Generated from http://gitorious.org/test-suite/scap
Source3: scap-yast2sec-xccdf.xml
Source4: scap-yast2sec-oval.xml
#
#
Patch0: fix-missing-include.dif
Patch1: fix-return.patch
Url: http://www.open-scap.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libacl-devel
@ -149,6 +148,7 @@ commonly used and require additional dependencies.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build