Package: haskell-devscripts Version: 0.6.13 Severity: normal Tags: patch When I try to use it with a package that stores pkg-config in a different place, like gtk2hs, and try to pass the correct place as a parameter, I got:
$ dh_haskell_depends debian/libghc6-glib-dev/usr/lib/haskell-packages/ghc6/lib/glib-0.9.13/glib.package.conf No installed package description files can not be found -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages haskell-devscripts depends on: ii dctrl-tools 2.13.0 Command-line tools to process Debi ii debhelper 7.0.17 helper programs for debian/rules ii ghc6 6.8.2-7 GHC - the Glasgow Haskell Compilat ii xutils-dev 1:7.4+3 X Window System utility programs f haskell-devscripts recommends no packages. haskell-devscripts suggests no packages. -- no debconf information
diff -ruN haskell-devscripts-0.6.13.orig/dh_haskell_depends haskell-devscripts-0.6.13/dh_haskell_depends --- haskell-devscripts-0.6.13.orig/dh_haskell_depends 2008-04-08 02:20:58.000000000 -0300 +++ haskell-devscripts-0.6.13/dh_haskell_depends 2008-10-09 13:17:15.000000000 -0300 @@ -235,19 +235,19 @@ libghc6-*-dev|libghc6-*-prof) config=`find_config_for_ghc6 $pkg` if [ -f "$config" ] ; then - cfiles="$files $config" - fi - if [ -z "$cfiles" ] ; then + files="$files $config" + fi + if [ -z "$files" ] ; then echo "No installed package description files can not be found" >&2 exit 1 fi grep -v ^haskell:Depends $sfile > $sfile.tmp || true case "$pkg" in libghc6-*-dev) - echo "haskell:Depends=`depends_for_ghc6 $cfiles`" >> $sfile.tmp + echo "haskell:Depends=`depends_for_ghc6 $files`" >> $sfile.tmp ;; libghc6-*-prof) - echo "haskell:Depends=`depends_for_ghc6_prof $cfiles`" >> $sfile.tmp + echo "haskell:Depends=`depends_for_ghc6_prof $files`" >> $sfile.tmp ;; esac mv $sfile.tmp $sfile

