Package: libghc6-binary-dev
Version: 0.4.1-3
Severity: important

Hi,

If the user running the install script has a local version of the binary
package installed, then the installation script fails, due to ghc-pkg being
called with incorrect arguments.

More specifically, in the postinst script, OLDVERSION ends up with multiple
versions, and ghc-pkg receives an extra argument:

    OLDVERSION=`$GHC_PKG --global field binary version 2> /dev/null | sed 
"s/version: //"`
    if [ -n "$OLDVERSION" ] ; then
        $GHC_PKG --global hide binary-$OLDVERSION
    fi

(--global, for some reason, still reads the user's package.conf)

Since, as far as Debian's concerned, only one version of haskell-binary can be
installed, a simple workaround would be to avoid messing with the exposed field
of the packages and just adopt the approach used by e.g. haskell-mtl.

Cheers,
/Liyang

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (80, 'unstable'), (70, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libghc6-binary-dev depends on:
ii  ghc6                          6.8.2-5    GHC - the Glasgow Haskell Compilat

libghc6-binary-dev recommends no packages.

Versions of packages libghc6-binary-dev suggests:
pn  libghc6-binary-doc            <none>     (no description available)

-- no debconf information

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




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

Reply via email to