Package: fusiondirectory
Version: 1.0.19-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu cosmic ubuntu-patch

Dear Maintainer,

"await" triggers are run before a package is configured. If B activates A,
then A's trigger code in the postinst must be run before A can be configured.

Triggers do not specify a ordering dependency however, so apt can very well
have A in a state where it is not configurable, and installing B then fails.
This is a limitation of triggers: They are not exposed in Packages files, so
we don't see them.

What this means is that packages with await triggers either need to have all
triggering packages depend on them (e.g. B Depends A), or they need to be
moved to noawait.


*** /tmp/tmpB12mXt/bug_body

>From my quick look at fusiondirectory, there seems to be no particular reason
for triggers to be in "await" state, so the included patch specifies the
triggers explicitly as "noawait":

  * debian/fusiondirectory.triggers: Be specific about using interest-noawait
    for the triggers -- there's no need to block in awaiting the triggers for
    locale, plugins updates. (LP: #1780996)


Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers cosmic
  APT policy: (500, 'cosmic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-23-generic (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), 
LANGUAGE=ja:fr_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru fusiondirectory-1.0.19/debian/fusiondirectory.triggers 
fusiondirectory-1.0.19/debian/fusiondirectory.triggers
--- fusiondirectory-1.0.19/debian/fusiondirectory.triggers      2014-08-08 
05:06:26.000000000 -0400
+++ fusiondirectory-1.0.19/debian/fusiondirectory.triggers      2018-07-12 
10:49:07.000000000 -0400
@@ -1,2 +1,2 @@
-interest fusiondirectory-setup
-interest /usr/share/fusiondirectory/plugins
+interest-noawait fusiondirectory-setup
+interest-noawait /usr/share/fusiondirectory/plugins

Reply via email to