Release Candidate 2: HP 2014.4.0.0

Mark Wright gienah at gentoo.org
Tue Oct 23 07:57:47 BST 2012


Jens Petersen <juhpetersen at gmail.com> writes:

> Hi Mark,
>
>> The second release candidate of HP 2014.4.0.0 is now available:
>>
>> Source tarball: haskell-platform-2012.4.0.0-rc2.tar.gz
>
> I tested it on Fedora with a local ghc-7.4.2 build.
>
> The build fails for me at alex: complaining that it can't find happy.
> See the end of build output below.
>
> Jens
>
>
> :
> Documentation created: dist/doc/html/QuickCheck/index.html
> **************************************************
> Building alex-3.0.2
> "/usr/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.14.0"
> Linking Setup ...
> "./Setup" "configure"
> "--package-db=../../packages/package.conf.inplace"
> "--prefix=/usr/local" "--with-compiler=/usr/bin/ghc"
> "--with-hc-pkg=/usr/bin/ghc-pkg" "--with-hsc2hs=/usr/bin/hsc2hs"
> "--enable-library-profiling"
> "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
> Configuring alex-3.0.2...
> "./Setup" "build"
> Building alex-3.0.2...
> Preprocessing executable 'alex' for alex-3.0.2...
> Setup: The program happy is required but it could not be found
>
> Error:
> Building the alex-3.0.2 package failed
> make: *** [build.stamp] Error 2

Hi Jens, Mark, everyone,

It should be possible to remove the dependency on happy by
using files that were pre-processed by happy during the
build.  Like in the src_prepare script of our ebuild:

https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-haskell/alex/alex-3.0.2.ebuild

For the Gentoo Haskell overlay we use ebuilds rather than the
haskell-platform-2012.4.0.0-rc2.tar.gz file, and I used ghc 7.6.1.

For compatibility with ghc 7.6.1 the async version should either be
bumped to async-2.0.1.4, or the base dep can be loosened in
the async-2.0.13 cabal file:

sed	-e 's at base >= 4.3 && < 4.7 at base >= 4.3 \&\& < 5.0@' \
	-e 's at base >= 4.3 && < 4.6 at base >= 4.3 \&\& < 5.0@' \
	-i "async.cabal"

Regards, Mark



More information about the Haskell-platform mailing list