Bug 175710 - cupsd not reloaded after uninstall of gimp-print-cups
Summary: cupsd not reloaded after uninstall of gimp-print-cups
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gimp-print
Version: 4.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-14 09:31 UTC by Robert van den Aker
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-15 17:04:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robert van den Aker 2005-12-14 09:31:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Description of problem:
cupsd is not reloaded after uninstalling gimp-print-cups. Therefore /etc/cups/ppds.dat is not rebuilt and will contain stale entries. This will lead to errors when trying to add a printer that uses a PPD from gimp-print-cups.

Version-Release number of selected component (if applicable):
gimp-print-4.2.7-2

How reproducible:
Always

Steps to Reproduce:
1. Install gimp-print-cups
2. Use CUPS web interface to add printer; gimp-print PPD's are listed (as expected)
3. Uninstall gimp-print-cups
4. Use CUPS web interface to add printer; gimp-print PPD's are still listed (not as expected)

Additional info:

Rebuilding ppds.dat by reloading cupsd should occur in the following cases:

1. First install of gimp-print-cups
2. Upgrade of gimp-print-cups
3. (Final) uninstall of gimp-print-cups

Looking at the spec file for gimp-print, the following cases are covered:
(1) is covered by %post
(2) is covered by %postun
(3) is not covered

%postun has the conditional "if [ "$1" -ge "1" ]". I believe this bug can be fixed by removing that conditional (or changing it to "if [ "$1" -ge "0" ]", but that's a bit silly).

I'm setting severity for this bug to low because an easy workaround is present: manually reload cupsd after uninstalling gimp-print-cups.

Comment 1 Tim Waugh 2005-12-15 16:56:19 UTC
Thanks for the report.  Yes, there is no need for the conditional in the %postun.

I have fixed in the devel branch (for Fedora Core / rawhide).

Comment 2 Tim Waugh 2005-12-15 17:04:23 UTC
Since this issue has an easy work-around there will not be an update package for it.


Note You need to log in before you can comment on or make changes to this bug.