Closed hololeap closed 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.
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.
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?
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.
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"
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.
This should now be fixed. Please re-open if not.
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 needghc-9.0.2
to build, and I doubt the earlier one does either.