[Git][haskell-team/haskell-devscripts][master] Cope with Cabal 2.0 gen-pkg-config output change.

Clint Adams gitlab at salsa.debian.org
Tue Apr 10 11:45:35 UTC 2018


Clint Adams pushed to branch master at Debian Haskell Group / haskell-devscripts


Commits:
6bc47b82 by Clint Adams at 2018-04-10T07:44:22-04:00
Cope with Cabal 2.0 gen-pkg-config output change.

- - - - -


3 changed files:

- Dh_Haskell.sh
- debian/changelog
- debian/control


Changes:

=====================================
Dh_Haskell.sh
=====================================
--- a/Dh_Haskell.sh
+++ b/Dh_Haskell.sh
@@ -502,7 +502,7 @@ haddock_recipe(){
 extra_depends_recipe(){
     # local PS5=$PS4; PS4=" + extra_depends_recipe> "; set -x
     hc=$1
-    pkg_config=`${DEB_SETUP_BIN_NAME} register --builddir=dist-${hc} --gen-pkg-config | tr -d ' \n' | sed -r 's,^.*:,,'`
+    pkg_config=`LC_ALL=C ${DEB_SETUP_BIN_NAME} register --builddir=dist-${hc} --gen-pkg-config --verbose=1 | sed -r -n '/^Creating package registration file: /s///p'`
     run dh_haskell_extra_depends ${hc} $pkg_config
     rm $pkg_config
     # PS4=$PS5
@@ -519,7 +519,7 @@ install_dev_recipe(){
     ( run cd debian/tmp-inst-${hc} ; run mkdir -p ${libdir} ; run find ${libdir}/ \
         \( ! -name "*_p.a" ! -name "*.p_hi" ! -type d \) \
         -exec install -Dm 644 '{}' ../${PKG}/'{}' ';' )
-    pkg_config=`${DEB_SETUP_BIN_NAME} register --builddir=dist-${hc} --gen-pkg-config | tr -d ' \n' | sed -r 's,^.*:,,'`
+    pkg_config=`LC_ALL=C ${DEB_SETUP_BIN_NAME} register --builddir=dist-${hc} --gen-pkg-config --verbose=1 | sed -r -n '/^Creating package registration file: /s///p'`
     if [ "${HASKELL_HIDE_PACKAGES}" ]; then sed -i 's/^exposed: True$/exposed: False/' $pkg_config; fi
     run install -Dm 644 $pkg_config debian/${PKG}/${pkgdir}/$pkg_config
     run rm -f $pkg_config


=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+haskell-devscripts (0.13.4) unstable; urgency=medium
+
+  * Cope with Cabal 2.0 gen-pkg-config output change.
+
+ -- Clint Adams <clint at debian.org>  Tue, 10 Apr 2018 07:43:36 -0400
+
 haskell-devscripts (0.13.3) unstable; urgency=medium
 
   * Patch from Chris Lamb to sort haskell:Recommends substvar.


=====================================
debian/control
=====================================
--- a/debian/control
+++ b/debian/control
@@ -2,16 +2,12 @@ Source: haskell-devscripts
 Section: haskell
 Priority: extra
 Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
-Uploaders: Marco Silva <marcot at debian.org>, Joachim Breitner <nomeata at debian.org>
-         , Louis Bettens <louis at bettens.info>
-         , Dmitry Bogatov <KAction at gnu.org>
 Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: perl
-Standards-Version: 3.9.8
+Standards-Version: 4.1.4
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-haskell/haskell-devscripts.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-haskell/haskell-devscripts.git
 
-
 Package: haskell-devscripts-minimal
 Architecture: all
 Depends: dctrl-tools



View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/commit/6bc47b82f790ce2e85fbba2633f44848ceed9f6a

---
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/commit/6bc47b82f790ce2e85fbba2633f44848ceed9f6a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-commits/attachments/20180410/667855ff/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list