On Tue, 28 Mar 2017, Niels Thykier wrote:

> Package: neurodebian-desktop
> Version: 0.37.5
> Severity: serious


> The neurodebian-desktop package declares an "interest(-await)" trigger
> on /usr/share/icons/gnome.  At the same time, it depends on
> gnome-icon-theme, which provides files in /usr/share/icons/gnome,
> triggering said interest trigger.

> From: 
> https://jenkins.debian.net/job/dpkg_sid_find_trigger_cycles/339/consoleFull

> """
> The cycle is created because when gnome-icon-theme is put into the
> triggers-awaited state (because it triggers neurodebian-desktop), then
> it cannot satisfy dependencies until it leaves that state. But:

>  - for gnome-icon-theme to leave the triggers-awaited state, the
>    trigger has to be resolved by neurodebian-desktop, which cannot
>    happen unless neurodebian-desktop gets configured

>  - to configure neurodebian-desktop, its dependency on
>    gnome-icon-theme has to be resolved which cannot happen unless
>    gnome-icon-theme leaves the triggers-awaited state

> This creates the cycle if the packages are installed in a certain order.
> """


> If at all possible, please migrate to an "interest-noawait" trigger.
> This permits dpkg to defer the trigger to whenever it is convenient in
> the install/upgrade process and is often a much better choice.

> AFAICT, neurodebian-desktop does not appear to be a package where
> deferring the trigger would cause major issues (since it is "only"
> updating a cache).

> Thanks,
> ~Niels

so, smth like

diff --git a/debian/changelog b/debian/changelog
index 6ecf20f..1952eca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+neurodebian (0.37.6) unstable; urgency=medium
+
+  * Switch to use interest-noawait for neurodebian-desktop.trigger
+    to avoid a circular deadlock (Closes: #858920)
+
+ -- Yaroslav Halchenko <deb...@onerussian.com>  Tue, 28 Mar 2017 13:53:19 -0400
+
 neurodebian (0.37.5) unstable; urgency=medium
 
   * debian/control
diff --git a/debian/neurodebian-desktop.triggers 
b/debian/neurodebian-desktop.triggers
index 44fdcbd..2adc7ee 100644
--- a/debian/neurodebian-desktop.triggers
+++ b/debian/neurodebian-desktop.triggers
@@ -1 +1 @@
-interest /usr/share/icons/gnome
+interest-noawait /usr/share/icons/gnome

should resolve this issue, correct? ;)

-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        

Reply via email to