Bug 1590014 - hplip PPD search doesn't expect '-' in device name
Summary: hplip PPD search doesn't expect '-' in device name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 31
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-11 21:18 UTC by Julien HENRY
Modified: 2020-07-18 01:08 UTC (History)
4 users (show)

Fixed In Version: hplip-3.20.6-1.fc32 hplip-3.20.6-1.fc31
Clone Of:
Environment:
Last Closed: 2020-06-23 01:20:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
System logs (US) when trying to print a test page (224.95 KB, text/plain)
2018-06-13 14:19 UTC, Julien HENRY
no flags Details

Description Julien HENRY 2018-06-11 21:18:20 UTC
Description of problem:

I just installed Fedora 28 from scratch. I tried to configure my network printer (HP Photosmart Premium C309G) which was working fine on Fedora 27, and is working fine on another Fedora 28 (but upgraded from 27).

I installed with hp-setup 192.168.0.100, and the driver selected is 
drv:///hp/hpijs.drv/hp-photosmart_premium_c309g-m-hpijs.ppd

I'm unable to print, all jobs are stuck in the "stopped" state. I tried from LibreOffice and from hplip-gui (test page).

Printing the test page from cups administration interface actually print something, but on the page, there is the message:
If you can read this, you are using the wrong driver for your printer.

Here are debug logs:

juin 11 22:14:19 pcsalon cupsd[15405]: Job stopped due to filter errors; please consult the error_log file for details.
juin 11 22:14:19 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
juin 11 22:14:19 pcsalon cupsd[15405]: cupsdMarkDirty(----S)
juin 11 22:14:19 pcsalon cupsd[15405]: PID 15471 (/usr/lib/cups/backend/hp) exited with no errors.
juin 11 22:14:19 pcsalon cupsd[15405]: PID 15470 (/usr/lib/cups/filter/foomatic-rip) stopped with status 1.
juin 11 22:14:19 pcsalon hp[15471]: prnt/backend/hp.c 913: ERROR: null print job total=0
juin 11 22:14:19 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:19 pcsalon cupsd[15405]: prnt/backend/hp.c 913: ERROR: null print job total=0
juin 11 22:14:18 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:17 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:16 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:15 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:14 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:13 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:12 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:11 pcsalon cupsd[15405]: Killing kid3
juin 11 22:14:11 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:10 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:09 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:08 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Waiting for request.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] New state is HTTP_STATE_WAITING
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Flushing write buffer.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] bytes=0, http_state=0, data_remaining=398
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=398, response=0x5582>
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] con->http=0x55826d546650
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Content-Length: 398
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Returning IPP successful-ok for Get-Jobs (ipp://localhost/) from localhost
juin 11 22:14:07 pcsalon cupsd[15405]: Get-Jobs ipp://localhost/
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] 1.1 Get-Jobs 46
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] No authentication data provided.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Read: status=200, state=6
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] POST / HTTP/1.1
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Waiting for request.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] New state is HTTP_STATE_WAITING
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Flushing write buffer.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] bytes=0, http_state=0, data_remaining=449
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=449, response=0x5582>
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] con->http=0x55826d542300
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Content-Length: 449
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
juin 11 22:14:07 pcsalon cupsd[15405]: CUPS-Get-Printers
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] 1.1 CUPS-Get-Printers 45
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] No authentication data provided.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] Read: status=200, state=6
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 8] POST / HTTP/1.1
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Waiting for request.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] New state is HTTP_STATE_WAITING
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Flushing write buffer.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] bytes=0, http_state=0, data_remaining=8782
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=8782, response=0x558>
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Flushing write buffer.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] bytes=0, http_state=0, data_remaining=8782
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=8782, response=0x558>
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] con->http=0x55826d546650
juin 11 22:14:07 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Content-Length: 8782
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost
juin 11 22:14:07 pcsalon cupsd[15405]: CUPS-Get-Default
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] 1.1 CUPS-Get-Default 44
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] No authentication data provided.
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] Read: status=200, state=6
juin 11 22:14:07 pcsalon cupsd[15405]: cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"
juin 11 22:14:07 pcsalon cupsd[15405]: [Client 9] POST / HTTP/1.1
juin 11 22:14:06 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:05 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:04 pcsalon cupsd[15405]: Expiring subscriptions...
juin 11 22:14:03 pcsalon cupsd[15405]: Killing pdf-to-ps
juin 11 22:14:03 pcsalon cupsd[15405]: Cleaning up...
juin 11 22:14:03 pcsalon cupsd[15405]: Possible error on renderer command line or PostScript error. Check options.Process is dying with \"Encountered error Broken pipe during fwrite\">
juin 11 22:14:03 pcsalon cupsd[15405]: renderer exited with status 1
juin 11 22:14:03 pcsalon cupsd[15405]: /bin/bash: setpagedevice: Permission non accordée
juin 11 22:14:03 pcsalon cupsd[15405]: /bin/bash: avertissement :« here-document » à la ligne 0 délimité par la fin du fichier (au lieu de « /Duplex »)
juin 11 22:14:03 pcsalon cupsd[15405]: <job data>
juin 11 22:14:03 pcsalon cupsd[15405]: JCL: \033%-12345X@PJL
juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"renderer\" (generation 2)
juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"kid4\" (generation 2)
juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"kid3\" (generation 1)
juin 11 22:14:03 pcsalon cupsd[15405]: Starting renderer with command: \"gs -sstdout=%stderr  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs<</Duplex false/T>
juin 11 22:14:03 pcsalon cupsd[15405]: Flushing FIFO.

