Bug#806622: haskell-shake: FTBFS when built with dpkg-buildpackage -A (html/viz.js: does not exist)

Santiago Vila sanvila at debian.org
Sun Nov 29 16:22:36 UTC 2015


Package: src:haskell-shake
Version: 0.15.2+dfsg-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 1] Compiling Main             ( Setup.hs, Setup.o )
Linking debian/hlibrary.setup ...
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \
configure_recipe
Running debian/hlibrary.setup configure --ghc -v2 --package-db=/var/lib/ghc/package.conf.d --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib --builddir=dist-ghc --ghc-option=-optl-Wl\,-z\,relro --haddockdir=/usr/lib/ghc-doc/haddock/shake-0.15.2/ --datasubdir=shake --htmldir=/usr/share/doc/libghc-shake-doc/html/ --enable-library-profiling --datasubdir=/usr/share/shake --enable-tests

[... snipped ...]

[58 of 91] Compiling Test.Cache       ( src/Test/Cache.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Cache.o )
[59 of 91] Compiling Test.Command     ( src/Test/Command.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Command.o )
[60 of 91] Compiling Test.Digest      ( src/Test/Digest.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Digest.o )
[61 of 91] Compiling Test.Directory   ( src/Test/Directory.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Directory.o )
[62 of 91] Compiling Test.Docs        ( src/Test/Docs.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Docs.o )
[63 of 91] Compiling Test.Errors      ( src/Test/Errors.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Errors.o )
[64 of 91] Compiling Test.Files       ( src/Test/Files.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Files.o )
[65 of 91] Compiling Test.FilePath    ( src/Test/FilePath.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/FilePath.o )
[66 of 91] Compiling Test.Journal     ( src/Test/Journal.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Journal.o )
[67 of 91] Compiling Test.Lint        ( src/Test/Lint.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Lint.o )
[68 of 91] Compiling Test.Live        ( src/Test/Live.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Live.o )
[69 of 91] Compiling Test.Manual      ( src/Test/Manual.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Manual.o )
[70 of 91] Compiling Test.Oracle      ( src/Test/Oracle.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Oracle.o )
[71 of 91] Compiling Test.OrderOnly   ( src/Test/OrderOnly.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/OrderOnly.o )
[72 of 91] Compiling Test.Random      ( src/Test/Random.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Random.o )
[73 of 91] Compiling Test.Resources   ( src/Test/Resources.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Resources.o )
[74 of 91] Compiling Test.Self        ( src/Test/Self.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Self.o )
[75 of 91] Compiling Test.Tar         ( src/Test/Tar.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Tar.o )
[76 of 91] Compiling Test.Throttle    ( src/Test/Throttle.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Throttle.o )
[77 of 91] Compiling Test.Unicode     ( src/Test/Unicode.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Unicode.o )
[78 of 91] Compiling Test.Verbosity   ( src/Test/Verbosity.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Verbosity.o )
[79 of 91] Compiling Test.Version     ( src/Test/Version.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Version.o )
[80 of 91] Compiling Development.Shake.Config ( src/Development/Shake/Config.hs, dist-ghc/build/shake-test/shake-test-tmp/Development/Shake/Config.o )
[81 of 91] Compiling Test.Config      ( src/Test/Config.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Config.o )
[82 of 91] Compiling Development.Shake.Util ( src/Development/Shake/Util.hs, dist-ghc/build/shake-test/shake-test-tmp/Development/Shake/Util.o )
[83 of 91] Compiling Test.Tup         ( src/Test/Tup.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Tup.o )
[84 of 91] Compiling Test.Util        ( src/Test/Util.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Util.o )
[85 of 91] Compiling Development.Make.Rules ( src/Development/Make/Rules.hs, dist-ghc/build/shake-test/shake-test-tmp/Development/Make/Rules.o )
[86 of 91] Compiling Development.Make.All ( src/Development/Make/All.hs, dist-ghc/build/shake-test/shake-test-tmp/Development/Make/All.o )
[87 of 91] Compiling Development.Ninja.All ( src/Development/Ninja/All.hs, dist-ghc/build/shake-test/shake-test-tmp/Development/Ninja/All.o )
[88 of 91] Compiling Run              ( src/Run.hs, dist-ghc/build/shake-test/shake-test-tmp/Run.o )
[89 of 91] Compiling Test.Makefile    ( src/Test/Makefile.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Makefile.o )
[90 of 91] Compiling Test.Ninja       ( src/Test/Ninja.hs, dist-ghc/build/shake-test/shake-test-tmp/Test/Ninja.o )
[91 of 91] Compiling Test             ( src/Test.hs, dist-ghc/build/shake-test/shake-test-tmp/Test.o )
Linking dist-ghc/build/shake-test/shake-test ...
touch build-ghc-stamp
debian/hlibrary.setup copy --builddir=dist-ghc --destdir=debian/tmp-inst-ghc
hlibrary.setup: html/viz.js: does not exist
/usr/share/cdbs/1/class/hlibrary.mk:187: recipe for target 'debian/tmp-inst-ghc' failed
make: *** [debian/tmp-inst-ghc] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary-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