Fix implicit function definition warning
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
a08adbff22
commit
11558c84eb
28
0001-Fix-compile-error-with-future-versions-of-gcc.patch
Normal file
28
0001-Fix-compile-error-with-future-versions-of-gcc.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 989901ef95e344b49e78238c89c59bd80951b876 Mon Sep 17 00:00:00 2001
|
||||
From: Tom Stellard <tstellar@redhat.com>
|
||||
Date: Wed, 1 Feb 2023 06:38:40 +0000
|
||||
Subject: [PATCH] Fix compile error with future versions of gcc
|
||||
|
||||
/builddir/build/BUILD/openscap-1.3.6/src/OVAL/probes/unix/linux/rpminfo_probe.c: In function 'rpminfo_probe_fini':
|
||||
/builddir/build/BUILD/openscap-1.3.6/src/OVAL/probes/unix/linux/rpminfo_probe.c:307:9: error: implicit declaration of function 'rpmFreeCrypto'
|
||||
307 | rpmFreeCrypto();
|
||||
| ^~~~~~~~~~~~~
|
||||
---
|
||||
src/OVAL/probes/unix/linux/rpm-helper.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/OVAL/probes/unix/linux/rpm-helper.h b/src/OVAL/probes/unix/linux/rpm-helper.h
|
||||
index eca9cde04..6f7cb71d7 100644
|
||||
--- a/src/OVAL/probes/unix/linux/rpm-helper.h
|
||||
+++ b/src/OVAL/probes/unix/linux/rpm-helper.h
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <rpm/rpmts.h>
|
||||
#include <rpm/rpmmacro.h>
|
||||
#include <rpm/rpmlog.h>
|
||||
+#include <rpm/rpmcrypto.h>
|
||||
#include <rpm/header.h>
|
||||
|
||||
#include <pthread.h>
|
||||
--
|
||||
2.35.3
|
||||
|
@ -1,12 +1,13 @@
|
||||
Name: openscap
|
||||
Version: 1.3.7
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
||||
License: LGPLv2+
|
||||
URL: http://www.open-scap.org/
|
||||
VCS: https://github.com/OpenSCAP/openscap
|
||||
Source0: https://github.com/OpenSCAP/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-Fix-compile-error-with-future-versions-of-gcc.patch
|
||||
BuildRequires: make
|
||||
BuildRequires: cmake >= 2.6
|
||||
BuildRequires: gcc
|
||||
@ -214,6 +215,9 @@ ln -sf ../oscap-remediate.service %{buildroot}%{_unitdir}/system-update.target.w
|
||||
%{_mandir}/man8/oscap-podman.8*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 01 2023 Tom Stellard <tstellar@redhat.com> - 1:1.3.7-2
|
||||
- Fix implicit function definition warning
|
||||
|
||||
* Thu Jan 26 2023 Jan Černý <jcerny@redhat.com> - 1:1.3.7-1
|
||||
- Upgrade to the latest upstream release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user