[Pkg-haskell-commits] darcs: ghc: Avoid "hPutChar: resource vanished" message and simplify postinst script (Closes: #619403)
Joachim Breitner
mail at joachim-breitner.de
Sat Apr 9 17:37:16 UTC 2011
Sat Apr 9 11:48:24 UTC 2011 Joachim Breitner <mail at joachim-breitner.de>
* Avoid "hPutChar: resource vanished" message and simplify postinst script (Closes: #619403)
Ignore-this: 597a4b71c2d22fe387a0752be4dd447d
M ./changelog +2
M ./ghc.postinst.in -9 +1
Sat Apr 9 11:48:24 UTC 2011 Joachim Breitner <mail at joachim-breitner.de>
* Avoid "hPutChar: resource vanished" message and simplify postinst script (Closes: #619403)
Ignore-this: 597a4b71c2d22fe387a0752be4dd447d
diff -rN -u old-ghc/changelog new-ghc/changelog
--- old-ghc/changelog 2011-04-09 17:37:16.144795067 +0000
+++ new-ghc/changelog 2011-04-09 17:37:16.292802845 +0000
@@ -5,6 +5,8 @@
* Remove Build-Depend alternative ghc6, and also remove Provides: ghc6, as
this is a lie and I see no techical reason for it.
* New upstream release
+ * Avoid "hPutChar: resource vanished" message and simplify postinst script
+ (Closes: #619403)
-- Joachim Breitner <nomeata at debian.org> Sat, 09 Apr 2011 17:06:18 +0530
diff -rN -u old-ghc/ghc.postinst.in new-ghc/ghc.postinst.in
--- old-ghc/ghc.postinst.in 2011-04-09 17:37:16.144795067 +0000
+++ new-ghc/ghc.postinst.in 2011-04-09 17:37:16.152795487 +0000
@@ -27,17 +27,9 @@
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
-if $libdir/bin/ghc --info | grep -q '"Have interpreter","YES"' ; then
- NEED_INTERPRETER="\
- --slave $execdir/runghc runghc $bindir/runghc \
- --slave $execdir/ghci ghci $bindir/ghci \
- --slave $mandir/man1/ghci.1.gz ghci.1.gz $mandir/man1/ghc.1.gz \
- --slave $mandir/man1/runghc.1.gz runghc.1.gz $mandir/man1/runghc.1.gz"
-fi
-
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
- if [ -n "$NEED_INTERPRETER" ] ; then
+ if $libdir/bin/ghc --info | grep '"Have interpreter","YES"' >/dev/null ; then
update-alternatives \
--install $execdir/runhaskell runhaskell $execdir/runghc 8600000600 \
--slave $mandir/man1/runhaskell.1.gz runhaskell.1.gz $mandir/man1/runghc.1.gz
More information about the Pkg-haskell-commits
mailing list