Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860807 - dev-haskell/exceptions-0.10.4-r1 fails to install when dev-lang/ghc-8.10.4-r1 installed
Summary: dev-haskell/exceptions-0.10.4-r1 fails to install when dev-lang/ghc-8.10.4-r1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 22:28 UTC by Jonathan Lovelace
Modified: 2022-08-18 21:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-haskell:exceptions-0.10.4-r1:20220724-220400.log (dev-haskell:exceptions-0.10.4-r1:20220724-220400.log,18.41 KB, text/x-log)
2022-07-24 22:28 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.98 KB, text/plain)
2022-07-24 22:28 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-07-24 22:28:36 UTC
Created attachment 794111 [details]
dev-haskell:exceptions-0.10.4-r1:20220724-220400.log

=dev-haskell/exceptions-0.10.4-r1 fails to install for me, with these eclass error messages:

 * Cabal package 'exceptions-0.10.4' is shipped with 'PM:8.10.4-r1' ('8.10.4').                               
 * Ebuild author forgot an entry in CABAL_CORE_LIB_GHC_PV='PM:8.10.5-r1 PM:8.10.6 PM:8.10.7 PM:9.0.1-r1 PM:9.0.2 PM:9999'.                                                                                                  
 * Found in /usr/lib64/ghc-8.10.4/package.conf.d.initial.                                                     

And indeed, the primary difference between the ebuild for -0.10.4 in /var/db/pkg and the ebuild in the tree is the removal of GHC versions prior to 8.10.5-r1 from $CABAL_CORE_LIB_GHC_PV .
Comment 1 Jonathan Lovelace 2022-07-24 22:28:53 UTC
Created attachment 794114 [details]
emerge-info.txt
Comment 2 Jack Todaro 2022-07-24 22:36:12 UTC
exceptions-0.10.4 is a bundled library with ghc-9.0.2, so you need to upgrade to ghc-9.0.2 and run haskell-updater. After that, and everything should work.

If you're stuck on being unable to upgrade to ghc-9.0.2, let me know.
Comment 3 José María Fernández González 2022-08-12 08:44:38 UTC
The very same has happened to me when I tried upgrading from dev-haskell/exceptions-0.10.4 to dev-haskell/exceptions-0.10.4-r1 , but I have followed a dirtier path to allow the package to be installed:

1. I (re)moved exceptions-0.10.4-gentoo-ghc-8.10.4-r1.conf from /usr/lib64/ghc-8.10.4/package.conf.d.initial *and* exceptions-0.10.4-gentoo-ghc-8.10.4-r1.conf from /usr/lib64/ghc-8.10.4/package.conf.d .

2. Then I ran as root both ghc-pkg recache and ghc-pkg recache --global-package-db=/usr/lib64/ghc-8.10.4/package.conf.d.initial .

3. Last, dev-haskell/exceptions-0.10.4-r1 could be installed with no collision.
Comment 4 José María Fernández González 2022-08-12 08:48:58 UTC
Ah, I forgot to mention that prior to that I did "ghc-pkg unregister --force exceptions-0.10.4" in order to force deregister the package, when I was trying to have dev-haskell/exceptions-0.10.4-r1 installed.
Comment 5 Jonathan Lovelace 2022-08-18 21:32:13 UTC
All my systems are "mostly-stable", with any additions to package.accept_keywords to meet dependencies being the lowest version that satisfies all reverse dependencies (unless it fails to build or fails tests and a higher version fixes such issues).

In any case, the problematic GHC version has been removed from::Gentoo, so this is no longer an issue.