Bug#809113: haskell-gio: FTBFS when built with dpkg-buildpackage -A (Haddock failed)

Santiago Vila sanvila at debian.org
Sun Dec 27 12:32:59 UTC 2015


Package: src:haskell-gio
Version: 0.13.1.0-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 2] Compiling SetupWrapper     ( SetupWrapper.hs, SetupWrapper.o )
[2 of 2] Compiling Main             ( Setup.hs, Setup.o )
Linking debian/hlibrary.setup ...
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \
configure_recipe

[... snipped ...]

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 gio-0.13.1.0...
/usr/bin/haddock --ghc-version
creating dist-ghc/build
creating dist-ghc/build/autogen
Running hscolour for gio-0.13.1.0...
creating dist-ghc/doc/html/gio
creating dist-ghc/doc/html
creating dist-ghc/doc
creating dist-ghc/doc/html
creating dist-ghc/doc/html/gio
Preprocessing library gio-0.13.1.0...
creating dist-ghc/build/System/GIO
creating dist-ghc/build/System
creating dist-ghc/build/System/GIO
/usr/bin/gtk2hsC2hs '--include=dist-ghc/build' '--include=/usr/lib/ghc/array_67iodizgJQIIxYVTp4emlA' '--include=/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM' '--include=/usr/lib/ghc/bytes_6VWy06pWzJq9evDvK2d4w6' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/glib-0.13.2.1-6yvXMlzClJxEuh8gxxrtxl' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/mtl-2.2.1-Aue4leSeVkpKLsfHIV51E8' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-U__BLOCKS__' '--cppopts=-Ubool' '--cppopts=-D__attribute__(A)=' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/System/GIO/' '--output=Enums.hs' '--precomp=dist-ghc/build/precompchs.bin' gio/gio.h ./System/GIO/Enums.chs
creating dist-ghc/build/System/GIO
/usr/bin/gtk2hsC2hs '--include=dist-ghc/build' '--include=/usr/lib/ghc/array_67iodizgJQIIxYVTp4emlA' '--include=/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM' '--include=/usr/lib/ghc/bytes_6VWy06pWzJq9evDvK2d4w6' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/glib-0.13.2.1-6yvXMlzClJxEuh8gxxrtxl' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/mtl-2.2.1-Aue4leSeVkpKLsfHIV51E8' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-U__BLOCKS__' '--cppopts=-Ubool' '--cppopts=-D__attribute__(A)=' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/System/GIO/' '--output=Types.hs' '--precomp=dist-ghc/build/precompchs.bin' gio/gio.h ./System/GIO/Types.chs
creating dist-ghc/build/System/GIO/Async
/usr/bin/gtk2hsC2hs '--include=dist-ghc/build' '--include=/usr/lib/ghc/array_67iodizgJQIIxYVTp4emlA' '--include=/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM' '--include=/usr/lib/ghc/bytes_6VWy06pWzJq9evDvK2d4w6' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/glib-0.13.2.1-6yvXMlzClJxEuh8gxxrtxl' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/mtl-2.2.1-Aue4leSeVkpKLsfHIV51E8' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-U__BLOCKS__' '--cppopts=-Ubool' '--cppopts=-D__attribute__(A)=' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/System/GIO/Async/' '--output=AsyncResult.hs' '--precomp=dist-ghc/build/precompchs.bin' gio/gio.h ./System/GIO/Async/AsyncResult.chs
creating dist-ghc/build/System/GIO/Async
/usr/bin/gtk2hsC2hs '--include=dist-ghc/build' '--include=/usr/lib/ghc/array_67iodizgJQIIxYVTp4emlA' '--include=/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM' '--include=/usr/lib/ghc/bytes_6VWy06pWzJq9evDvK2d4w6' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/glib-0.13.2.1-6yvXMlzClJxEuh8gxxrtxl' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/mtl-2.2.1-Aue4leSeVkpKLsfHIV51E8' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-U__BLOCKS__' '--cppopts=-Ubool' '--cppopts=-D__attribute__(A)=' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/System/GIO/Async/' '--output=Cancellable.hs' '--precomp=dist-ghc/build/precompchs.bin' gio/gio.h ./System/GIO/Async/Cancellable.chs
gtk2hsC2hs: System/GIO/Signals.chi not found in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/mtl-2.2.1-Aue4leSeVkpKLsfHIV51E8
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/glib-0.13.2.1-6yvXMlzClJxEuh8gxxrtxl
/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU
/usr/lib/ghc/bytes_6VWy06pWzJq9evDvK2d4w6
/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM
/usr/lib/ghc/array_67iodizgJQIIxYVTp4emlA
dist-ghc/build
.

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