From 5fadec5c0e1288ad7a20c3fd547b60d4d113e47e Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Sun, 19 Apr 2020 16:59:00 +0300 Subject: [PATCH] nss: update to 3.51.1 also refresh patches Signed-off-by: Lucian Cristian --- libs/nss/Makefile | 4 ++-- libs/nss/patches/001-nss_standalone.patch | 5 ++++- libs/nss/patches/003-openwrt_fix.patch | 21 ++++++--------------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/libs/nss/Makefile b/libs/nss/Makefile index c4293e572..a38c5cf97 100644 --- a/libs/nss/Makefile +++ b/libs/nss/Makefile @@ -7,14 +7,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nss -PKG_VERSION:=3.51 +PKG_VERSION:=3.51.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ https://download.cdn.mozilla.net/pub/security/$(PKG_NAME)/releases/NSS_$(subst .,_,$(PKG_VERSION))_RTM/src \ https://archive.mozilla.org/pub/security/$(PKG_NAME)/releases/NSS_$(subst .,_,$(PKG_VERSION))_RTM/src -PKG_HASH:=75348b3b3229362486c57a880db917da1f96ef4eb639dc9cc2ff17d72268459c +PKG_HASH:=085c5eaceef040eddea639e2e068e70f0e368f840327a678ef74ae3d6c15ca78 PKG_MAINTAINER:=Lucian Cristian PKG_LICENCE:=MPL-2.0 diff --git a/libs/nss/patches/001-nss_standalone.patch b/libs/nss/patches/001-nss_standalone.patch index a2b2196aa..26bf89743 100644 --- a/libs/nss/patches/001-nss_standalone.patch +++ b/libs/nss/patches/001-nss_standalone.patch @@ -6,6 +6,9 @@ Origin: Self, rediffed for nss-3.28. Description: Adds auto-generated nss.pc and nss-config script, and allows building without nspr in the source tree. For 3.40.1, Requires: updated to nspr >= 4.20. + For 3.46.1, Requires: updated to nspr >= 4.21. + For 3.48, Requires: updated to nspr >= 4.24. + For 3.51.1, Requires: updated to nspr >= 4.25. diff -Naurp nss-3.28-orig/nss/Makefile nss-3.28/nss/Makefile --- nss-3.28-orig/nss/Makefile 2016-12-21 05:56:27.000000000 -0600 @@ -232,7 +235,7 @@ diff -Naurp nss-3.28-orig/nss/config/nss.pc.in nss-3.28/nss/config/nss.pc.in +Name: NSS +Description: Network Security Services +Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@ -+Requires: nspr >= 4.20 ++Requires: nspr >= 4.25 +Libs: -L@libdir@ -lnss@NSS_MAJOR_VERSION@ -lnssutil@NSS_MAJOR_VERSION@ -lsmime@NSS_MAJOR_VERSION@ -lssl@NSS_MAJOR_VERSION@ -lsoftokn@NSS_MAJOR_VERSION@ +Cflags: -I${includedir} + diff --git a/libs/nss/patches/003-openwrt_fix.patch b/libs/nss/patches/003-openwrt_fix.patch index c765521f4..747860f52 100644 --- a/libs/nss/patches/003-openwrt_fix.patch +++ b/libs/nss/patches/003-openwrt_fix.patch @@ -33,15 +33,17 @@ ifeq (,$(filter-out WIN%,$(OS_TARGET))) --- a/nss/coreconf/Linux.mk 2019-04-01 10:08:59.129269177 +0300 +++ b/nss/coreconf/Linux.mk 2019-04-01 10:09:15.557782574 +0300 -@@ -143,6 +143,7 @@ +@@ -144,7 +144,8 @@ DEFINES += -D_REENTRANT endif +ifndef USE_NATIVE - DSO_CFLAGS = -fPIC +-DSO_CFLAGS = -fPIC ++DSO_CFLAGS = $(fpic) DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--gc-sections # The linker on Red Hat Linux 7.2 and RHEL 2.1 (GNU ld version 2.11.90.0.8) -@@ -153,6 +154,7 @@ + # incorrectly reports undefined references in the libraries we link with, so +@@ -154,6 +155,7 @@ ZDEFS_FLAG = -Wl,-z,defs DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG)) LDFLAGS += $(ARCHFLAG) -z noexecstack @@ -49,20 +51,9 @@ # On Maemo, we need to use the -rpath-link flag for even the standard system # library directories. ---- a/nss/coreconf/Linux.mk 2019-04-01 23:10:19.091912203 +0300 -+++ b/nss/coreconf/Linux.mk 2019-04-06 14:07:13.499169075 +0300 -@@ -144,7 +144,7 @@ - endif - - ifndef USE_NATIVE --DSO_CFLAGS = -fPIC -+DSO_CFLAGS = $(fpic) - DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--gc-sections - # The linker on Red Hat Linux 7.2 and RHEL 2.1 (GNU ld version 2.11.90.0.8) - # incorrectly reports undefined references in the libraries we link with, so --- a/nss/coreconf/Linux.mk 2019-04-06 20:25:36.431663894 +0300 +++ b/nss/coreconf/Linux.mk 2019-04-06 20:26:23.397129525 +0300 -@@ -107,11 +107,6 @@ +@@ -108,11 +108,6 @@ endif ifdef BUILD_OPT