Bug 757760 - printer not installed
Summary: printer not installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups-pdf
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-28 16:09 UTC by ambrish dhaka
Modified: 2012-01-16 21:23 UTC (History)
2 users (show)

Fixed In Version: cups-pdf-2.6.1-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-16 21:23:30 UTC
Type: ---


Attachments (Terms of Use)

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.


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