[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#772871: cups: Trigger cycle causes dpkg to fail processing



Control: tags -1 +patch +pending

Hi Guillem, and thanks for your bugreport,

Le jeudi, 11 décembre 2014, 21.49:57 Guillem Jover a écrit :
> This package can get involved in a trigger cycle. The problem is that
> it installs interests on /usr/share/cups/ppd-updaters with files there
> provided by cups-filters, which is directly or transitively depended
> on by cups itself.

I must say that I'm quite surprised to see this bug now deep in the 
Jessie freeze given that the trigger has been in place since 1.5.0-2 
uploaded in August 2011, and cups-filters has been triggering it since 
at least 1.0~b1-1 in January 2012.

Apparently, the #771765 is an incarnation of this problem.

> A solution to the above is to simply switch the triggers to their
> noawait variants, in this case from «interest» to «interest-noawait»,
> as long as they are not critical for the activating packages, which I
> cannot tell here. Otherwise a fix might unfortunatly be more involved.

The trigger allows cups to update its queues' configuration 
(/etc/cups/PPD/*) according to the new drivers. That said, not doing so 
keeps working CUPS queues in most cases. I wouldn't say that it's 
critical, and will therefore proceed with an upload including your 
proposed patch.

Best regards, thanks,
OdyX
>From 53a8436893f4553cf4dc2af02b7d187f1b9a3b8b Mon Sep 17 00:00:00 2001
From: Didier Raboud <odyx@debian.org>
Date: Fri, 12 Dec 2014 12:59:43 +0100
Subject: [PATCH] Change ppd-updaters trigger to use 'interest-noawait' instead
 of 'interest' to avoid trigger cycles

Thanks-To: Guillem Jover <guillem@debian.org>
Closes: #772871
Closes: #771765
---
 debian/cups.triggers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/cups.triggers b/debian/cups.triggers
index 7c73fe1..e741a7b 100644
--- a/debian/cups.triggers
+++ b/debian/cups.triggers
@@ -1,4 +1,4 @@
 # Trigger is activated when a driver touches a file named after the binary
 # package name containing proper DRIVER_REGEXP and GENNICKNAME_REGEXP shell
 # variables in the /usr/share/cups/ppd-updaters/ directory
-interest /usr/share/cups/ppd-updaters
+interest-noawait /usr/share/cups/ppd-updaters
-- 
2.1.3


Reply to: