Skip to content

Fix: Build NSS 3.133 for glibc 2.43 runners - #289

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/nss-3.133-glibc-2.43
Nov 12, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/nss-3.133-glibc-2.43

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member

Closes #288

Problem

GitHub's ubuntu-latest runners are now Ubuntu 26.04 (glibc 2.43). In glibc 2.43, strrchr() keeps the const of its argument, so NSS 3.118 no longer builds from source:

../../lib/freebl/genload.c:92:7: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

This breaks make deps-nss, and with it the python-nss-ng leg of the python-workflows test suite, which is blocking lfreleng-actions/python-workflows#183.

Fix

Mozilla fixed this upstream in Bug 2012313. The first release with the fix is NSS 3.121; 3.119 and 3.120 don't contain it. This PR moves the default build to the latest release, NSS 3.133, with NSPR 4.39, the pairing Mozilla ships in nss-3.133-with-nspr-4.39.tar.gz. It adds no compiler-warning suppression and no patches to the NSS sources.

File Change
.github/scripts/install-nss.sh Defaults become 3.133 / 4.39. Adds their SHA256 checksums and drops 3.117 / 4.36, so the script still keeps one previous version of each. File mode unchanged (100755).
Makefile NSS_VERSION / NSPR_VERSION defaults and the help text
doc/MAKEFILE_MIGRATION.md Quoted defaults

Checksums come from Mozilla's published SHA256SUMS:

Statements about minimum or compatible versions ("NSS 3.117+") are unchanged, because they describe what the bindings support, not what CI builds.

Validation

All run locally in an ubuntu:26.04 container (glibc 2.43, arm64):

  • Reproduced the failure: install-nss.sh with NSS 3.118 / NSPR 4.37 stops on freebl3.lowhash_vector.o with the same discarded-qualifiers error as CI.
  • Fixed build: install-nss.sh with the new defaults verifies both checksums, builds and installs. pkg-config reports nss 3.133 and nspr 4.39.
  • Bindings: pip install ".[test]" builds them against NSS 3.133, and nss.nss_get_version() returns 3.133 at runtime.
  • Tests: pytest test -n0 gives 433 passed, 16 skipped.
  • Hooks: prek run passes on all changed files (shellcheck, markdownlint, reuse, codespell, gitlint).
  • AI slop gate: aislop ci --changes scores 100 with no findings.

I didn't test x86_64 locally. This PR's CI covers it.

Follow-up after merge

GitHub's ubuntu-latest runners moved to Ubuntu 26.04, which ships
glibc 2.43. Its strrchr() now preserves the const qualifier of its
argument, so NSS 3.118's lib/freebl/genload.c fails under -Werror
with discarded-qualifiers, and make deps-nss stops.

Mozilla fixed this upstream in Bug 2012313, first released in NSS
3.121. Move the default build to the current release, NSS 3.133, with
NSPR 4.39, the pairing Mozilla ships. Add both SHA256 checksums from
Mozilla's published SHA256SUMS, keeping one prior version of each, as
the script did before. This fixes the source rather than silencing the
warning with compiler flags.

Closes lfreleng-actions#288

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions requested review from a team and a balanced review from Copilot November 12, 2026 21:31
@github-actions github-actions Bot added the bug Something isn't working label Nov 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the NSS/NSPR default-version update.

No open issues 🎉

What changed in this PR

Updates the default NSS/NSPR source builds to address the glibc 2.43 compilation failure described in #288, without compiler-warning suppression or source patches.

Changes:

  • Sets NSS 3.133 and NSPR 4.39 as the default versions.
  • Adds their checksums while retaining NSS 3.118 / NSPR 4.37 as the previous versions.
  • Aligns Makefile help and migration documentation with the new defaults.
File Description
Makefile Updates dependency defaults and matching help text.
doc/​MAKEFILE_MIGRATION.md Updates the documented default versions.
.github/​scripts/​install-nss.sh Updates defaults and checksum entries, removing the oldest entries.

Review effort: Balanced

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit 74011d9 into lfreleng-actions:main Nov 12, 2026
65 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the fix/nss-3.133-glibc-2.43 branch November 12, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NSS 3.118 source build fails on ubuntu-26.04 (glibc 2.43)

3 participants