Hi,

Am Montag, den 07.10.2013, 21:43 +0200 schrieb Louis Bettens:
> 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.

no hurry; simply report this to upstream, maybe they already know what
to do.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to