Fix missing #include for gcc-10

This commit is contained in:
Jeff Law 2019-12-14 14:15:23 -07:00
parent 6c26d50f1c
commit 8864003417
2 changed files with 17 additions and 1 deletions

11
softhsm-2.5.0-gcc10.patch Normal file
View File

@ -0,0 +1,11 @@
diff -Nrup a/src/lib/SoftHSM.cpp b/src/lib/SoftHSM.cpp
--- a/src/lib/SoftHSM.cpp 2019-09-23 10:45:59.979484657 -0600
+++ b/src/lib/SoftHSM.cpp 2019-09-23 10:46:46.394199562 -0600
@@ -78,6 +78,7 @@
#include <stdlib.h>
#include <algorithm>
+#include <stdexcept>
// Initialise the one-and-only instance

View File

@ -4,7 +4,7 @@
Summary: Software version of a PKCS#11 Hardware Security Module
Name: softhsm
Version: 2.5.0
Release: %{?prever:0.}4%{?prever:.%{prever}}%{?dist}.1
Release: %{?prever:0.}4%{?prever:.%{prever}}%{?dist}.2
License: BSD
Url: http://www.opendnssec.org/
Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz
@ -18,6 +18,7 @@ Requires: p11-kit
Requires: openssl-libs >= 1.0.1k-6
Patch1: softhsm-2.5.0-updates.patch
Patch2: softhsm-2.5.0-gcc10.patch
%global _hardened_build 1
@ -42,6 +43,7 @@ The devel package contains the libsofthsm include files
%prep
%setup -q -n %{name}-%{version}%{?prever}
%patch1 -p1
%patch2 -p1
%if 0%{?prever:1} || 0%{?prerelease:1}
# pre-release or post-release snapshots fixup
@ -111,6 +113,9 @@ if [ -f /var/softhsm/slot0.db ]; then
fi
%changelog
* Sat Dec 14 2019 Jeff Law <law@redhat.com> - 2.5.0-4.2
- Fix missing #includes for gcc-10
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild