Reolves: rhbz#1843417

Cannot compile code with pk11pub.h (an nss header) with -Werror=strict-prototypes
This commit is contained in:
Bob Relyea 2020-06-04 17:03:01 -07:00
parent 9699d7efc7
commit 965c121198
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up ./nss/lib/pk11wrap/pk11pub.h.strict_proto_fix ./nss/lib/pk11wrap/pk11pub.h
--- ./nss/lib/pk11wrap/pk11pub.h.strict_proto_fix 2020-06-04 16:48:54.721954514 -0700
+++ ./nss/lib/pk11wrap/pk11pub.h 2020-06-04 16:49:17.074066050 -0700
@@ -948,7 +948,7 @@ PRBool SECMOD_HasRootCerts(void);
* the system state independent of the database state and can be called
* before NSS initializes.
*/
-int SECMOD_GetSystemFIPSEnabled();
+int SECMOD_GetSystemFIPSEnabled(void);
SEC_END_PROTOS

View File

@ -44,7 +44,7 @@ rpm.define(string.format("nss_release_tag NSS_%s_RTM",
Summary: Network Security Services
Name: nss
Version: %{nss_version}
Release: 1%{?dist}
Release: 2%{?dist}
License: MPLv2.0
URL: http://www.mozilla.org/projects/security/pki/nss/
Requires: nspr >= %{nspr_version}
@ -112,6 +112,8 @@ Patch12: nss-signtool-format.patch
Patch20: nss-gcm-param-default-pkcs11v2.patch
%endif
%endif
# Upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=1643528
Patch30: nss-3.53-strict-proto-fix.patch
%description
Network Security Services (NSS) is a set of libraries designed to
@ -888,6 +890,9 @@ update-crypto-policies &> /dev/null || :
%changelog
* Thu Jun 4 2020 Bob Relyea <rrelyea@redhat.com> - 3.53.0-2
- Fix non-strict prototype in pk11pub.h
* Mon Jun 1 2020 Daiki Ueno <dueno@redhat.com> - 3.53.0-1
- Update to NSS 3.53