Bug#774558: grace: dpkg trigger cycle via gsfonts

2015-01-04 Thread Niels Thykier
Package: grace
Version: 1:5.1.24-2
Severity: serious

Hi,

The grace package has a trigger cycle via the gsfonts package.  This
was detected by a script on jenkins.debian.net[1].

Steps to reproduce the cycle (in a Jessie/sid chroot):


apt-get install gsfonts grace
dpkg --unpack /var/cache/apt/archives/gsfonts_${GSFONTS_VERSION}_*.deb
dpkg --configure --pending


This simulates an upgrade scenario, where gsfonts might be temporarily
deconfigured while gsfonts remains configured.  If this happens, dpkg
is unable to recover as the cycle requires gsfonts to be configured
for it to run the trigger becayse grace depends on gsfonts.

Known solutions:

 * Use no-await triggers.  *CAVEAT*: not always applicable.  Known suitable
   use cases includes cache handling, where the cache is allowed to be
   out of date tempoarily.
 * Reduce the dependency to Recommends.  *CAVEAT*: Rarely applicable.
 * Rewrite the solution to avoid triggers entirely. *CAVEAT*: May be
   non-trivial and likely to involve updates to at least gsfonts.

~Niels

[1] 
https://jenkins.debian.net/view/Warnings/job/dpkg_sid_find_trigger_cycles/24/console


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#774558: grace: dpkg trigger cycle via gsfonts

2015-01-04 Thread Nicholas Breen
On Sun, Jan 04, 2015 at 01:09:52PM +0100, Niels Thykier wrote:
 Package: grace
 Version: 1:5.1.24-2
 Severity: serious
[...]

 This simulates an upgrade scenario, where gsfonts might be temporarily
^^^
 deconfigured while gsfonts remains configured.  If this happens, dpkg
 ^^^

??

  * Use no-await triggers.  *CAVEAT*: not always applicable.  Known suitable
use cases includes cache handling, where the cache is allowed to be
out of date tempoarily.

That's fine for this application.  I'll upload shortly.


-- 
Nicholas Breen
nbr...@debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org