[Pkg-haskell-commits] darcs: haskell-devscripts: Avoid adding dependencies on libffi and libgmp to libghc-*-foo (Closes: 639015)

Joachim Breitner mail at joachim-breitner.de
Fri May 24 09:18:07 UTC 2013


Fri May 24 07:41:03 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Avoid adding dependencies on libffi and libgmp to libghc-*-foo (Closes: 639015) 
  Ignore-this: a2202a31aaa1f87679a42dec2537f38e

    M ./debian/changelog +2
    M ./dh_haskell_shlibdeps -1 +21

Fri May 24 07:41:03 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Avoid adding dependencies on libffi and libgmp to libghc-*-foo (Closes: 639015) 
  Ignore-this: a2202a31aaa1f87679a42dec2537f38e
diff -rN -u old-haskell-devscripts//debian/changelog new-haskell-devscripts//debian/changelog
--- old-haskell-devscripts//debian/changelog	2013-05-24 09:18:07.362540938 +0000
+++ new-haskell-devscripts//debian/changelog	2013-05-24 09:18:07.482539145 +0000
@@ -1,6 +1,8 @@
 haskell-devscripts (0.8.16) UNRELEASED; urgency=low
 
   * Remove some unnecssary build-depends version constraints (found by cme) 
+  * Avoid adding dependencies on libffi and libgmp to libghc-*-foo (Closes:
+    639015) 
 
  -- Joachim Breitner <nomeata at debian.org>  Fri, 24 May 2013 09:22:52 +0200
 
diff -rN -u old-haskell-devscripts//dh_haskell_shlibdeps new-haskell-devscripts//dh_haskell_shlibdeps
--- old-haskell-devscripts//dh_haskell_shlibdeps	2013-05-24 09:18:07.346536525 +0000
+++ new-haskell-devscripts//dh_haskell_shlibdeps	2013-05-24 09:18:07.434535770 +0000
@@ -70,9 +70,29 @@
             echo "module Main where" >> $T_DIR/a.hs
             echo "import \"base\" Prelude" >> $T_DIR/a.hs
             echo "main = return ()" >> $T_DIR/a.hs
+		
+	    # We do not want this package to depend on libffi* and libgmp*, as this dependency
+	    # most likely comes from the RTS, see http://bugs.debian.org/639015
+            ghc --make $T_DIR/a.hs -o $T_DIR/a.out
+	    plain_depends=$(dpkg-shlibdeps -Tdebian/$pkg.substvars $T_DIR/a.out -O)
+	    libffi=$(echo $plain_depends | sed -n '/^shlibs:Depends/s/.*\(libffi[0-9][0-9]*\).*/\1/p')
+	    rm -f a.out
+
+	    if [ -z "$libffi" ]
+	    then
+	    	echo "libffi not used any more?"
+		exit 1
+	    fi
+	    libgmp=$(echo $plain_depends | sed -n '/^shlibs:Depends/s/.*\(libgmp[0-9][0-9]*\).*/\1/p')
+	    if [ -z "$libgmp" ]
+	    then
+	    	echo "libgmp not used any more?"
+		exit 1
+	    fi
+
             ghc --make $T_DIR/a.hs -o $T_DIR/a.out -package-conf \
                 $T_DIR/package.conf -package $pkgname
-            dpkg-shlibdeps -Tdebian/$pkg.substvars $T_DIR/a.out
+            dpkg-shlibdeps -x$libffi -x$libgmp -Tdebian/$pkg.substvars $T_DIR/a.out
             ;;
     esac
 done





More information about the Pkg-haskell-commits mailing list