Package: haskell-devscripts
Version: 0.6.10
Severity: important
Tags: patch

dh_haskell_depends fails when processing dependencies on Debian native
Haskell library packages (CosmicRay, I'm looking at you).

As an example, take libghc6-hslogger-dev.  Its version is 1.0.5.0 as
of this writing.  dh_haskell_depends tries to run sed -e 's/-[^-]*$/+/'
on that to add a plus after the string, which will fail.

Consequently, this is the dependency I got for a library I'm
packaging: libghc6-hslogger-dev (>= 1.0.5.0), libghc6-hslogger-dev (<< 1.0.5.0)

That's not installable.  A patch for this:
--- /usr/bin/dh_haskell_depends 2008-03-22 22:28:43.000000000 +0200
+++ dh_haskell_depends  2008-03-31 12:59:39.000000000 +0300
@@ -68,8 +68,8 @@
     local next_upstream_version
     package=$1
     version=`dpkg-query --showformat='${Version}' -W $package` 
-    next_upstream_version=`echo $version | sed -e 's/-[^-]*$/+/'`
-    echo "$package (>= $version), $package (<< $next_upstream_version)"
+    next_upstream_version=`echo $version | sed -e 's/-[^-]*$//'`
+    echo "$package (>= $version), $package (<< $next_upstream_version+)"
 }
 
 dependencies(){

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.23.9 (SMP w/2 CPU cores)
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages haskell-devscripts depends on:
ii  dctrl-tools                   2.12       Command-line tools to process Debi
ii  debhelper                     6.0.10     helper programs for debian/rules
ii  ghc6                          6.8.2-4    GHC - the Glasgow Haskell Compilat
ii  xutils-dev                    1:7.4+1    X Window System utility programs f

haskell-devscripts recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to