Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556648 - [haskell overlay] =dev-haskell/cabal-1.22.4.0::haskell fails to install with GHC 7.10.2 because of 'Ebuild author forgot CABAL_CORE_LIB_GHC_PV entry'
Summary: [haskell overlay] =dev-haskell/cabal-1.22.4.0::haskell fails to install with ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2015-08-04 09:57 UTC by Michele Testa
Modified: 2015-08-12 19:03 UTC (History)
1 user (show)

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


Attachments
emerge --info '=dev-haskell/cabal-1.22.4.0::haskell' (file_556648.txt,7.38 KB, text/plain)
2015-08-04 10:00 UTC, Michele Testa
Details
The complete build log (build.log,50.03 KB, text/plain)
2015-08-04 10:06 UTC, Michele Testa
Details
The environment (environment,105.82 KB, text/plain)
2015-08-04 10:09 UTC, Michele Testa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Testa 2015-08-04 09:57:36 UTC
Emerging cabal-1.22.4.0 (using ghc-7.10.2 compiler) fails during install phase with error:

* Package Cabal-1.22.4.0 is shipped with 7.10.2.
* Ebuild author forgot CABAL_CORE_LIB_GHC_PV entry.
* Found in /usr/lib64/ghc-7.10.2/package.conf.d.initial.

Running "ghc-pkg recache" didn't fix.

Running haskell-updater (just for info):

# haskell-updater
Running haskell-updater-1.2.9 using GHC 7.10.2
  * Executable: /usr/bin/ghc
  * Library directory: /usr/lib64/ghc-7.10.2
  * 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!


Reproducible: Always

Steps to Reproduce:
1. Emerge =dev-lang/ghc-7.10.2
2. Emerge =dev-haskell/cabal-1.22.4.0
Actual Results:  
I can't install cabal-1.22.4.0, and therefore any other haskell package.
Comment 1 Michele Testa 2015-08-04 10:00:34 UTC
Created attachment 408254 [details]
emerge --info '=dev-haskell/cabal-1.22.4.0::haskell'
Comment 2 Michele Testa 2015-08-04 10:06:54 UTC
Created attachment 408256 [details]
The complete build log

# emerge -pqv '=dev-haskell/cabal-1.22.4.0::haskell'
[ebuild  N    ] dev-haskell/cabal-1.22.4.0  USE="profile {-test}"

The complete build log is in the attachment.
Comment 3 Michele Testa 2015-08-04 10:09:39 UTC
Created attachment 408258 [details]
The environment

The environment in which emerging was executed
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2015-08-06 07:14:06 UTC
How old is your ::haskell overlay? Can you show your commit ID?

Something like:
$ cd /var/lib/layman/haskell/
$ git show

Should be
> commit 30c7aca3965e2d436ab4ac34c729dd98eaba7579
> Author: Sergei Trofimovich <siarheit@google.com>
> Date:   Wed Aug 5 08:28:03 2015 +0100
> 
>     dev-haskell/monad-extras: bump up to 0.5.11
> 
>     Package-Manager: portage-2.2.20

or newer.
Comment 5 Michele Testa 2015-08-06 07:50:53 UTC
Fantastic. I'm still stick at Thu Jul 9 21:19:41!

$ cd /usr/local/overlay/haskell
$ git show

commit 47e6076a14c0f49372bf386a18b466f5d7da0c15
Merge: 594c630 c17dbea
Author: Sergei Trofimovich <slyfox@inbox.ru>
Date:   Thu Jul 9 21:19:41 2015 +0300

    Merge pull request #421 from arnetheduck/ihaskell-0.6.4.0
    
    Ihaskell 0.6.4.0


Sleep poorly at night does not help me to be lucid... :(
Now I'm going to fix my updating scripts and retry install.

Sorry for bother all you with my stupidity.
Thank you very much!

Mike


(In reply to Sergei Trofimovich from comment #4)
> How old is your ::haskell overlay? Can you show your commit ID?
> 
> Something like:
> $ cd /var/lib/layman/haskell/
> $ git show
> 
> Should be
> > commit 30c7aca3965e2d436ab4ac34c729dd98eaba7579
> > Author: Sergei Trofimovich <siarheit@google.com>
> > Date:   Wed Aug 5 08:28:03 2015 +0100
> > 
> >     dev-haskell/monad-extras: bump up to 0.5.11
> > 
> >     Package-Manager: portage-2.2.20
> 
> or newer.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2015-08-07 22:20:42 UTC
Oh, no problem! emerge warns when you try to use outdated main tree.
Would be cool if it would warn about outdated overlays.

Meanwhile I've tweaked .eclass to be more precise
what ebuild contains and what it is expected to contain:
    https://github.com/gentoo-haskell/gentoo-haskell/commit/e1f8b5709a58a9a778117e5325fa32a59fd1bc67
Comment 7 Michele Testa 2015-08-12 19:03:40 UTC
(In reply to Sergei Trofimovich from comment #6)
> Oh, no problem! emerge warns when you try to use outdated main tree.
> Would be cool if it would warn about outdated overlays.
> 
> Meanwhile I've tweaked .eclass to be more precise
> what ebuild contains and what it is expected to contain:
>    
> https://github.com/gentoo-haskell/gentoo-haskell/commit/
> e1f8b5709a58a9a778117e5325fa32a59fd1bc67

Dear Mr. Trofimovich, are people like you that make Gentoo the best distro!
Thank you really much, to make life easy for us Haskell programmers :)

Nice job!

Michele