From a06981f6e74f0de46fa28a4ab4282e9ff54e7ce6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:12:54 +0100 Subject: [PATCH] update to 3.22 [release 3.22-1mamba;Fri Feb 19 2016] --- libnss.spec | 15 ++++++++++----- nss-pem-3.22-buildfix.patch | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 nss-pem-3.22-buildfix.patch diff --git a/libnss.spec b/libnss.spec index a78b871..a1d686e 100644 --- a/libnss.spec +++ b/libnss.spec @@ -1,10 +1,10 @@ %define srcver %(echo %version | tr . _) #%define nspr_version %(rpm -q --queryformat '%{VERSION}' libnspr) %define nspr_version %(%{_bindir}/nspr-config --version) -%define with_test 1 +%define with_test 0 %define with_nsspem 1 Name: libnss -Version: 3.20.1 +Version: 3.22 Release: 1mamba Summary: Network Security Services Group: System/Libraries @@ -26,7 +26,8 @@ Source9: setup-nsssysinit.sh # git clone https://git.fedorahosted.org/git/nss-pem.git # tar cjf ../SOURCES/libnss-pem-20140218.tar.bz2 nss-pem/ %if %with_nsspem -Source10: libnss-pem-20140218.tar.bz2 +#Source10: libnss-pem-20140218.tar.bz2 +Source10: https://git.fedorahosted.org/git/nss-pem.git/master/nss-pem-%{version}.tar.bz2 %endif Patch1: libnss-3.12.3-no-rpath.patch Patch2: libnss-3.12.3-nolocalsql.patch @@ -41,6 +42,7 @@ Patch10: libnss-3.15.1-opt_flags.patch Patch11: libnss-3.12.9-ipv6-type-connections-bug539183.patch Patch12: libnss-3.15.4-add-missing-RSA_BlockOAEP.patch Patch13: libnss-3.15.1-lfs-buildfixes.patch +Patch14: nss-pem-3.22-buildfix.patch License: GPL, MPL 1.1, LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -105,8 +107,8 @@ Default Operating System module that manages applications loading NSS globally o %patch3 -p3 %if %with_nsspem tar -xf %{SOURCE10} -mv nss-pem/nss/lib/ckfw/pem/ nss/lib/ckfw/ - +mv nss-pem-%{version}/nss/lib/ckfw/pem/ nss/lib/ckfw/ +%patch14 -p0 %patch4 -p3 #%patch5 -p3 %endif @@ -304,6 +306,9 @@ fi %{_includedir}/nss3/ %changelog +* Fri Feb 19 2016 Silvan Calarco 3.22-1mamba +- update to 3.22 + * Wed Nov 04 2015 Automatic Build System 3.20.1-1mamba - automatic version update by autodist diff --git a/nss-pem-3.22-buildfix.patch b/nss-pem-3.22-buildfix.patch new file mode 100644 index 0000000..f7a8d13 --- /dev/null +++ b/nss-pem-3.22-buildfix.patch @@ -0,0 +1,22 @@ +--- nss/lib/ckfw/pem/pinst.c.orig 2016-02-19 18:32:43.545902319 +0100 ++++ nss/lib/ckfw/pem/pinst.c 2016-02-19 18:32:50.773900029 +0100 +@@ -581,7 +581,7 @@ + + objid = pem_nobjs + 1; + +- nickname = getUniquePEMNicknameFromFilename(certfile, i); ++ nickname = getUniquePEMNicknameFromFilename(certfile, 0); + if (!nickname) { + error = CKR_GENERAL_ERROR; + goto loser; +--- nss/lib/ckfw/pem/pinst.c.orig 2016-02-19 18:54:07.225438587 +0100 ++++ nss/lib/ckfw/pem/pinst.c 2016-02-19 18:54:37.368427084 +0100 +@@ -534,7 +534,7 @@ + AddCertificate(char *certfile, char *keyfile, PRBool cacert, + CK_SLOT_ID slotID) + { +- pemInternalObject *o; ++ pemInternalObject *o = NULL; + CK_RV error = 0; + int objid, i; + int nobjs = 0;