From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: buildroot@buildroot.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>,
Joseph Kogut <joseph.kogut@gmail.com>,
Marcin Bis <marcin@bis.org.pl>
Subject: [Buildroot] [PATCH/next 3/4] package/libnss: bump to version 3.134
Date: Mon, 23 Nov 2026 18:46:19 +0100 [thread overview]
Message-ID: <20261123174622.1851843-3-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20261123174622.1851843-1-giulio.benetti@benettiengineering.com>
Since NSS 3.134, with upstream commit [1], libssl uses mozpkix (C++)
to extract the peer certificate's subjectPublicKeyInfo, so the make
based build now always compiles lib/mozpkix and
lib/ssl/mozpkixwrappers.cpp, regardless of NSS_DISABLE_GTESTS. Then,
upstream commit [2] builds that C++ code as C++17.
So:
- pass CCC (the C++ compiler used by NSS coreconf) for both target
and host builds, otherwise it defaults to g++ and the target build
fails linking libssl3.so with "file in wrong format"
- add BR2_INSTALL_LIBSTDCPP and BR2_TOOLCHAIN_GCC_AT_LEAST_7 (C++17)
dependencies and propagate them to ecryptfs-utils, the only C
package selecting libnss (qt5webengine already has them)
- install public headers with cp -rL, since they now include the
mozpkix/ subdirectory, which makes $(INSTALL) -t fail. -L is needed
since dist/public/nss/ entries are relative symlinks to the sources
For release note, see:
https://hg-edge.mozilla.org/projects/nss/file/NSS_3_134_RTM/doc/src/releases/nss_3_134.md
[1]: https://github.com/nss-dev/nss/commit/a51dafa783e5
[2]: https://github.com/nss-dev/nss/commit/cffbcbf846e3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
package/ecryptfs-utils/Config.in | 7 +++++--
package/libnss/Config.in | 7 +++++--
package/libnss/libnss.hash | 4 ++--
package/libnss/libnss.mk | 16 +++++++++-------
4 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/package/ecryptfs-utils/Config.in b/package/ecryptfs-utils/Config.in
index 0c39f48d08..d5672ecfed 100644
--- a/package/ecryptfs-utils/Config.in
+++ b/package/ecryptfs-utils/Config.in
@@ -6,6 +6,8 @@ config BR2_PACKAGE_ECRYPTFS_UTILS
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnspr
depends on !BR2_MIPS_NABI32 # libnss
depends on !BR2_STATIC_LIBS # libnss, keyutils
+ depends on BR2_INSTALL_LIBSTDCPP # libnss
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libnss
select BR2_PACKAGE_KEYUTILS
select BR2_PACKAGE_LIBNSS
# runtime dependency only, some scripts are using the
@@ -28,8 +30,9 @@ config BR2_PACKAGE_ECRYPTFS_UTILS
http://ecryptfs.org
-comment "ecryptfs-utils needs a toolchain w/ threads, wchar, dynamic library"
+comment "ecryptfs-utils needs a toolchain w/ threads, wchar, C++, dynamic library, gcc >= 7"
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
- BR2_STATIC_LIBS
+ BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_7
diff --git a/package/libnss/Config.in b/package/libnss/Config.in
index 2dd0197236..82ae256cec 100644
--- a/package/libnss/Config.in
+++ b/package/libnss/Config.in
@@ -3,6 +3,8 @@ config BR2_PACKAGE_LIBNSS
depends on BR2_TOOLCHAIN_HAS_THREADS # libnspr
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr
depends on !BR2_STATIC_LIBS
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
select BR2_PACKAGE_LIBNSPR
select BR2_PACKAGE_SQLITE
select BR2_PACKAGE_ZLIB
@@ -27,6 +29,7 @@ config BR2_PACKAGE_LIBNSS_ARCH
endif
-comment "libnss needs a toolchain w/ threads, dynamic library"
+comment "libnss needs a toolchain w/ threads, C++, dynamic library, gcc >= 7"
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
- depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_7
diff --git a/package/libnss/libnss.hash b/package/libnss/libnss.hash
index 31a7a98802..8ef25447e0 100644
--- a/package/libnss/libnss.hash
+++ b/package/libnss/libnss.hash
@@ -1,4 +1,4 @@
-# From https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_133_RTM/src/SHA256SUMS
-sha256 4d752526b9846a1d962588cfbd09b7cc2a4f6a4effbd9157d58a30e8a2573065 nss-3.133.tar.gz
+# From https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_134_RTM/src/SHA256SUMS
+sha256 bb3b300b457f44da9a9486917c3b33bbc5935ae3cdf60aa759a6880889439c50 nss-3.134.tar.gz
# Locally calculated
sha256 a20c1a32d1f8102432360b42e932869f7c11c7cdbacf9cac554c422132af47f4 nss/COPYING
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk
index 1a98caf6df..0160b3628d 100644
--- a/package/libnss/libnss.mk
+++ b/package/libnss/libnss.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LIBNSS_VERSION = 3.133
+LIBNSS_VERSION = 3.134
LIBNSS_SOURCE = nss-$(LIBNSS_VERSION).tar.gz
LIBNSS_SITE = https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_$(subst .,_,$(LIBNSS_VERSION))_RTM/src
LIBNSS_DISTDIR = dist
@@ -54,6 +54,7 @@ LIBNSS_BUILD_VARS = \
NSS_DISABLE_GTESTS=1 \
NSS_USE_SYSTEM_SQLITE=1 \
NATIVE_CC="$(HOSTCC)" \
+ CCC="$(TARGET_CXX)" \
OS_ARCH="Linux" \
OS_RELEASE="2.6" \
OS_TEST=$(BR2_PACKAGE_LIBNSS_ARCH) \
@@ -102,8 +103,8 @@ define LIBNSS_INSTALL_STAGING_CMDS
$(INSTALL) -m 755 -t $(STAGING_DIR)/usr/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.so
$(INSTALL) -m 755 -d $(STAGING_DIR)/usr/include/nss
- $(INSTALL) -m 644 -t $(STAGING_DIR)/usr/include/nss \
- $(@D)/$(LIBNSS_DISTDIR)/public/nss/*
+ cp -rL $(@D)/$(LIBNSS_DISTDIR)/public/nss/* \
+ $(STAGING_DIR)/usr/include/nss/
$(INSTALL) -m 755 -t $(STAGING_DIR)/usr/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.a
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \
@@ -116,8 +117,8 @@ define LIBNSS_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.so
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/include/nss
- $(INSTALL) -m 644 -t $(TARGET_DIR)/usr/include/nss \
- $(@D)/$(LIBNSS_DISTDIR)/public/nss/*
+ cp -rL $(@D)/$(LIBNSS_DISTDIR)/public/nss/* \
+ $(TARGET_DIR)/usr/include/nss/
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.a
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \
@@ -135,6 +136,7 @@ HOST_LIBNSS_BUILD_VARS = \
NS_USE_GCC=1 \
NSS_DISABLE_GTESTS=1 \
NSS_USE_SYSTEM_SQLITE=1 \
+ CCC="$(HOSTCXX)" \
SQLITE_INCLUDE_DIR=$(HOST_DIR)/include \
ZLIB_INCLUDE_DIR=$(HOST_DIR)/include \
NSS_ENABLE_WERROR=0 \
@@ -163,8 +165,8 @@ define HOST_LIBNSS_INSTALL_CMDS
$(INSTALL) -m 755 -t $(HOST_DIR)/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.so
$(INSTALL) -m 755 -d $(HOST_DIR)/include/nss
- $(INSTALL) -m 644 -t $(HOST_DIR)/include/nss \
- $(@D)/$(LIBNSS_DISTDIR)/public/nss/*
+ cp -rL $(@D)/$(LIBNSS_DISTDIR)/public/nss/* \
+ $(HOST_DIR)/include/nss/
$(INSTALL) -m 755 -t $(HOST_DIR)/lib/ \
$(@D)/$(LIBNSS_DISTDIR)/lib/*.a
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-11-23 17:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 17:46 [Buildroot] [PATCH/next 1/4] package/harfbuzz: bump to version 15.2.0 Giulio Benetti
2026-11-23 17:46 ` [Buildroot] [PATCH/next 2/4] package/libnspr: bump to version 4.41 Giulio Benetti
2026-11-23 17:46 ` Giulio Benetti [this message]
2026-11-23 17:46 ` [Buildroot] [PATCH/next 4/4] package/nfs-utils: bump to version 3.2.1 Giulio Benetti
2026-11-24 6:12 ` Petr Vorel
2026-11-23 20:41 ` [Buildroot] [PATCH/next 1/4] package/harfbuzz: bump to version 15.2.0 Julien Olivain via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123174622.1851843-3-giulio.benetti@benettiengineering.com \
--to=giulio.benetti@benettiengineering.com \
--cc=buildroot@buildroot.org \
--cc=joseph.kogut@gmail.com \
--cc=marcin@bis.org.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox