gentoo-haskell / hackport

A command line tool to generate Gentoo ebuilds from Hackage packages.
GNU General Public License v3.0
55 stars 21 forks source link

GHC version detection broken on `ghc-8.10.6` #103

Closed hololeap closed 2 years ago

hololeap commented 2 years ago

Related to 021426b6c7b305187e9251874971004236576df5

I added an old version of dev-lang/dhall to help with https://github.com/gentoo-haskell/gentoo-haskell/issues/1243 and it detects it as needing >=ghc-9.0.2.

The current version of dhall did not need ghc-9.0.2 to build, and I doubt the earlier one does either.

$ hackport merge dhall-1.39.0
rejecting dep: ghc-8.4.3 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.6.3 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.6.5 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.8.1 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.8.3 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.8.4 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.10.1 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
rejecting dep: ghc-8.10.4 as ["exceptions >=0.8.3 && <0.11","mtl >=2.2.1 && <2.3","text >=0.11.1.0 && <1.3"] were not found.
accepting dep: ghc-9.0.2

RepoMan scours the neighborhood...
  dependency.bad [fatal]        48
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop/gnome)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop/gnome)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop/gnome/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop/gnome/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop/plasma)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop/plasma)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop/plasma/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop/plasma/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/desktop/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/desktop/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/hardened)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/hardened)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/no-multilib)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/no-multilib)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/hardened)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/hardened)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/selinux)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/selinux)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/desktop)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/desktop)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/desktop/gnome)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/desktop/gnome)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/desktop/gnome/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/desktop/gnome/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/desktop/plasma)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/desktop/plasma)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/desktop/plasma/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/desktop/plasma/systemd)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/hardened)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/hardened)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/hardened/selinux)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/selinux)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/selinux)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~x86(default/linux/x86/17.0/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~x86(default/linux/x86/17.0/systemd)
['>=dev-lang/ghc-9.0.2:=']
  dependency.badindev           4
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.0/x32)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.0/x32)
['>=dev-lang/ghc-9.0.2:=']
   dev-lang/dhall/dhall-1.39.0.ebuild: DEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/systemd)
['>=dev-lang/ghc-9.0.2:=', '>=dev-haskell/cabal-3.4.1.0']
   dev-lang/dhall/dhall-1.39.0.ebuild: RDEPEND: ~amd64(default/linux/amd64/17.1/no-multilib/systemd)
['>=dev-lang/ghc-9.0.2:=']
  ebuild.notadded               1
   dev-lang/dhall/dhall-1.39.0.ebuild
Please fix these important QA issues first.
RepoMan sez: "Make your QA payment on time and you'll never see the likes of me."

