Re: [Fedora-haskell-list] "Setup: Can't find transitive deps for haddock" with Leksah
by Lakshmi Narasimhan T V
Hi Mathew,
Ok this issue is logged here in trac
http://hackage.haskell.org/trac/hackage/ticket/656 (as noted in the forum
thread as well).
The resolution would be to go back to the older style of listing deps for
library and executable within the same package , ie., repeating every
dependency from library section in the executable section.
Same issue affects yi as well (any package that has a executable and a
library with that executable listing the library as a direct dependency for
build).
I can share the patches if required. Also, as mentioned below, the enabled
shared option needs to be removed.
On Tue, Jun 28, 2011 at 9:38 AM, Mathew de Detrich <deteego(a)gmail.com>wrote:
> Ok, so once again I have tried to compile/install leksah (
> http://hackage.haskell.org/package/leksah) with Haskell when using
> cabal2arch, and just after the package is 'built' (but not yet finalized) I
> get this error message
>
> Configuring leksah-0.10.0.4...
> Preprocessing library leksah-0.10.0.4...
> Preprocessing executables for leksah-0.10.0.4...
> Building leksah-0.10.0.4...
> Registering leksah-0.10.0.4...
> Linking dist/build/leksah/leksah ...
> Running Haddock for leksah-0.10.0.4...
> Preprocessing library leksah-0.10.0.4...
> Preprocessing executables for leksah-0.10.0.4...
> Setup: Can't find transitive deps for haddock
>
> Doing a google search, I found that this error has occurred in other
> places, but only in build log fails for hackagedb packages
>
> Note that the .cabal file for Leksah (incorrectly) has enable-shared one of
> the ghc build options, this needs to be removed for the package to build
> correctly (up until this error anyways); as well as the issue outlined below
> (see
> http://answerpot.com/showthread.php?2552829-Build+error+with+lekash+on+ar... for
> more info). I have attached a correct PKGBUILD/.install file in this email
>
> There also seems to be another error with cabal2arch, that puts
> the dependency haskell-leksah within the actual haskell-leksah package (of
> the same version as well) inside the PKGBUILD. I just removed
> that dependency from PKGBUILD to build leksah
>
--
Regards
Lakshmi Narasimhan T V