Commit 3d7d2df4 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

Silence GHC 8.4's "ignoring (possibly broken) abi-depends..." warning

The current version of this package does not work properly with GHC 8.4.
The reason is that the `ghc-pkg --package-db debian/tmp-db/ recache`
command outputs a warning about possibly broken abi-depends:

  ignoring (possibly broken) abi-depends field for packages

See also https://ghc.haskell.org/trac/ghc/ticket/14381.

This causes the output of the tmp_package_db() function to contain the
above string, and function package_id_to_virtual_package() fails with:

  /usr/share/haskell-devscripts/Dh_Haskell.sh: line 368: ignoring: command not found

Unfortunately, the above does not crash the build, it only leads to
empty values for the corresponding variables, hence all haskell packages
end up with a `Provides: libghc--dev--'.

Fix the above bug by ignoring the output of the `ghc-pkg recache`
command.
parent 0988653f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -322,7 +322,9 @@ tmp_package_db() {
        then
            mkdir debian/tmp-db
            cp $@ debian/tmp-db/
            $ghcpkg --package-db debian/tmp-db/ recache
            # Silence GHC 8.4's "ignoring (possibly broken) abi-depends field
            # for packages" warning. See also, https://ghc.haskell.org/trac/ghc/ticket/14381
            $ghcpkg --package-db debian/tmp-db/ recache >/dev/null
        fi
        echo "${ghcpkg} --package-db debian/tmp-db"
    fi
+7 −0
Original line number Diff line number Diff line
haskell-devscripts (0.14.0) unstable; urgency=medium

  * Bump compat level
  * Silence GHC 8.4's "ignoring (possibly broken) abi-depends..." warning

 -- Ilias Tsitsimpis <iliastsi@debian.org>  Fri, 05 Oct 2018 14:32:06 +0300

haskell-devscripts (0.13.8) unstable; urgency=medium

  * Disable wordwrap on setup register output to cope with
+1 −1
Original line number Diff line number Diff line
9
10
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.or
Uploaders: Joachim Breitner <nomeata@debian.org>
         , Louis Bettens <louis@bettens.info>
         , Dmitry Bogatov <KAction@gnu.org>
Build-Depends: debhelper (>= 9)
Build-Depends: debhelper (>= 10)
Build-Depends-Indep: perl
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/haskell-team/haskell-devscripts
@@ -14,7 +14,7 @@ Vcs-Git: https://salsa.debian.org/haskell-team/haskell-devscripts.git/
Package: haskell-devscripts-minimal
Architecture: all
Depends: dctrl-tools
  , debhelper (>= 9.20151219)
  , debhelper (>= 10)
  , dh-buildinfo
  , ghc
  , cdbs