Hi, our maintainer scripts are not perfect yet: I have libghc6-x11-dev installed (from testing it). Then I upload it, and apt-get wants to re-install it (for whatever reason, but that is not the point): [..] Vorbereiten zum Ersetzen von libghc6-x11-dev 1.4.5-1 (durch .../libghc6-x11-dev_1.4.5-1_amd64.deb) ... ghc-pkg: unregistering X11-1.4.5 would break the following packages: xmonad-0.8.1 (use --force to override) dpkg: Warnung - altes pre-removal-Skript wurde mit Fehler-Status 1 beendet dpkg - probiere stattdessen Skript aus dem neuen Paket ... dpkg: ... sieht so aus, als hätte das geklappt. [..] Richte libghc6-x11-dev ein (1.4.5-1) ... Writing new package config file... done. Reading package info from "/usr/lib/haskell-packages/ghc6/lib/X11-1.4.5/installed-pkg-config" ... done. ghc-pkg: package X11-1.4.5 is already installed dpkg: Fehler beim Bearbeiten von libghc6-x11-dev (--configure): Unterprozess post-installation script gab den Fehlerwert 1 zurück dpkg: Abhängigkeitsprobleme verhindern Konfiguration von libghc6-x11-prof: libghc6-x11-prof hängt ab von libghc6-x11-dev (= 1.4.5-1); aber: Paket libghc6-x11-dev ist noch nicht konfiguriert. dpkg: Fehler beim Bearbeiten von libghc6-x11-prof (--configure): Abhängigkeitsprobleme - lasse es unkonfiguriert [..] (I hope the German locale is not an issue here) What happens is that the prerm script of the old package fails to remove the package (because it would make the data base inconsistent), but the postinst doesn’t work, because X11-1.4.5 is already installed. Changing "register" to "update" in the postinst fixes this. Marco, you had that change ready, right? Could we upload a version of haskell-devscripts with the already finished changes of yours? I’m also not sure if we really should unregister the package in prerm during upgrade. As we call "update" in the new postinst, it should be safe to leave not touch the package library at that point. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil