Repository navigation
Fix: Build NSS 3.133 for glibc 2.43 runners - #289
Merged
ModeSevenIndustrialSolutions merged 1 commit intoNov 12, 2026
Merged
ModeSevenIndustrialSolutions merged 1 commit into
ModeSevenIndustrialSolutions merged 1 commit into
Conversation
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
requested review from
a team
and
a balanced review from Copilot
November 12, 2026 21:31
There was a problem hiding this comment.
🟢 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
eb-oss
approved these changes
Nov 12, 2026
ModeSevenIndustrialSolutions
merged commit Nov 12, 2026
74011d9
into
lfreleng-actions:main
65 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #288
Problem
GitHub's
ubuntu-latestrunners are now Ubuntu 26.04 (glibc 2.43). In glibc 2.43,strrchr()keeps theconstof its argument, so NSS 3.118 no longer builds from source: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..github/scripts/install-nss.shMakefileNSS_VERSION/NSPR_VERSIONdefaults and thehelptextdoc/MAKEFILE_MIGRATION.mdChecksums come from Mozilla's published
SHA256SUMS:nss-3.133.tar.gz:4d752526…3065(SHA256SUMS)nspr-4.39.tar.gz:bbd02ee8…368e(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.04container (glibc 2.43, arm64):install-nss.shwith NSS 3.118 / NSPR 4.37 stops onfreebl3.lowhash_vector.owith the samediscarded-qualifierserror as CI.install-nss.shwith the new defaults verifies both checksums, builds and installs.pkg-configreportsnss3.133 andnspr4.39.pip install ".[test]"builds them against NSS 3.133, andnss.nss_get_version()returns3.133at runtime.pytest test -n0gives 433 passed, 16 skipped.prek runpasses on all changed files (shellcheck, markdownlint, reuse, codespell, gitlint).aislop ci --changesscores 100 with no findings.I didn't test x86_64 locally. This PR's CI covers it.
Follow-up after merge
lfreleng-actions/python-workflows.github/workflows/testing.yaml, currentlyv1.2.0, so Chore: Bump action and workflow calls to latest python-workflows#183 passes.