Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395351 - dev-haskell/network-2.3.0.7 fails to compile
Summary: dev-haskell/network-2.3.0.7 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 11:45 UTC by Fabian Henze
Modified: 2012-01-20 17:29 UTC (History)
0 users

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


Attachments
build.log (build.log,2.46 KB, text/plain)
2011-12-20 11:45 UTC, Fabian Henze
Details
output of emerge --info (emerge--info.txt,5.06 KB, text/plain)
2011-12-20 11:47 UTC, Fabian Henze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Henze 2011-12-20 11:45:25 UTC
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
Comment 1 Fabian Henze 2011-12-20 11:47:29 UTC
Created attachment 296441 [details]
output of emerge --info
Comment 2 Mark Wright gentoo-dev 2011-12-21 02:57:37 UTC
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.
Comment 3 Ivan 2011-12-21 03:00:06 UTC
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.
Comment 4 Julien Sanchez archtester 2012-01-20 07:30:22 UTC
Confirmed too: builds fine with dev-haskell/cabal-1.10.2.0, not with cabal-1.8
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2012-01-20 17:29:20 UTC
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!