Skip to content

gawk: 5.4.0 -> 5.4.1, apply upstream patch for bug when building without gmp/mpfr - #541941

Merged
mweinelt merged 2 commits into
NixOS:staging-nextfrom
whispersofthedawn:p/gawk
Jul 15, 2026
Merged

mweinelt merged 2 commits into
NixOS:staging-nextfrom
whispersofthedawn:p/gawk

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

see #540158. this pr is targeted at staging-next solely because that's the only place where the revert commit is (and thus the only place the "reapply" commit makes sense). we do not particularly care whether this goes via staging or staging-next, and can retarget once periodic merges happen.

when using gawk 5.4.1 without gmp and mpfr, some alignment is broken in a NODE struct. this causes build failures in downstream packages such as libpng and gcc16. a discussion of the latter occurred on bug-gawk (https://lists.gnu.org/archive/html/bug-gawk/2026-07/msg00013.html) where the issue was found and pushed to the relevant branch, but has not been released. accordingly, we fetch (manually, since fetchpatch infrecs) the patch from the savannah gitweb. this fixes libpng and gcc16.

Things done

when using gawk 5.4.1 without gmp and mpfr, some alignment is broken in
a NODE struct. this causes build failures in downstream packages such
as `libpng` and `gcc16`. a discussion of the latter occurred on
bug-gawk (https://lists.gnu.org/archive/html/bug-gawk/2026-07/msg00013.html)
where the issue was found and pushed to the relevant branch, but has not
been released. accordingly, we fetch (manually, since fetchpatch
infrecs) the patch from the savannah gitweb. this fixes `libpng` and
`gcc16`.
@nixpkgs-ci
nixpkgs-ci Bot requested review from dasJ and helsinki-Jo July 14, 2026 21:03
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jul 14, 2026
@mweinelt
mweinelt added this pull request to the merge queue Jul 15, 2026
Merged via the queue into NixOS:staging-next with commit d920d79 Jul 15, 2026
31 checks passed
@whispersofthedawn
whispersofthedawn deleted the p/gawk branch July 15, 2026 01:41
@LeSuisse LeSuisse linked an issue Jul 17, 2026 that may be closed by this pull request
@LeSuisse LeSuisse added 1.severity: security Issues which raise a security issue, or PRs that fix one backport staging-26.05 Backport PR automatically labels Jul 17, 2026
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gawk: security issues < 5.4.1

3 participants