I have read that hpijs is deprecated, and that hpcups driver should be preferred. After spending hours to find how I can select the driver (I was unable to do it with hp-setup or cups administration), I used KDE Printer configuration wizard to change the driver to the hpcups one. And it worked!

Could it be possible to fix printer installation so that the correct driver is selected by default?

Comment 1 Zdenek Dohnal 2018-06-13 06:35:28 UTC
Hi Julien,

thank you for reporting this issue! Would you mind trying the newest updates from updates-testing for cups-filters and cups if it helps? If not, there can be error in ghostscript itself, according:

(In reply to Julien HENRY from comment #0)
> juin 11 22:14:03 pcsalon cupsd[15405]: Killing pdf-to-ps
> juin 11 22:14:03 pcsalon cupsd[15405]: Cleaning up...
> juin 11 22:14:03 pcsalon cupsd[15405]: Possible error on renderer command
> line or PostScript error. Check options.Process is dying with \"Encountered
> error Broken pipe during fwrite\">
> juin 11 22:14:03 pcsalon cupsd[15405]: renderer exited with status 1
> juin 11 22:14:03 pcsalon cupsd[15405]: /bin/bash: setpagedevice: Permission
> non accordée
> juin 11 22:14:03 pcsalon cupsd[15405]: /bin/bash: avertissement :«
> here-document » à la ligne 0 délimité par la fin du fichier (au lieu de «
> /Duplex »)
> juin 11 22:14:03 pcsalon cupsd[15405]: <job data>
> juin 11 22:14:03 pcsalon cupsd[15405]: JCL: \033%-12345X@PJL
> juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"renderer\"
> (generation 2)
> juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"kid4\" (generation
> 2)
> juin 11 22:14:03 pcsalon cupsd[15405]: Starting process \"kid3\" (generation
> 1)
> juin 11 22:14:03 pcsalon cupsd[15405]: Starting renderer with command: \"gs
> -sstdout=%stderr  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs
> -sIjsServer=hpijs<</Duplex false/T>

Comment 2 Julien HENRY 2018-06-13 07:22:09 UTC
Hi Zdenek,

I can't find any update for cups and cups-filters in updates-testing. I see there is an update of hplip. Is it was you are talking about?

Comment 3 Zdenek Dohnal 2018-06-13 07:54:01 UTC
Oh, my bad - they are still in pending state before going to testing repository - you can find them in bodhi itself for now.

Comment 4 Julien HENRY 2018-06-13 08:03:18 UTC
This is https://bodhi.fedoraproject.org/updates/FEDORA-2018-5e48964321 right? Then they should appear soon in the update-testing repo. As soon as it is available I'll let you know.

Comment 5 Zdenek Dohnal 2018-06-13 08:11:01 UTC
When you open the bodhi website and go to the build tab, there is link to koji build, where are rpms which you can install too.

Comment 6 Julien HENRY 2018-06-13 08:24:21 UTC
I installed cups 2.2.6-15.fc28 and cups-filters 20.0-9.fc28, restarted cups.service, reverted to the hpijs driver, but I still have the same error.

Comment 7 Zdenek Dohnal 2018-06-13 08:46:31 UTC
And hp-setup still installs your printer with hpijs driver?

