Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341795 - dev-haskell/* USE=profile missing dependencies
Summary: dev-haskell/* USE=profile missing dependencies
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
: 395187 399603 (view as bug list)
Depends on:
Reported: 2010-10-19 19:11 UTC by Thomas Kahle (RETIRED)
Modified: 2012-12-16 14:21 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2010-10-19 19:11:44 UTC
Hi, as per summary: USE="profile" on haskeline requires USE="profile" on dev-haskell/mtl. Please adjust the dep to 



--- errorsnippet ----
[26 of 26] Compiling System.Console.Haskeline.IO ( System/Console/Haskeline/IO.hs, dist/build/System/Console/Haskeline/IO.o )

    Could not find module `Control.Monad.State':
      Perhaps you haven't installed the profiling libraries for package `mtl-'?
      Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/haskeline- failed:

Reproducible: Always
Comment 1 Thomas Kahle (RETIRED) gentoo-dev 2010-10-19 19:22:43 UTC
So this is not only one package. 
Please crosscheck, there might be more that I did not spot!

USE="profile" on dev-haskell/haskeline requires

USE="profile" on dev-haskell/hashed-storage requires 

There might be more, I'm still running some tests.
Comment 2 Lennart Kolmodin (RETIRED) gentoo-dev 2010-10-19 19:39:43 UTC
This affects almost all haskell packages, and huge amount of the dependencies.

As soon as a library "foo" depends on a library "bar" which allows USE="profile", the correct dependency would look like this;

That is, if package foo should be built with USE="profile", then package bar must have this flag too.

This is due to that you can't build profiled packages if not all your dependencies have been compiled with profiling too. But, it's ok that package bar has profiling and package foo hasn't.

So, in short, any package with CABAL_FEATURES="profile" must have [profile?] on the dependencies to all other packages that also allow CABAL_FEATURES="profile".
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2011-12-19 16:38:02 UTC
*** Bug 395187 has been marked as a duplicate of this bug. ***
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2012-01-21 16:16:26 UTC
*** Bug 399603 has been marked as a duplicate of this bug. ***
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-17 23:10:05 UTC
Out ebuild generating tool at last got support for it:

From now on newly coming ebuilds will contain (hopefully)
proper [profile?] style depends.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2012-12-16 14:21:38 UTC
All newly generated packages get proper profile depends.
We will fix old ones on case-by-case basis.