Skip to content

Fix #6934 Depend on semaphore-compat-2.0.0#6935

Draft
mpilgrem wants to merge 4 commits into
masterfrom
fix6934
Draft

Fix #6934 Depend on semaphore-compat-2.0.0#6935
mpilgrem wants to merge 4 commits into
masterfrom
fix6934

Conversation

@mpilgrem

@mpilgrem mpilgrem commented Jun 26, 2026

Copy link
Copy Markdown
Member

See:

This pull request is draft until Stackage LTS Hackage (and, consequently, Stack) moves to GHC version that depends on semaphore-compat > 2.0.0.

(Not semaphore-compat > 1.0.0 because semaphore-compat-2.0.0 has a bug on macOS.)

  • Any changes that could be relevant to users have been recorded in ChangeLog.md.
  • The documentation has been updated, if necessary

Please also shortly describe how you tested your change. Bonus points for added tests! Tested locally on:

  • Windows 11
  • macOS 26.5.1/AArch64
  • Ubuntu 24.04.1 LTS (via WSL2)
  • Alpine Linux 3.24.1 (via WSL2)

@mpilgrem

Copy link
Copy Markdown
Member Author

The CI fails (as expected) because this version of Stack needs to be built with stack-ghc-9.12.5.yaml on a system where Stack has previously installed GHC 9.12.5-rc2.

@mpilgrem

mpilgrem commented Jun 27, 2026

Copy link
Copy Markdown
Member Author

Some illustrative (non-scientific) performance metrics, based on building stack itself (which has 217 modules), after dependencies have already been compiled, using Measure-Command (TotalSeconds) on Windows/PowerShell and time on Unix-like operating systems. (Using a local patched semaphore-compat-2.0.0 on macOS.)

Platform Windows 11 macOS 26.5.1/AArch64 Ubuntu 24.04.1 LTS (via WSL2) Alpine Linux 3.24.1 (via WSL2)
build --no-semaphore 115.24 98% cpu 1:46.26 total real 2m5.487s real 2m 7.36s
build --semaphore 76.34 218% cpu 1:03.01 total real 1m20.739s real 1m 24.13s
Wall clock saving 34% 41% 36% 34%

sternenseemann added a commit to sternenseemann/nixpkgs that referenced this pull request Jun 28, 2026
Apply patches from commercialhaskell/stack#6935
allowing us to build stack with GHC 9.12.5-rc2 (but no other GHC version).
Patch for the change log is not included (due to likely conflict problems),
but other documentation included with stack is updated.

We also apply an unrelated bug fix, so we don't need to rebase the patches.
sternenseemann added a commit to sternenseemann/nixpkgs that referenced this pull request Jun 28, 2026
Apply patches from commercialhaskell/stack#6935
allowing us to build stack with GHC 9.12.5-rc2 (but no other GHC version).
Patch for the change log is not included (due to likely conflict problems),
but other documentation included with stack is updated.

We also apply an unrelated bug fix, so we don't need to rebase the patches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant