Change patch so that Setup.hs no longer requires cabal-doctest, but it
will use it if it's available.
Add dev-haskell/cabal-doctest as a conditional DEPEND if USE=test is
enabled.
Closes: https://bugs.gentoo.org/916851
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Pulls latest Hackage revision for v0.96.0.0
Loosen constraint on base. This allows regex-posix-0.96.0.0 to be built
on newer GHC.
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
basement-0.0.12 will not build on >=ghc-9.2, leading to errors such as:
Couldn't match expected type ‘Word32#’ with actual type ‘Word#’
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Tests use a preprocessor which runs doctest-driver-gen. PATH and
LD_LIBRARY_PATH need to be adjusted to find the newly-built library
and binary or it will fail in the compile phase.
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
cabal-install-3.4.1.0 has an updated dependency for base in it's 2nd
Hackage revision. This updates the string in CABAL_CHDEPS to avoid
"no trigger for" errors.
Closes: https://bugs.gentoo.org/916263
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Old versions of Cabal will not build on new versions of GHC, and will
give rise to this error if you try:
Unknown/unsupported 'ghc' version detected (Cabal 3.0 supports 'ghc'
version < 9.1): /usr/bin/ghc is version 9.2.8
(In reality, despite the contents of the error message, Cabal-3.4
supports <ghc-9.1, Cabal-3.6 supports <ghc-9.3, etc.)
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
With added upper bounds on GHC deps, older versions of Cabal must be
removed along with ghc-8.10.
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
The array package has been available via dev-lang/ghc for years but was
not included as a default for GHC_BOOTSTRAP_PKGS. This adds 'array' to
default_exposed_pkgs.
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Version 29 changed some of the Makefile logic, and part of it is wonky, with it
wanting to runs emacs during the install target. I tried to fix it but couldn't.
Something about autoloads being a PHONY target.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Modify `epytest` not to pass our plethora of `-p no:*` arguments
when `PYTEST_DISABLE_PLUGIN_AUTOLOAD` is set. This is NFC since
the plugins wouldn't be loaded anyway.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Fix `epytest` with `EPYTEST_XDIST` not to pass a duplicate `-p xdist`
when `xdist.plugin` is already present in `PYTEST_PLUGINS`. Otherwise,
pytest will fail due to the plugin being loaded twice.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
GCC 10 is EOL - it has been since GCC 10.5 was released in July.
It's hard to get the balance right here - if we mask immediately on the release
of .5 of a series, some people aren't happy, and it's indeed kind of a nuisance
for stabling the last version of a series too. (I did it the day-of for 9.5.x
and had some feedback on it from users.)
In any case, by now, it's certainly overdue. Move to GCC 11 or newer, please.
Bug: https://bugs.gentoo.org/917507
Signed-off-by: Sam James <sam@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/33872
Signed-off-by: Sam James <sam@gentoo.org>