Package: ghc6
Version: 6.8.2-7
Severity: important
File: /usr/lib/ghc-6.8.2/bin/ghc-pkg-6.8.2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
this breaks installation of, e.g., libghc6-http-dev if the user’s
package.conf contains a local installtion of HTTP:
$ ghc-pkg list
/usr/lib/ghc-6.8.2/package.conf:
Cabal-1.2.3.0, HaXml-1.13.3, QuickCheck-1.1.0.0, X11-1.4.2,
array-0.1.0.0, base-3.0.1.0, bytestring-0.9.0.1, cairo-0.9.13,
containers-0.1.0.1, directory-1.0.0.0, filepath-1.1.0.0,
(ghc-6.8.2), glib-0.9.13, gtk-0.9.13, haskell98-1.0.1.0,
hpc-0.5.0.0, mtl-1.1.0.0, network-2.1.0.0, old-locale-1.0.0.0,
old-time-1.0.0.0, packedstring-0.1.0.0, parsec-2.1.0.0,
pretty-1.0.0.0, process-1.0.0.0, random-1.0.0.0, readline-1.0.1.0,
rts-1.0, template-haskell-2.2.0.0, unix-2.3.0.0, utf8-string-0.3.3,
xmonad-0.8, zlib-0.4.0.4
/home/jojo/.ghc/x86_64-linux-6.8.2/package.conf:
Cabal-1.6.0.1, HAppS-Data-0.9.3, HAppS-IxSet-0.9.3,
HAppS-Server-0.9.2.2, HAppS-State-0.9.2.2, HAppS-State-0.9.3,
HAppS-Util-0.9.3, HPDF-1.4.0.1, HTTP-3001.1.3, RefSerialize-0.2.3,
X11-1.4.5, {X11-xft-0.3}, binary-0.4.4, ghc-paths-0.1.0.5,
haddock-2.4.1, hslogger-1.0.7, hspread-0.3, html-1.0.1.2,
stm-2.1.1.2, syb-with-class-0.4, time-1.1.2.2, uniplate-1.2.0.3,
xhtml-3000.2.0.1, xmonad-0.8, {xmonad-contrib-0.8}, zlib-0.4.0.4,
zlib-0.5.0.0
$ ghc-pkg --global field HTTP version
version: 3001.1.3
$ cat /var/lib/dpkg/info/libghc6-http-dev.postinst
#!/bin/sh
set -e
# Automatically added by dh_haskell_prep
GHC=ghc-6.8.2
GHC_PKG=/usr/lib/$GHC/bin/ghc-pkg
CONFIGFILE=/usr/lib/haskell-packages/ghc6/lib/HTTP-3001.0.4/installed-pkg-config
case "$1" in
abort-deconfigure|abort-remove|abort-upgrade|configure)
OLDVERSION=`$GHC_PKG --global field HTTP version 2> /dev/null | sed
"s/version: //"`
if [ -n "$OLDVERSION" ] ; then
$GHC_PKG --global hide HTTP-$OLDVERSION
fi
$GHC_PKG --global --auto-ghci-libs register $CONFIGFILE
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
$ LANG=C sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up libghc6-http-dev (30010004-3) ...
ghc-pkg: cannot find package HTTP-3001.1.3
dpkg: error processing libghc6-http-dev (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
libghc6-http-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
I guess ghc-pkg should be patched, so that global has an effect for the field
option.
Thanks,
Joachim
- -- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ghc6 depends on:
ii gcc 4:4.3.2-2 The GNU C compiler
ii haskell-utils 1.11 Utilities used by the Debian Haske
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libgmp3-dev 2:4.2.2+dfsg-3 Multiprecision arithmetic library
ii libgmp3c2 2:4.2.2+dfsg-3 Multiprecision arithmetic library
ii libncurses5 5.7+20081220-1 shared libraries for terminal hand
ii libreadline5 5.2-3 GNU readline and history libraries
ii libreadline5-dev 5.2-3 GNU readline and history libraries
ii perl [perl5] 5.10.0-18 Larry Wall's Practical Extraction
ghc6 recommends no packages.
Versions of packages ghc6 suggests:
ii ghc6-doc 6.8.2-7 Documentation for the Glasgow Hask
ii ghc6-prof 6.8.2-7 Profiling libraries for the Glasgo
pn haskell-doc <none> (no description available)
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkleOyMACgkQ9ijrk0dDIGzJiACfQEzF4qGpC2G4934n/Aa7LCci
/ykAnRa20egVqY+ynS5ypu1SbIIkcUWW
=rYpa
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]