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

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


Package: src:haskell-gtk3
Version: 0.14.0-2
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 gtk3-0.14.0...
/usr/bin/haddock --ghc-version
creating dist-ghc/build
creating dist-ghc/build/autogen
Running hscolour for gtk3-0.14.0...
creating dist-ghc/doc/html/gtk3
creating dist-ghc/doc/html
creating dist-ghc/doc
creating dist-ghc/doc/html
creating dist-ghc/doc/html/gtk3
Preprocessing library gtk3-0.14.0...
creating dist-ghc/build/Graphics/UI
creating dist-ghc/build/Graphics
creating dist-ghc/build/Graphics/UI
/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/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/cairo-0.13.1.0-CO34qv2s2W7AU4FA0T6Uvf' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/gio-0.13.1.0-HVGw7HFGuk55QKOE0QBwNa' '--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' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/pango-0.13.1.0-LVGGYaImySAKz2Xkfh02kg' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/text-1.2.1.3-FGvB6qqz81tFju4pBPAqne' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I.' '--cppopts=-I/usr/include/gtk-3.0' '--cppopts=-I/usr/include/at-spi2-atk/2.0' '--cppopts=-I/usr/include/at-spi-2.0' '--cppopts=-I/usr/include/dbus-1.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include' '--cppopts=-I/usr/include/gio-unix-2.0/' '--cppopts=-I/usr/include/cairo' '--cppopts=-I/usr/include/pango-1.0' '--cppopts=-I/usr/include/harfbuzz' '--cppopts=-I/usr/include/atk-1.0' '--cppopts=-I/usr/include/pixman-1' '--cppopts=-I/usr/include/freetype2' '--cppopts=-I/usr/include/libpng12' '--cppopts=-I/usr/include/gdk-pixbuf-2.0' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-DDISABLE_DEPRECATED' '--cppopts=-U__BLOCKS__' '--cppopts=-D__attribute__(A)=' '--cppopts=-Upixel' '--cppopts=-DHAVE_GIO' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/Graphics/UI/' '--output=Gtk.hs' '--precomp=dist-ghc/build/precompchs.bin' hsgtk.h ./Graphics/UI/Gtk.chs
creating dist-ghc/build/Graphics/UI
/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/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/cairo-0.13.1.0-CO34qv2s2W7AU4FA0T6Uvf' '--include=/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/gio-0.13.1.0-HVGw7HFGuk55QKOE0QBwNa' '--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' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/pango-0.13.1.0-LVGGYaImySAKz2Xkfh02kg' '--include=/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/text-1.2.1.3-FGvB6qqz81tFju4pBPAqne' '--cpp=/usr/bin/gcc' '--cppopts=-E' '--cppopts=-Idist-ghc/build/autogen' '--cppopts=-Idist-ghc/build' '--cppopts=-I.' '--cppopts=-I/usr/include/gtk-3.0' '--cppopts=-I/usr/include/at-spi2-atk/2.0' '--cppopts=-I/usr/include/at-spi-2.0' '--cppopts=-I/usr/include/dbus-1.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include' '--cppopts=-I/usr/include/gio-unix-2.0/' '--cppopts=-I/usr/include/cairo' '--cppopts=-I/usr/include/pango-1.0' '--cppopts=-I/usr/include/harfbuzz' '--cppopts=-I/usr/include/atk-1.0' '--cppopts=-I/usr/include/pixman-1' '--cppopts=-I/usr/include/freetype2' '--cppopts=-I/usr/include/libpng12' '--cppopts=-I/usr/include/gdk-pixbuf-2.0' '--cppopts=-I/usr/include/glib-2.0' '--cppopts=-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '--cppopts=-DDISABLE_DEPRECATED' '--cppopts=-U__BLOCKS__' '--cppopts=-D__attribute__(A)=' '--cppopts=-Upixel' '--cppopts=-DHAVE_GIO' '--cppopts=-D__GLASGOW_HASKELL__=710' '--output-dir=dist-ghc/build/Graphics/UI/' '--output=GtkInternals.hs' '--precomp=dist-ghc/build/precompchs.bin' hsgtk.h ./Graphics/UI/GtkInternals.chs
gtk2hsC2hs: Graphics/UI/Gtk/Types.chi not found in:
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/text-1.2.1.3-FGvB6qqz81tFju4pBPAqne
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/pango-0.13.1.0-LVGGYaImySAKz2Xkfh02kg
/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/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/gio-0.13.1.0-HVGw7HFGuk55QKOE0QBwNa
/usr/lib/ghc/conta_2C3ZI8RgPO2LBMidXKTvIU
/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-7.10.3/cairo-0.13.1.0-CO34qv2s2W7AU4FA0T6Uvf
/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