Hi. Em Mon, 6 Jul 2009 10:17:17 -0300 Marco Túlio Gontijo e Silva <mar...@riseup.net> escreveu: (...) > I'll try to reproduce it with --global in the prerm script. If it > works, I'll prepare a haskell-devscripts package with this fix.
It didn't worked. I got the same problems with --global: mar...@zezinho:~/.cabal/tmp$ cat /var/lib/dpkg/info/libghc6-parsec3-dev.prerm #!/bin/sh set -e # Automatically added by dh_haskell_prep GHC_PKG=/usr/lib/ghc-6.10.3/./bin/ghc-pkg CONFIGFILE=/usr/lib/haskell-packages/ghc6/lib/parsec-3.0.0/installed-pkg-config case "$1" in deconfigure|remove) $GHC_PKG unregister --global --force-files parsec-3.0.0 || true OLDPACKAGE=`$GHC_PKG --global latest parsec 2> /dev/null` || true if [ -n "$OLDPACKAGE" ] ; then $GHC_PKG expose --global $OLDPACKAGE || true fi ;; upgrade) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # arch-tag: haskell-devscripts generic GHC prerm template # End automatically added section mar...@zezinho:~/.cabal/tmp$ sudo dpkg -r libghc6-parsec3-dev (Lendo banco de dados ... 171101 arquivos e diretórios atualmente instalados). Removendo libghc6-parsec3-dev ... ghc-pkg: unregistering parsec-3.0.0 would break the following packages: network-2.2.1.3 (use --force to override) Writing new package config file... done. Using --force in unregister worked: mar...@zezinho:~/.cabal/tmp$ cat /var/lib/dpkg/info/libghc6-parsec3-dev.prerm #!/bin/sh set -e # Automatically added by dh_haskell_prep GHC_PKG=/usr/lib/ghc-6.10.3/./bin/ghc-pkg CONFIGFILE=/usr/lib/haskell-packages/ghc6/lib/parsec-3.0.0/installed-pkg-config case "$1" in deconfigure|remove) $GHC_PKG unregister --force parsec-3.0.0 || true OLDPACKAGE=`$GHC_PKG --global latest parsec 2> /dev/null` || true if [ -n "$OLDPACKAGE" ] ; then $GHC_PKG expose $OLDPACKAGE || true fi ;; upgrade) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # arch-tag: haskell-devscripts generic GHC prerm template # End automatically added section mar...@zezinho:~/.cabal/tmp$ sudo dpkg -r libghc6-parsec3-dev (Lendo banco de dados ... 171101 arquivos e diretórios atualmente instalados). Removendo libghc6-parsec3-dev ... unregistering parsec-3.0.0 would break the following packages: network-2.2.1.3 (ignoring) Writing new package config file... done. mar...@zezinho:~/.cabal/tmp/network-2.2.1.3$ ./Setup clean cleaning... mar...@zezinho:~/.cabal/tmp/network-2.2.1.3$ ./Setup configure --user --prefix=$HOME/.cabal Warning: defaultUserHooks in Setup script is deprecated. Configuring network-2.2.1.3... Setup: At least the following dependencies are missing: parsec -any I've made a package with --force. It's available at: http://debian.holoscopio.com/haskell-devscripts/haskell-devscripts_0.6.15+nmu12.dsc . Joachim, can you upload it? Greetings. -- marcot http://marcot.iaaeee.org/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org