Bug 757760

Summary: printer not installed
Product: [Fedora] Fedora Reporter: ambrish dhaka <ambijat>
Component: cups-pdfAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: fedora, michal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cups-pdf-2.6.1-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-16 21:23:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ambrish dhaka 2011-11-28 16:09:10 UTC
I am trying to install cups-pdf. It installs but when I use print command, there is no cups-pdf printer available there. I have tried reinstall process, same result. Need this facility urgent.
Ambrish Dhaka

Comment 1 Michal Jaegermann 2012-01-05 04:36:43 UTC
(In reply to comment #0)
> I am trying to install cups-pdf. It installs but when I use print command,
> there is no cups-pdf printer available there. I have tried reinstall process,
> same result.

cups-pdf package has the following package script with a faulty assumption that if cupsd is running that /var/run/cupsd.pid does exist.  Like this:

# First install : create the printer if cupsd is running
if [ "$1" -eq "1" -a -f "/var/run/cupsd.pid" ]
then

    if [ -d /proc/$(cat /var/run/cupsd.pid) ]
    then
        /usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E || :
    fi
fi

It could have used pidof or pgrep instead.  On Fedora 16 a test for an existence of /var/run/cupsd.pid always fails; this file is simply NOT created.

A workaround - after you installed the package run, as root,

 lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E

yourself.  It appears that there is no way to create this queue with a help of system-config-printer although it will show up once created as above.

Comment 2 Remi Collet 2012-01-05 06:22:25 UTC
(In reply to comment #1)
> existence of /var/run/cupsd.pid always fails; this file is simply NOT created.

Thanks for the headup, update pending.

Comment 3 Fedora Update System 2012-01-05 06:26:06 UTC
cups-pdf-2.6.1-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/cups-pdf-2.6.1-1.fc16

Comment 4 Fedora Update System 2012-01-07 23:03:53 UTC
Package cups-pdf-2.6.1-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-pdf-2.6.1-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0196/cups-pdf-2.6.1-1.fc16
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-16 21:23:30 UTC
cups-pdf-2.6.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.