Bug#806878: xmonad: FTBFS when built with dpkg-buildpackage -A (man/xmonad.1: does not exist)

Santiago Vila sanvila at debian.org
Wed Dec 2 12:09:05 UTC 2015


Package: src:xmonad
Version: 0.11.1-3~1
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.lhs -o debian/hlibrary.setup
[1 of 1] Compiling Main             ( Setup.lhs, 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/xmonad-0.11.1/ --datasubdir=xmonad --htmldir=/usr/share/doc/libghc-xmonad-doc/html/ --enable-library-profiling

[... snipped ...]

[7 of 8] Compiling XMonad.Main      ( dist-ghc/build/XMonad/Main.hs, dist-ghc/build/XMonad/Main.o )
[8 of 8] Compiling XMonad           ( XMonad.hs, dist-ghc/build/XMonad.o )
[1 of 8] Compiling XMonad.StackSet  ( XMonad/StackSet.hs, dist-ghc/build/XMonad/StackSet.p_o )
[2 of 8] Compiling XMonad.Core      ( XMonad/Core.hs, dist-ghc/build/XMonad/Core.p_o )

XMonad/Core.hs:34:1: Warning:
    Module `Prelude' does not export `catch'
[3 of 8] Compiling XMonad.Layout    ( XMonad/Layout.hs, dist-ghc/build/XMonad/Layout.p_o )
[4 of 8] Compiling XMonad.Operations ( XMonad/Operations.hs, dist-ghc/build/XMonad/Operations.p_o )
[5 of 8] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs, dist-ghc/build/XMonad/ManageHook.p_o )

XMonad/ManageHook.hs:21:1: Warning:
    Module `Prelude' does not export `catch'
[6 of 8] Compiling XMonad.Config    ( XMonad/Config.hs, dist-ghc/build/XMonad/Config.p_o )
[7 of 8] Compiling XMonad.Main      ( dist-ghc/build/XMonad/Main.hs, dist-ghc/build/XMonad/Main.p_o )
[8 of 8] Compiling XMonad           ( XMonad.hs, dist-ghc/build/XMonad.p_o )
In-place registering xmonad-0.11.1...
Preprocessing executable 'xmonad' for xmonad-0.11.1...
[ 1 of 10] Compiling XMonad.StackSet  ( XMonad/StackSet.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/StackSet.o )
[ 2 of 10] Compiling XMonad.Core      ( XMonad/Core.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/Core.o )

XMonad/Core.hs:34:1: Warning:
    Module `Prelude' does not export `catch'
[ 3 of 10] Compiling XMonad.Layout    ( XMonad/Layout.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/Layout.o )
[ 4 of 10] Compiling XMonad.Operations ( XMonad/Operations.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/Operations.o )
[ 5 of 10] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/ManageHook.o )

XMonad/ManageHook.hs:21:1: Warning:
    Module `Prelude' does not export `catch'
[ 6 of 10] Compiling XMonad.Config    ( XMonad/Config.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/Config.o )
[ 7 of 10] Compiling XMonad.Main      ( dist-ghc/build/xmonad/xmonad-tmp/XMonad/Main.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad/Main.o )
[ 8 of 10] Compiling Paths_xmonad     ( dist-ghc/build/autogen/Paths_xmonad.hs, dist-ghc/build/xmonad/xmonad-tmp/Paths_xmonad.o )
[ 9 of 10] Compiling XMonad           ( XMonad.hs, dist-ghc/build/xmonad/xmonad-tmp/XMonad.o )
[10 of 10] Compiling Main             ( Main.hs, dist-ghc/build/xmonad/xmonad-tmp/Main.o )
Linking dist-ghc/build/xmonad/xmonad ...
touch build-ghc-stamp
debian/hlibrary.setup copy --builddir=dist-ghc --destdir=debian/tmp-inst-ghc
hlibrary.setup: man/xmonad.1: 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