Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHC bindist version 9.4.5 and 9.6.1 #1890

Merged
merged 10 commits into from
May 10, 2023
Merged

Conversation

avdv
Copy link
Member

@avdv avdv commented May 3, 2023

This adds GHC bindists for the latest stable GHC releases for 9.4 and 9.6. Fixes #1889

Notable changes are that starting with GHC 9.6.1 the bindist packages are packaged with Hadrian and thus are relocatable without patching the scripts in bin.

Note that the test-patches workflow has been run for these successfully, except for GHC 9.4.5 on Windows. See #1892 For the time being, until this gets resolved, I have excluded this version from the test-ghc-patches workflow.

@avdv avdv force-pushed the add-ghc-bindist-9.4.5-9.6.1 branch 5 times, most recently from 8763a5b to e381162 Compare May 4, 2023 09:05
avdv added 2 commits May 4, 2023 11:46
Determine if the current GHC bindist was build by Hadrian. We assume this is the
case if the `config.mk.in` file exists in the root directory of the distribution;
it was located in the `mk` subfolder in older bindists.

We enable a relocatable build, ie. install, by setting `RelocatableBuild` to `YES`
when invoking make. This simplifies the folder structure of the installation.

Also, we no longer need to patch the bin scripts to make them relocatable.
@avdv avdv force-pushed the add-ghc-bindist-9.4.5-9.6.1 branch 4 times, most recently from f6e1179 to b85636a Compare May 9, 2023 14:49
@avdv avdv marked this pull request as ready for review May 9, 2023 14:50
@avdv avdv requested a review from ylecornec May 9, 2023 15:14
@avdv avdv linked an issue May 9, 2023 that may be closed by this pull request
Copy link
Member

@ylecornec ylecornec left a comment

Choose a reason for hiding this comment

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

Thanks! I have a small comment but otherwise it looks good to me 👍

}.get(version)
"9.4.5": ["@rules_haskell//haskell:assets/ghc_9_4_5_win.patch"],
"9.6.1": ["@rules_haskell//haskell:assets/ghc_9_6_1_win.patch"],
}.get(version, "".format())
Copy link
Member

Choose a reason for hiding this comment

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

Is the default value "".format() here on purpose ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I started to refactor this, but then decided against it. I'll fix it.

@avdv avdv force-pushed the add-ghc-bindist-9.4.5-9.6.1 branch from b85636a to 42ee20e Compare May 10, 2023 15:01
@avdv avdv added the merge-queue merge on green CI label May 10, 2023
@mergify mergify bot merged commit 3971250 into master May 10, 2023
@mergify mergify bot deleted the add-ghc-bindist-9.4.5-9.6.1 branch May 10, 2023 15:56
@mergify mergify bot removed the merge-queue merge on green CI label May 10, 2023
@avdv avdv mentioned this pull request Jun 12, 2023
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.

Binary distribution of GHC 9.6.1 not available
2 participants