Comment 8 Julien HENRY 2018-06-13 08:54:41 UTC
Yep:

# hp-setup -i 192.168.0.100

HP Linux Imaging and Printing System (ver. 3.18.4)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


Setting up device: hp:/net/Photosmart_Premium_C309g-m?ip=192.168.0.100



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Photosmart_Premium_C309g-m'*, q=quit) ?
Using queue name: Photosmart_Premium_C309g-m
Locating PPD file... Please wait.

Found PPD file: drv:///hp/hpijs.drv/hp-photosmart_premium_c309g-m-hpijs.ppd

Comment 9 Zdenek Dohnal 2018-06-13 11:47:47 UTC
Thank you for the info! I'm sorry to bother you - can you try the hplip update too? Because hplip needs cups running for finding the proper ppd - the newest update makes sure the cups is running.

Comment 10 Julien HENRY 2018-06-13 12:12:50 UTC
Still the same:

# hp-setup -i 192.168.0.100

HP Linux Imaging and Printing System (ver. 3.18.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


Setting up device: hp:/net/Photosmart_Premium_C309g-m?ip=192.168.0.100



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Photosmart_Premium_C309g-m'*, q=quit) ?
Using queue name: Photosmart_Premium_C309g-m
Locating PPD file... Please wait.

Found PPD file: drv:///hp/hpijs.drv/hp-photosmart_premium_c309g-m-hpijs.ppd
Description: 

Note: The model number may vary slightly from the actual model number on the device.


> Because hplip needs cups running for finding the proper ppd

I don't know if this is expected, but I get many KO from hp-check:

# hp-check -t

 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

-------------------------
| External Dependencies |
-------------------------

 error: cups          CUPS - Common Unix Printing System                           REQUIRED        1.1             -               INCOMPAT   'CUPS may not be installed or not running'
 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.23            OK         -
 error: xsane         xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             -               MISSING    'xsane needs to be installed'
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.27          OK         -
 error: dbus          DBus - Message bus system                                    REQUIRED        -               1.12.8          MISSING    'DBUS may not be installed or not running'
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.114           OK         -
 network              network -wget                                                OPTIONAL        -               1.19.5          OK         -
 error: avahi-utils   avahi-utils                                                  OPTIONAL        -               -               MISSING    'avahi-utils needs to be installed'

Comment 11 Zdenek Dohnal 2018-06-13 13:55:29 UTC
And would you mind setting your system locale to US (I'm sorry, I don't understand French in log...) and attaching cupsd log again with English locale? And can you send output of command 'rpm -qV ghostscript' if any?

Comment 12 Julien HENRY 2018-06-13 14:19:51 UTC
Created attachment 1450932 [details]
System logs (US) when trying to print a test page

ghostscript is not installed

Comment 13 Julien HENRY 2018-06-13 14:21:05 UTC
My bad, rpm -qV ghostscript returns nothing, but ghostscript *is* installed

Comment 14 Ben Cotton 2019-05-02 21:35:26 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 15 Ben Cotton 2019-05-28 20:38:32 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 16 Julien HENRY 2019-12-02 15:15:57 UTC
Still valid with a clean Fedora 31.
I installed clean KDE desktop + hplip-gui. When I setup my printer, the hpijs driver is selected, and I'm unable to print.
Manually switching to hpcups fix the issue.

Comment 17 Zdenek Dohnal 2020-05-28 09:46:14 UTC
I was able to reproduce with file device print queue and ppd from hplip.

Comment 18 Zdenek Dohnal 2020-05-29 05:33:47 UTC
There are two issues:

1. IMO hpcups driver should be preferred instead of old hpijs driver

2. foomatic-rip filter ends with error - probably due following ghostscript command:

gs -sstdout=%stderr  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs<</Duplex false/Tumble false>>setpagedevice -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sDeviceManufacturer=\"HEWLETT-PACKARD\" -sDeviceModel=\"deskjet 5600\" -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=%stdout -_

Ad 1. I'll try to fake the argument of function which looks for PPDs to fake that my printer is HP Photosmart c309g

Ad 2. I'll get the file which goes to foomatic-rip and simulate the filtering process.

Comment 19 Zdenek Dohnal 2020-05-29 07:15:04 UTC
Ad 1.

Ok, faking the device seems to work for debug purposes.

The device falls through the first searching algorithm because of the following issue:

driver string name: drv:///hp/hpijs.drv/hp-photosmart_premium_c309g-m-hpijs.ppd is matched to regexp pattern and gives string 'photosmart_premium_c309g' which is used to compare with stripped model name 'photosmart_premium_c309g-m', which comes from the device.

So it falls through because the regexp pattern doesn't match to '-m'.

The second searching algorithm is able to find the right drivers, but still does not expect '-m' and thinks it is a PDL name... then it searches for pdl priority of 'm' and thinks it is a new PDL, so it returns the first match, which is hpijs driver...

Comment 20 Zdenek Dohnal 2020-06-01 11:40:53 UTC
I rewrote the searching algorithm to sanitize strings with '-' in the end - it now checks if it is known PDL (ps, pdf etc.) or filter type (hpcups, hpijs) and if it is neither of them, it thinks it is a part of device name.

I'll rename the summary and if I find more info about 2), I'll find a bug for it.

Comment 21 Zdenek Dohnal 2020-06-01 11:59:37 UTC
Commit for fixing search engine https://src.fedoraproject.org/rpms/hplip/c/458a657499eca3aa9a2944ccd832f3e76b0f9ea0?branch=master .

Comment 22 Zdenek Dohnal 2020-06-04 13:24:17 UTC
So printing with hpijs choke because of following:

hplip hpijs ppd defines following foomatic-rip command:

gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs%A%B%C -dIjsUseOutputFD%Z -sOutputFile=- -

The important part are variables %A%B%C , which are substituted in foomatic-rip.

Especially expectation of what will be substituted for %A is different from POV of PPD and foomatic-rip:

- PPD expects foomatic-rip will put -dDuplex=false from PPD, which doesn't matter where you put it in gs cmd line
- but foomatic-rip substitutes it with raw postscript commands - <</Duplex false/Tumble false>>setpagedevice - which needs to be in -c "" and at the end of gs cmd line

Working gs command from upstream (how it should look like):
gs -sstdout=%stderr  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -ssDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="deskjet 5600" -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7  -dIjsUseOutputFD -sOutputFile=%stdout -c"<< /Duplex false/Tumble false>> setpagedevice" -_


But neither foomatic-rip or foomaticripcommand in PPD tells it should be in '-c""; - like -c"<</Duplex false/Tumble false>>setpagedevice", or moves it to the end of gs cmd line.

It can be solved by making foomatic-rip more robust, sanitize the foomaticripcommand lines from PPD and change to the correct form to make it work with gs, but IMO it is not priority since hpijs is deprecated.

Comment 23 Fedora Update System 2020-06-05 07:48:02 UTC
FEDORA-2020-c77d623d5f has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c77d623d5f

Comment 24 Fedora Update System 2020-06-05 08:03:10 UTC
FEDORA-2020-bcc8cef31e has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-bcc8cef31e

Comment 25 Fedora Update System 2020-06-07 21:44:28 UTC
FEDORA-2020-bcc8cef31e has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-bcc8cef31e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-bcc8cef31e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 26 Fedora Update System 2020-06-08 01:45:49 UTC
FEDORA-2020-c77d623d5f has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c77d623d5f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c77d623d5f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 27 Fedora Update System 2020-06-16 12:04:37 UTC
FEDORA-2020-3ec2da7668 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3ec2da7668

Comment 28 Fedora Update System 2020-06-16 12:18:28 UTC
FEDORA-2020-407a05acd2 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-407a05acd2

Comment 29 Fedora Update System 2020-06-18 13:40:47 UTC
FEDORA-2020-407a05acd2 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-407a05acd2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-407a05acd2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 30 Fedora Update System 2020-06-18 14:13:05 UTC
FEDORA-2020-3ec2da7668 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3ec2da7668`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3ec2da7668

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 31 Fedora Update System 2020-06-22 08:57:14 UTC
FEDORA-2020-63fd65420b has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-63fd65420b

Comment 32 Fedora Update System 2020-06-22 08:58:01 UTC
FEDORA-2020-3013e53d34 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3013e53d34

Comment 33 Fedora Update System 2020-06-23 01:20:57 UTC
FEDORA-2020-3013e53d34 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 34 Fedora Update System 2020-07-18 01:08:12 UTC
FEDORA-2020-63fd65420b has been pushed to the Fedora 31 stable repository.
If problem still persists, 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.