Skip to content

bash: 5.2p26 -> 5.2p32; add upstream fix for pop_var_context error#331540

Merged
K900 merged 2 commits intoNixOS:stagingfrom
emilazy:push-tvytpsptzmzy
Aug 1, 2024
Merged

bash: 5.2p26 -> 5.2p32; add upstream fix for pop_var_context error#331540
K900 merged 2 commits intoNixOS:stagingfrom
emilazy:push-tvytpsptzmzy

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Aug 1, 2024

Description of changes

Tested with the first‐built Bash in stdenv; it applies, builds, and runs. I haven’t tried injecting it into derivations to check that the error doesn’t appear any more because I don’t really know what the best way to do that without rebuilding all of stdenv is and I’m not entirely sure how to arrange the circumstances that cause the error.

Closes: #214822

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@emilazy
Copy link
Member Author

emilazy commented Aug 1, 2024

It might be a good idea to backport just the #214822 fix back to 24.05 since it confuses people so often.

@K900
Copy link
Contributor

K900 commented Aug 1, 2024

Tested this on an intentionally broken package, and the error is in fact gone (and everything else works normally). Going to try building up to something more interesting now, like Mesa.

Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Built the packages below and ~150 more odd in the review shell.

Result of nixpkgs-review pr 331540 run on x86_64-linux 1

6 packages built:
  • bashInteractive
  • bashInteractive.debug (bashInteractive.debug.debug ,bashInteractive.debug.dev ,bashInteractive.debug.doc ,bashInteractive.debug.info ,bashInteractive.debug.man)
  • bashInteractive.dev (bashInteractive.dev.debug ,bashInteractive.dev.dev ,bashInteractive.dev.doc ,bashInteractive.dev.info ,bashInteractive.dev.man)
  • bashInteractive.doc (bashInteractive.doc.debug ,bashInteractive.doc.dev ,bashInteractive.doc.doc ,bashInteractive.doc.info ,bashInteractive.doc.man)
  • bashInteractive.info (bashInteractive.info.debug ,bashInteractive.info.dev ,bashInteractive.info.doc ,bashInteractive.info.info ,bashInteractive.info.man)
  • bashInteractive.man (bashInteractive.man.debug ,bashInteractive.man.dev ,bashInteractive.man.doc ,bashInteractive.man.info ,bashInteractive.man.man)

(patch "024" "1hq23djqbr7s9y2324jq9mxr5bwdkmgizn3zgpchbsqp054k85cp")
(patch "025" "0x9hc4silzl4d3zw4p43i5dm7w86k50j47f87lracwfgwy3z8f2i")
(patch "026" "1b1fhm1dsi67r8ip17s0xvx2qq31fsxc1g9n3r931dd0k9a1zvln")
(patch "027" "0fdbhvs9dkf4knncifh98a76q4gylhyvfrffq5p9q3ag5q58jap1")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 27: fix autoconf test for strtoimax (upstream commit)

(patch "025" "0x9hc4silzl4d3zw4p43i5dm7w86k50j47f87lracwfgwy3z8f2i")
(patch "026" "1b1fhm1dsi67r8ip17s0xvx2qq31fsxc1g9n3r931dd0k9a1zvln")
(patch "027" "0fdbhvs9dkf4knncifh98a76q4gylhyvfrffq5p9q3ag5q58jap1")
(patch "028" "1hdacd6sssjshmry1sscdnxxfb2r51bvdyghlfjaqgc9l85phhk0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 28: fix terminal pgrp handling in DEBUG trap (upstream commit)

(patch "026" "1b1fhm1dsi67r8ip17s0xvx2qq31fsxc1g9n3r931dd0k9a1zvln")
(patch "027" "0fdbhvs9dkf4knncifh98a76q4gylhyvfrffq5p9q3ag5q58jap1")
(patch "028" "1hdacd6sssjshmry1sscdnxxfb2r51bvdyghlfjaqgc9l85phhk0")
(patch "029" "11wrlb20w6v89b96krg0gwxipwhvrda6rq1y9f972m32gsrsqp0j")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 29: fix for error recovery when parsing invalid compound assignments (upstream commit)

(patch "027" "0fdbhvs9dkf4knncifh98a76q4gylhyvfrffq5p9q3ag5q58jap1")
(patch "028" "1hdacd6sssjshmry1sscdnxxfb2r51bvdyghlfjaqgc9l85phhk0")
(patch "029" "11wrlb20w6v89b96krg0gwxipwhvrda6rq1y9f972m32gsrsqp0j")
(patch "030" "13v9fqgim082dmvkslsr0hs793yzhsij2s91mjswsfhj1qip7zy3")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 30: fix bug with marking jobs terminated by signals as notified (upstream commit)

(patch "028" "1hdacd6sssjshmry1sscdnxxfb2r51bvdyghlfjaqgc9l85phhk0")
(patch "029" "11wrlb20w6v89b96krg0gwxipwhvrda6rq1y9f972m32gsrsqp0j")
(patch "030" "13v9fqgim082dmvkslsr0hs793yzhsij2s91mjswsfhj1qip7zy3")
(patch "031" "15d7rddj6spwc1fy997lxx6zvzq0zbxgf2h20mhi4wgp5nzbglf2")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 31: fix memory leak in optimized $(<file) expansion (upstream commit)

(patch "029" "11wrlb20w6v89b96krg0gwxipwhvrda6rq1y9f972m32gsrsqp0j")
(patch "030" "13v9fqgim082dmvkslsr0hs793yzhsij2s91mjswsfhj1qip7zy3")
(patch "031" "15d7rddj6spwc1fy997lxx6zvzq0zbxgf2h20mhi4wgp5nzbglf2")
(patch "032" "05ia6yf32hjprmyyxqawhgckxs3684ikfx8xg08zfgx9xkd7g73v")
Copy link
Contributor

Choose a reason for hiding this comment

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

Bash-5.2 patch 32: fix printing coprocs when the coproc does not have a name (upstream commit)

@@ -0,0 +1,17 @@
Excerpted from <https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=055a4552c901e43e6a6007f5bc664a33698dbf85>.
Copy link
Contributor

Choose a reason for hiding this comment

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

Upstream commit

Validated by looking at that commit that this is indeed the fix.

Comment on lines -60 to -64
(fetchurl {
name = "fix-static.patch";
url = "https://cgit.freebsd.org/ports/plain/shells/bash/files/patch-configure?id=3e147a1f594751a68fea00a28090d0792bee0b51";
sha256 = "XHFMQ6eXTReNoywdETyrfQEv1rKF8+XFbQZP4YoVKFk=";
})
Copy link
Contributor

Choose a reason for hiding this comment

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

This patch is superseded by the new patch 27 from upstream.

@K900
Copy link
Contributor

K900 commented Aug 1, 2024

Built up to Mesa on x86_64-linux, I think we can be reasonably confident this doesn't break bash too hard.

@K900 K900 merged commit a6ec55d into NixOS:staging Aug 1, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2024

Successfully created backport PR for staging-24.05:

@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. labels Aug 1, 2024
@github-actions

This comment was marked as outdated.

1 similar comment
@github-actions

This comment was marked as outdated.

@ofborg ofborg bot added 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-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. labels Aug 1, 2024
@github-actions

This comment was marked as outdated.

3 similar comments
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@emilazy emilazy deleted the push-tvytpsptzmzy branch August 26, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NOT A NIXPKGS BUG nor the cause of any failure stdenv: pop_var_context: head of shell_variables not a function context

3 participants