[Pkg-haskell-maintainers] Bug#769554: Bug#769554: libghc-authenticate-doc: package fails to upgrade properly from wheezy

Joachim Breitner nomeata at debian.org
Sun Nov 23 10:13:28 UTC 2014


Hi,


Am Freitag, den 14.11.2014, 14:49 +0100 schrieb Joachim Breitner:
> We might have to add some pre-depends somewhere. Is anyone volunteering
> to look into this issue?

I take that as a no.

So here is my analysis:

ghc-doc’s trigger runs haddock. Haddock requires libffi6. For some
reason, apt tries to run the trigger before all of ghc-haddock’s
dependencies are installed. Here are the relevant bits from the log at
http://aws-logs.debian.net/ftbfs-logs/2014/11/14/libghc-authenticate-doc_jessie_upgrade.log.gz

   The following NEW packages will be installed:
     libdevmapper1.02.1 libdns-export100 libexpat1 libfcgi-perl libffi6
   The following packages will be upgraded:
     ghc-haddock grep ifupdown initscripts iproute libapt-pkg4.12 libc-bin
   Get:38 http://localhost/debian/ jessie/main ghc-haddock amd64 7.6.3-19 [4270 kB]
   Get:97 http://localhost/debian/ jessie/main libffi6 amd64 3.1-2 [19.8 kB]
[...]
   Preparing to replace libghc-tagged-doc 0.4.2.1-1 (using .../libghc-tagged-doc_0.7.2-1_all.deb) ...
   Unpacking replacement libghc-tagged-doc ...
   Preparing to replace ghc-haddock 7.4.1-4 (using .../ghc-haddock_7.6.3-19_amd64.deb) ...
   Unpacking replacement ghc-haddock ...
   Preparing to replace libghc-socks-dev 0.4.1-1+b4 (using .../libghc-socks-dev_0.5.4-1+b1_amd64.deb) ...
   Unpacking replacement libghc-socks-dev ...
[.. note no installation of libffi6 yet ..]
Unpacking replacement libghc-enumerator-dev ...
   Preparing to replace libghc-parsec3-dev 3.1.2-1+b3 (using .../libghc-parsec3-dev_3.1.3-3+b1_amd64.deb) ...
   Unpacking replacement libghc-parsec3-dev ...
   Processing triggers for ghc-doc ...
   + set -e
   + test -x /usr/lib/ghc/bin/ghc-pkg
   + /usr/lib/ghc/bin/ghc-pkg recache --global
   + /usr/lib/ghc-doc/gen_contents_index
   haddock: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
   dpkg: error processing ghc-doc (--unpack):
    subprocess installed post-installation script returned error exit status 127


Unfortunately
https://www.debian.org/doc/debian-policy/ch-relationships.html only
talks about configuring and running postinst, but not triggers, 

Hence my question to those in the know (hence CC’ing debian-dpkg):
How do I make sure that ghc-doc’s trigger is not run until all of
ghc-doc’s dependencies (and their dependencies) are installed (not
necessarily configured).

The current chain of dependencies is:
Package: ghc-doc
Depends: haddock-interface-22, perl

Package: ghc-haddock
Provides: haddock, haddock-interface-21, haddock-interface-22
Depends: ghc (= 7.6.3-19), libc6 (>= 2.14), libffi6 (>= 3.0.4), libgmp10



(Alternatively, maybe ghc-doc’s trigger should simply fail less hard,
under the assumption that the final trigger run should work, and if not,
a broken documentation index is sever enough to abort an upgrade.)

Greetings,
Joachim



-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20141123/e7dd7190/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list