Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 546934

Summary: dev-haskell/extensible-exceptions-0.1.1.4: cannot satisfy -package Cabal-1.20.0.2
Product: Gentoo Linux Reporter: Dominique Michel <dominique.c.michel>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
ebuild envirnment file

Description Dominique Michel 2015-04-17 19:14:25 UTC
dev-haskell/extensible-exceptions-0.1.1.4 fail to emerge with:

 * Using cabal-1.20.0.2.
 * Prepending /usr/lib64/ghc-7.8.3 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-1.20.0.2 --make /var/tmp/portage/dev-haskell/extensible-exceptions-0.1.1.4/work/extensible-exceptions-0.1.1.4/Setup.hs -dynamic -o setup
<command line>: cannot satisfy -package Cabal-1.20.0.2


Reproducible: Always

Steps to Reproduce:
1. emerge extensible-exceptions
2.
3.
Actual Results:  
emerge fail
Comment 1 Dominique Michel 2015-04-17 19:18:29 UTC
Created attachment 401474 [details]
emerge --info
Comment 2 Dominique Michel 2015-04-17 19:20:02 UTC
# emerge -pqv '=dev-haskell/extensible-exceptions-0.1.1.4::gentoo'
[ebuild   R   ] dev-haskell/extensible-exceptions-0.1.1.4  USE="-doc* -hscolour -profile"
Comment 3 Dominique Michel 2015-04-17 19:21:55 UTC
Created attachment 401478 [details]
build log
Comment 4 Dominique Michel 2015-04-17 19:22:54 UTC
haskell-updater find nothing to update
Comment 5 Dominique Michel 2015-04-17 19:24:16 UTC
Created attachment 401480 [details]
ebuild envirnment file
Comment 6 Dominique Michel 2015-04-17 19:38:39 UTC
If I run the same command in $S, I get the same failure. But with

# /usr/bin/ghc -package Cabal --make /var/tmp/portage/dev-haskell/extensible-exceptions-0.1.1.4/work/extensible-exceptions-0.1.1.4/Setup.hs -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/extensible-exceptions-0.1.1.4/work/extensible-exceptions-0.1.1.4/Setup.hs, /var/tmp/portage/dev-haskell/extensible-exceptions-0.1.1.4/work/extensible-exceptions-0.1.1.4/Setup.o )
Linking setup ...

it seam to work.
Comment 7 Dominique Michel 2015-04-17 20:16:27 UTC
The line

CABAL_CORE_LIB_GHC_PV="7.4.0.20111219 7.4.0.20120126 7.4.1 7.4.2"

is not documented into the devman. I commented out that line and the ebuild worked.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2015-04-25 13:44:37 UTC
(In reply to Dominique Michel from comment #7)
> The line
> 
> CABAL_CORE_LIB_GHC_PV="7.4.0.20111219 7.4.0.20120126 7.4.1 7.4.2"
> 
> is not documented into the devman. I commented out that line and the ebuild
> worked.

You should really not remove that line. What ghc version you are running?

Running 'ghc-pkg recache' (or unmerging any random haskell package)
should tickle package cache to the state when haskell-updater can catch stuff.

The variable is not expected to be used in normal ebuilds:
    https://github.com/gentoo-haskell/gentoo-haskell/blob/master/eclass/haskell-cabal.eclass#L458
Comment 9 Dominique Michel 2015-09-22 13:02:52 UTC
Sorry for the delay. I missed the previous mail.

# ghc-pkg recache
# haskell-updater
Running haskell-updater-1.2.9 using GHC 7.8.3
  * Executable: /usr/bin/ghc
  * Library directory: /usr/lib64/ghc-7.8.3
  * Package manager (PM): portage
Searching for packages installed with a different version of GHC.

No old packages found!

Searching for Haskell libraries with broken dependencies.

No broken packages found!


Nothing to build!

If I merge it by hand, it just work now. Thank you, to run ghc-pkg recache fixed it.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2015-09-22 21:54:32 UTC
Aha, thanks for the update! It's another instance of
    https://bugs.gentoo.org/show_bug.cgi?id=534416#c6

*** This bug has been marked as a duplicate of bug 534416 ***