Accepted depends: ["Diff >=0.2 && <0.5","aeson >=1.0.0.0 &&
<1.6","aeson-pretty <0.9","ansi-terminal >=0.6.3.1 && <0.12","atomic-write
>=0.2.0.7 && <0.3","case-insensitive <1.3","cborg >=0.2.0.0 &&
<0.3","cborg-json >=0.2.2.0 && <0.3","contravariant <1.6","cryptonite >=0.23
&& <0.30","data-fix <0.4","dotgen >=0.4.2 && <0.5","either >=5 && <5.1","half
>=0.2.2.3 && <0.4","hashable >=1.2 && <1.4","haskeline >=0.7.2.1 &&
<0.9","http-client >=0.5.0 && <0.8","http-client-tls >=0.2.0 &&
<0.4","http-types >=0.7.0 && <0.13","lens-family-core >=1.0.0 &&
<2.2","megaparsec >=7 && <9.2","memory >=0.14 && <0.17","mmorph
<1.3","network-uri >=2.6 && <2.7","optparse-applicative >=0.14.0.0 &&
<0.17","parser-combinators","parsers >=0.12.4 && <0.13","pretty-simple
<4.1","prettyprinter >=1.5.1 && <1.8","prettyprinter-ansi-terminal >=1.1.1 &&
<1.2","profunctors >=3.1.2 && <5.7","repline >=0.4.0.0 && <0.5","scientific
>=0.3.0.0 && <0.4","serialise >=0.2.0.0 && <0.3","text-manipulate >=0.2.0.1 &&
<0.4","th-lift-instances >=0.1.13 && <0.2","transformers-compat >=0.6.2 &&
<0.7","unordered-containers >=0.1.3.0 && <0.3","uri-encode <1.6","vector
>=0.11.0.0 && <0.13"]
Skipped depends: ["base","dhall","base >=4.11.0.0 && <5","bytestring
<0.12","containers >=0.5.8.0 && <0.7","deepseq <1.5","directory >=1.3.0.0 &&
<1.4","exceptions >=0.8.3 && <0.11","filepath >=1.4 && <1.5","mtl >=2.2.1 &&
<2.3","template-haskell >=2.13.0.0 && <2.18","text >=0.11.1.0 &&
<1.3","transformers >=0.2.0.0 && <0.6"]
Dead flags: []
Dropped flags: ["cross"]
Active flags: ["with-http","use-http-client-tls"]
Irrelevant flags: []
Current keywords: Just ["~amd64","~x86"] -> ["~amd64","~x86"]
Current license: Just "BSD" -> Right "BSD"
Writing dhall-1.39.0.ebuild
Recalculating digests...
Running repoman full --include-dev and pkgcheck scan...
repoman full --include-dev found an error. Do something about it!
dev-lang/dhall
 NonsolvableDepsInDev: version 1.39.0: nonsolvable
depset(depend) keyword(~amd64) dev profile (default/linux/amd64/17.0/x32) (4
total): solutions: [ >=dev-haskell/cabal-3.4.1.0, >=dev-lang/ghc-9.0.2:= ]
 NonsolvableDepsInDev: version 1.39.0: nonsolvable
depset(rdepend) keyword(~amd64) dev profile (default/linux/amd64/17.0/x32) (4
total): solutions: [ >=dev-lang/ghc-9.0.2:= ]
 NonsolvableDepsInStable: version 1.39.0: nonsolvable
depset(depend) keyword(~amd64) stable profile (default/linux/amd64/17.1) (48
total): solutions: [ >=dev-haskell/cabal-3.4.1.0, >=dev-lang/ghc-9.0.2:= ]
 NonsolvableDepsInStable: version 1.39.0: nonsolvable
depset(rdepend) keyword(~amd64) stable profile (default/linux/amd64/17.1) (48
total): solutions: [ >=dev-lang/ghc-9.0.2:= ]
 RedundantVersion: version 1.39.0: slot(0) keywords are
overshadowed by version: 1.40.1

solpeth commented 2 years ago

Mine is depending on ghc-8.4.3. I wonder if I need to adjust something in hackport RE marking those libraries as un-upgradeable with ghc-9.0.2.

hololeap commented 2 years ago

I've been testing in a sandbox with ghc-8.10.6 and cabal-3.2.1.0-r1. The package I am testing hackport with is purescript-0.14.5.

It seems as though something broke for these versions of ghc and cabal as of https://github.com/gentoo-haskell/hackport/commit/7253e39510461e8b2e12b316205f23c52aa00578.

Here is the output I get as of https://github.com/gentoo-haskell/hackport/commit/1eaa6970e43e0754cbc94832e30b59ae9cda7a79:

gentoo-ghc-8-10-6 $ hackport merge purescript-0.14.5
rejecting dep: ghc-8.4.3 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","deepseq (>=1.4.4.0 && <1.5) && >=1.4.4.0 && <1.5","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","filepath (>=1.4.2.1 && <1.5) && >=1.4.2.1 && <1.5","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10","transformers (>=0.5.6.2 && <0.6) && >=0.5.6.2 && <0.6"] were not found.
rejecting dep: ghc-8.6.3 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10","transformers (>=0.5.6.2 && <0.6) && >=0.5.6.2 && <0.6"] were not found.
rejecting dep: ghc-8.6.5 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10"] were not found.
rejecting dep: ghc-8.8.1 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7"] were not found.
rejecting dep: ghc-8.8.3 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7"] were not found.
rejecting dep: ghc-8.8.4 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11"] were not found.
rejecting dep: ghc-8.10.1 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7"] were not found.
accepting dep: ghc-8.10.4

And here is the output I get as of https://github.com/gentoo-haskell/hackport/commit/7253e39510461e8b2e12b316205f23c52aa00578:

gentoo-ghc-8-10-6 $ hackport merge purescript-0.14.5
rejecting dep: ghc-8.4.3 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","deepseq (>=1.4.4.0 && <1.5) && >=1.4.4.0 && <1.5","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","exceptions >=0.10.4 && <0.11","filepath (>=1.4.2.1 && <1.5) && >=1.4.2.1 && <1.5","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10","transformers (>=0.5.6.2 && <0.6) && >=0.5.6.2 && <0.6"] were not found.
rejecting dep: ghc-8.6.3 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","exceptions >=0.10.4 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10","transformers (>=0.5.6.2 && <0.6) && >=0.5.6.2 && <0.6"] were not found.
rejecting dep: ghc-8.6.5 as ["array (>=0.5.4.0 && <0.6) && >=0.5.4.0 && <0.6","base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","containers (>=0.6.2.1 && <0.7) && >=0.6.2.1 && <0.7","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","exceptions >=0.10.4 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3","time (>=1.9.3 && <1.10) && >=1.9.3 && <1.10"] were not found.
rejecting dep: ghc-8.8.1 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","directory (>=1.3.6.0 && <1.4) && >=1.3.6.0 && <1.4","exceptions >=0.10.4 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3"] were not found.
rejecting dep: ghc-8.8.3 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","exceptions >=0.10.4 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3"] were not found.
rejecting dep: ghc-8.8.4 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","exceptions >=0.10.4 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3"] were not found.
rejecting dep: ghc-8.10.1 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15","bytestring (>=0.10.12.0 && <0.11) && >=0.10.12.0 && <0.11","parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2","process (>=1.6.9.0 && <1.7) && >=1.6.9.0 && <1.7","text (>=1.2.4.1 && <1.3) && >=1.2.4.1 && <1.3"] were not found.
rejecting dep: ghc-8.10.4 as ["parsec (>=3.1.14.0 && <3.2) && >=3.1.14.0 && <3.2"] were not found.
rejecting dep: ghc-9.0.2 as ["base (>=4.14.1.0 && <4.15) && >=4.14.1.0 && <4.15"] were not found.
hackport: mergeGenericPackageDescription: failed to find suitable GHC for purescript
  You can try to merge the package manually:
  $ cabal unpack purescript
  $ cd purescript*/
  # fix purescript.cabal
  $ hackport make-ebuild dev-lang purescript.cabal

CallStack (from HasCallStack):
  error, called at Merge.hs:219:29 in main:Merge

The current HEAD is still working in my sandbox with ghc-9.0.2 and cabal-3.4.1.0. The output in my ghc-9.0.2 sandbox using https://github.com/gentoo-haskell/hackport/commit/5eb3f98bf9ce9c6fc7ac4f9af9b2c18cd2305e1e is identical to the output I get in my ghc-8.10.6 sandbox using https://github.com/gentoo-haskell/hackport/commit/1eaa6970e43e0754cbc94832e30b59ae9cda7a79.

solpeth commented 2 years ago

Thanks very much for your investigations, here. To wrap my head around it: in your ghc-9.0.2 sandbox with hackport HEAD, everything is completely fine - but with any other combination of hackport HEAD and ghc we have a problem. Is that correct?

hololeap commented 2 years ago

I have tested with ghc-8.10.6+cabal-3.2.1.0-r1 and ghc-8.10.6+cabal-3.4.1.0, and both of these have the problematic behavior after https://github.com/gentoo-haskell/hackport/commit/7253e39510461e8b2e12b316205f23c52aa00578.

The ghc-9.0.2+cabal-3.4.1.0 combination works fine with all the commits I've tested, including current master.

hololeap commented 2 years ago

The current workaround for using app-portage/hackport-9999 with stable ghc is to add this to /etc/portage/make.conf and then rebuild hackport:

EGIT_OVERRIDE_COMMIT_GENTOO_HASKELL_HACKPORT="1eaa6970e43e0754cbc94832e30b59ae9cda7a79"
solpeth commented 2 years ago

I'm currently a bit time-poor. Next week may be a bit better, but perhaps we revert that commit after which problems arose for older ghcs (I can get to this, but if you find that this is causing too many problems feel free to revert it yourself). I'll dig through the hackport history to see if similar actions have ever been taken, as a clue to how it needs to be done.

solpeth commented 2 years ago

This should now be fixed. Please re-open if not.