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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
: 395187 399603 (view as bug list)
Depends on:
Blocks:
 
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: ---


Attachments

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 

=dev-haskell/mtl-1.1*[profile=]

Thanks!

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

System/Console/Haskeline/MonadException.hs:23:7:
    Could not find module `Control.Monad.State':
      Perhaps you haven't installed the profiling libraries for package `mtl-1.1.0.2'?
      Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/haskeline-0.6.2.2 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
=dev-haskell/mtl-1.1*[profile]

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

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;
dev-haskell/bar[profile?]

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:

    https://github.com/gentoo-haskell/hackport/commit/620218baed7e817867e6388fb17ecfa900359002

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.