Skip to content

Comments

haskellPackages.jsaddle-hello: fix on darwin #316277

Merged
sternenseemann merged 5 commits intoNixOS:haskell-updatesfrom
alexfmpe:jsaddle-hello
Jun 17, 2024
Merged

haskellPackages.jsaddle-hello: fix on darwin #316277
sternenseemann merged 5 commits intoNixOS:haskell-updatesfrom
alexfmpe:jsaddle-hello

Conversation

@alexfmpe
Copy link
Member

@alexfmpe alexfmpe commented May 31, 2024

Strictly speaking, ghcjs-dom-hello fails with a linker error on my mac but I suspect that's just for aarch64-darwin since I've often hit #149692. Should be fixed when the cctools bump is merged.

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.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label May 31, 2024
@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 31, 2024
@maralorn
Copy link
Member

sterni apparently wants to comment on this as well. I think this largely makes sense.

Copy link
Member

Choose a reason for hiding this comment

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

How did you hit this? Seems like building warp hasn't been a problem so far.

Copy link
Member Author

Choose a reason for hiding this comment

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

Might be some combination of sandbox + firewall. I'll try to isolate the trigger

Copy link
Member Author

Choose a reason for hiding this comment

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

This builds for me with --option sandbox false, does not build with relaxed or true.
Test suite just hangs after the "range requests" group log and there's no more output:
https://github.com/yesodweb/wai/blob/d50e1184600631a114e3d2ad119abdf0ef08834b/warp/test/ResponseSpec.hs#L106
I suspect this is the first case in the suite that actually performs a network request (apparently in 127.0.0.1 flavor)

Copy link
Member

Choose a reason for hiding this comment

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

Do you hit this with just GHC 9.8? warp does seem to succeed with GHC 9.6 which is confusing to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

On further testing it looks like it only happens when both firewall AND sandboxing are active.
Didn't try 9.8.

@sternenseemann sternenseemann merged commit 9036501 into NixOS:haskell-updates Jun 17, 2024
@alexfmpe alexfmpe deleted the jsaddle-hello branch June 28, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: haskell General-purpose, statically typed, purely functional programming language 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants