[Pkg-haskell-maintainers] Bug#725577: yi: FTBFS: The program alex version >=3.0.3 && <=3.0.5 is required but the version found at /usr/bin/alex is version 3.1.0

Louis Bettens louis at bettens.info
Mon Oct 7 19:43:06 UTC 2013


Allo,
Le 07. 10. 13 21:04, Joachim Breitner a écrit :
> it probably makes more sense to update hashable, if that does not
> require (too many) updates of other packages. Of course the test suite
> should go through first.
>

You are right. Even under pdebuild, when building hashable's testsuite, 
cabal guesses that hsc2hs should be run on tests/Regress/Mmap.hsc, but 
the result goes into dist/build/Regress/Mmap.hs and later, ghc looks for 
it in dist/build/tests/tests-tmp/Regress/Mmap.hs. Cabal bug?
Here's my output :
> $ cabal configure --enable-tests
> Resolving dependencies...
> Configuring hashable-1.2.1.0...
> $ cabal build
> Building hashable-1.2.1.0...
> Preprocessing library hashable-1.2.1.0...
> [1 of 3] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/build/Data/Hashable/Class.o )
> [2 of 3] Compiling Data.Hashable.Generic ( Data/Hashable/Generic.hs, dist/build/Data/Hashable/Generic.o )
> [3 of 3] Compiling Data.Hashable    ( Data/Hashable.hs, dist/build/Data/Hashable.o )
> [1 of 3] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/build/Data/Hashable/Class.p_o )
> [2 of 3] Compiling Data.Hashable.Generic ( Data/Hashable/Generic.hs, dist/build/Data/Hashable/Generic.p_o )
> [3 of 3] Compiling Data.Hashable    ( Data/Hashable.hs, dist/build/Data/Hashable.p_o )
> In-place registering hashable-1.2.1.0...
> Preprocessing test suite 'tests' for hashable-1.2.1.0...
> Mmap.hsc: In function ‘main’:
> Mmap.hsc:53:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> Mmap.hsc:53:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
The above proves that hsc2hs has been working.
>
> tests/Regress.hs:8:18:
>     Could not find module `Regress.Mmap'
>     Use -v to see a list of the files searched for.
Yep. Suggest "cabal build --ghc-option=-v".

What do you think? It's late, so I'll report what ought to be reported 
tomorrow.

Buona notte,
Louis
-- 
When I grow up,
I will run a Tor node around the clock,
To help threatened protesters 'round the world.



More information about the Pkg-haskell-maintainers mailing list