Bug#809118: hscolour: FTBFS when built with dpkg-buildpackage -A (Haddock failed)

Santiago Vila sanvila at debian.org
Sun Dec 27 12:33:10 UTC 2015


Package: src:hscolour
Version: 1.23-3
User: sanvila at debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
test -x debian/rules
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING:    DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \
make_setup_recipe
Running ghc --make Setup.hs -o debian/hlibrary.setup
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking debian/hlibrary.setup ...
cp debian/hscolour-wrapper hscolour-wrapper
chmod u+x hscolour-wrapper
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \

[... snipped ...]

Using haddock version 2.16.1 found on system at: /usr/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at: /usr/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
Using hscolour version 1.9 given by user at:
/<<PKGBUILDDIR>>/hscolour-wrapper
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.25 found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
No uhc found
touch configure-ghc-stamp
. /usr/share/haskell-devscripts/Dh_Haskell.sh &&\
haddock_recipe
Running debian/hlibrary.setup haddock --builddir=dist-ghc --with-haddock=/usr/bin/haddock --with-ghc=ghc --verbose=2 --html --hoogle --hyperlink-source
/usr/bin/haddock --version
/usr/bin/ghc --numeric-version
Running Haddock for hscolour-1.23...
/usr/bin/haddock --ghc-version
creating dist-ghc/build
creating dist-ghc/build/autogen
Running hscolour for hscolour-1.23...
creating dist-ghc/doc/html/hscolour
creating dist-ghc/doc/html
creating dist-ghc/doc
creating dist-ghc/doc/html
creating dist-ghc/doc/html/hscolour
Preprocessing library hscolour-1.23...
creating dist-ghc/doc/html/hscolour/src
/<<PKGBUILDDIR>>/hscolour-wrapper -print-css -odist-ghc/doc/html/hscolour/src/hscolour.css
hscolour-wrapper : -print-css -odist-ghc/doc/html/hscolour/src/hscolour.css
Haddock failed (no modules?), refusing to create empty documentation package.
/usr/share/cdbs/1/class/hlibrary.mk:173: recipe for target 'build-haddock-stamp' failed
make: *** [build-haddock-stamp] Error 1
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.



More information about the Pkg-haskell-maintainers mailing list