Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180957 - Can the gimp-print ebuild run cups-genppdupdate.5.1 automatically?
Summary: Can the gimp-print ebuild run cups-genppdupdate.5.1 automatically?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 13:09 UTC by Bruce Schultz
Modified: 2007-10-14 07:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Schultz 2007-06-05 13:09:50 UTC
Is it possible to add the cups-genppdupdate.5.1 command to the ebuild to run automatically when gimp-print is upgraded?

A bit of background... After gimp-print upgrading gimp-print, the printer was broken (which is usually the case). But I noticed the following message in the cups error_log when trying to print:

Gutenprint: The version of Gutenprint software installed (5.1.2) does not match the PPD file (5.1.0).
Gutenprint: If you have upgraded your version of Gutenprint
Gutenprint: recently, you must reinstall all printer queues.
Gutenprint: If the previous installed version of Gutenprint
Gutenprint: was 4.3.19 or higher, you can use the `cups-genppdupdate.5.1'
Gutenprint: program to do this; if the previous installed version
Gutenprint: was older, you can use the Modify Printer command via
Gutenprint: the CUPS web interface: http://localhost:631/printers.
Gutenprint: The version of Gutenprint software installed (5.1.2) does not match the PPD file (5.1.0).
PID 29841 (/usr/libexec/cups/filter/rastertogutenprint.5.1) stopped with status 1!
Hint: Try setting the LogLevel to "debug" to find out more.

So instead of reinstalling the printer queues, I tried running cups-genppdupdate.5.1 as suggested, which updated the cups ppd files and after a cupsd restart, all the printers were fixed again. 



Reproducible: Always
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-06-19 07:36:50 UTC
do you have USE=ppds?
Comment 2 Bruce Schultz 2007-07-03 12:25:58 UTC
(In reply to comment #1)
> do you have USE=ppds
yes

Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-07-04 06:25:13 UTC
strange because with USE=ppds it should automatically provide the latest ppds.
Comment 4 Jon Severinsson 2007-07-28 06:58:49 UTC
@Stefan Schweizer

USE=ppds will install the ppds for use with (re)installed printer queues, it does not update the currently installed printer queues, which would be a nice feature.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-10-14 07:26:29 UTC
thanks, that obviously makes sense :)

I added the following code:

    if [ "${ROOT}" == "/" ] && [ -x /usr/sbin/cups-genppdupdate.5.1 ]; then
        elog "Updating installed printer ppd files"
        elog $(/usr/sbin/cups-genppdupdate.5.1)
    else
        elog "You need to update installed ppds manually using cups-genppdupdate.5.1"
    fi

I hope it works well :)
Thank you!