fix implicit declarations due to missing include
This commit is contained in:
parent
abf7f004af
commit
e32f1a1cce
33
openscap-1.3.9-includes.patch
Normal file
33
openscap-1.3.9-includes.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff -ru openscap-1.3.9/src/common/xml_iterate.c openscap-1.3.9.new/src/common/xml_iterate.c
|
||||||
|
--- openscap-1.3.9/src/common/xml_iterate.c 2023-09-06 16:04:46.000000000 +0200
|
||||||
|
+++ openscap-1.3.9.new/src/common/xml_iterate.c 2023-11-27 03:13:21.931933518 +0100
|
||||||
|
@@ -22,6 +22,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
+#include <libxml/parser.h>
|
||||||
|
#include "debug_priv.h"
|
||||||
|
#include "xml_iterate.h"
|
||||||
|
#include "oscap_helpers.h"
|
||||||
|
diff -ru openscap-1.3.9/src/OVAL/results/oval_cmp_evr_string.c openscap-1.3.9.new/src/OVAL/results/oval_cmp_evr_string.c
|
||||||
|
--- openscap-1.3.9/src/OVAL/results/oval_cmp_evr_string.c 2023-09-06 16:04:46.000000000 +0200
|
||||||
|
+++ openscap-1.3.9.new/src/OVAL/results/oval_cmp_evr_string.c 2023-11-27 03:18:23.003882498 +0100
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
#include <math.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
+#include <limits.h>
|
||||||
|
#include "oval_cmp_evr_string_impl.h"
|
||||||
|
#include "oval_definitions.h"
|
||||||
|
#include "oval_types.h"
|
||||||
|
diff -ru openscap-1.3.9/src/source/bz2.c openscap-1.3.9.new/src/source/bz2.c
|
||||||
|
--- openscap-1.3.9/src/source/bz2.c 2023-09-06 16:04:46.000000000 +0200
|
||||||
|
+++ openscap-1.3.9.new/src/source/bz2.c 2023-11-27 03:32:20.069323771 +0100
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <libxml/tree.h>
|
||||||
|
+#include <libxml/parser.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#ifdef OS_WINDOWS
|
@ -19,6 +19,9 @@ Source0: https://github.com/OpenSCAP/%{name}/releases/download/%{version}
|
|||||||
Patch1: openscap-1.3.9-perlpath.patch
|
Patch1: openscap-1.3.9-perlpath.patch
|
||||||
|
|
||||||
|
|
||||||
|
# Implicit declarations due to missing includes
|
||||||
|
Patch2: openscap-1.3.9-includes.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: cmake >= 2.6
|
BuildRequires: cmake >= 2.6
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -168,7 +171,6 @@ Tool for scanning Atomic containers.
|
|||||||
%build
|
%build
|
||||||
# gconf is a legacy system not used any more, and it blocks testing of oscap-anaconda-addon
|
# gconf is a legacy system not used any more, and it blocks testing of oscap-anaconda-addon
|
||||||
# as gconf is no longer part of the installation medium
|
# as gconf is no longer part of the installation medium
|
||||||
export CFLAGS="$CFLAGS -Wno-error=implicit-function-declaration"
|
|
||||||
%cmake \
|
%cmake \
|
||||||
-DWITH_PCRE2=ON \
|
-DWITH_PCRE2=ON \
|
||||||
-DENABLE_PERL=ON \
|
-DENABLE_PERL=ON \
|
||||||
|
Loading…
Reference in New Issue
Block a user