Add profiles for each GHC branch - #1773
Conversation
package.mask copied from scripts/package.mask/ghc-9.4 Signed-off-by: hololeap <hololeap@protonmail.com>
package.mask copied from scripts/package.mask/ghc-9.6 Signed-off-by: hololeap <hololeap@protonmail.com>
dummy profile, as ghc-9.8 is currently the default Signed-off-by: hololeap <hololeap@protonmail.com>
package.unmask copied from scripts/package.unmask/ghc-9.10 Signed-off-by: hololeap <hololeap@protonmail.com>
package.unmask copied from scripts/package.unmask/ghc-9.12 Signed-off-by: hololeap <hololeap@protonmail.com>
Fix upper bounds on hoauth2 and stack to reflect current versions in the tree. Signed-off-by: hololeap <hololeap@protonmail.com>
Fix upper bounds on hoauth2 and stack to reflect current versions in the tree. Signed-off-by: hololeap <hololeap@protonmail.com>
Remove entry for non-existent package dev-haskell/cabal-test Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: hololeap <hololeap@protonmail.com>
For the record, this does work, but it's quite a bit to explain in a news item, so a simpler solution would be better (if one even exists). |
|
I doubt there is a better way to do this. I'm thinking a new
|
Signed-off-by: hololeap <hololeap@protonmail.com>
|
I'm thinking it's best if we keep the current method of copying files from |
Please check all the boxes that apply:
Signed-off-byline to every commit in the pull request.pkgcheck scan --commits --netto check for issues with my commits.Please note that all boxes must be checked for the pull request to be merged.
gentoo-haskell profiles
Instead of having an increasing number of files in the
scripts/directory that the user is expected to copy, let's introduce profiles for each major GHC branch which encapsulate the existing files. This will streamline later additions of more files and take the burden off the user. Also, an extra benefit is it allowspkgcheck scanto check for mistakes in the files.The big question is how users can combine these profiles with the one already selected on the system.
Combining profiles
One clunky solution would be to instruct the user to create a custom profile in a local repo that references both their system profile and the ghc profile in the
parentfile, as instructed here. Hopefully there are other ways to do this that can be explored.