Created attachment 296439 [details] build.log dev-haskell/network-2.3.0.7 fails to compile on my system. maybe loosely related to bug #338982 Regards, Fabian Henze
Created attachment 296441 [details] output of emerge --info
Reproduced with dev-haskell/cabal-1.8.0.6-r1 and dev-lang/ghc-6.12.3. Build succeeds with dev-haskell/cabal-1.10.2.0 and dev-lang/ghc-7.0.4.
I think this is a Cabal issue rather than GHC: the test support was only added in to 1.10, so using --disable-tests will probably need to be conditional on the version of Cabal being used.
Confirmed too: builds fine with dev-haskell/cabal-1.10.2.0, not with cabal-1.8
Pushed as: > 20 Jan 2012; Sergei Trofimovich <slyfox@gentoo.org> network-2.3.0.7.ebuild: > Do not set --disable-tests as dev-haskell/cabal-1.8 knows only --enable-tests. > Fixes bug #395351 by Fabian Henze and others. The change is basically 'use --enable-tests when needed and never set --disable-tests'. Should not bring any harm as tests are never enabled by default: > - cabal_src_configure $(use_enable test tests) > + cabal_src_configure $(use test && use_enable test tests) #395351 Thanks all for the report and analysis!