Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696998 - net-print/hplip-3.19.8 - "Illegal option keyword string" caused by "Custom/Custom" lines in ppd files
Summary: net-print/hplip-3.19.8 - "Illegal option keyword string" caused by "Custom/Cu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-08 17:19 UTC by Kenneth G. Strawn
Modified: 2020-05-29 15:04 UTC (History)
2 users (show)

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


Attachments
Patch the ebuild to substitute all problematic lines from ppd files (0001-Fix-Illegal-option-keyword-string-errors.patch,1.03 KB, patch)
2019-10-08 17:21 UTC, Kenneth G. Strawn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth G. Strawn 2019-10-08 17:19:14 UTC
Need to do some manual editing of ppd files post-installation because "Custom/Custom" and "Custom.FB/Borderless" are unrecognized/invalid keywords ― see https://bbs.archlinux.org/viewtopic.php?pid=1861730#p1861730 for more details

Reproducible: Always

Steps to Reproduce:
1. emerge net-print/hplip
2. Attempt to add a printer
Actual Results:  
Various errors, all interconnected:
* "successful-ok-ignored-or-substituted-attributes"
* (On attempt to "zcat $file.ppd.gz | cupstestppd -") "Illegal option keyword string on line X

Expected Results:  
Should add printers successfully, no matter what setup utility used

Attaching an ebuild patch that fixes the problem.
Comment 1 Kenneth G. Strawn 2019-10-08 17:21:16 UTC
Created attachment 592216 [details, diff]
Patch the ebuild to substitute all problematic lines from ppd files

Untested as-is, but sed should do the trick for changing all "Custom" lines to "Other" which did solve the problem when attempting to add my printer.
Comment 2 Kenneth G. Strawn 2019-10-16 21:13:17 UTC
Don't see any progress here. The fact that HPLIP failed to add a printer with the old lines but succeeded with the new ones specified by the patched ebuild should be noted. All you have to do to fix this bug is merge my patch.
Comment 3 Daniel Pielmeier gentoo-dev 2019-10-17 04:18:44 UTC
Thank you for your contribution! Is this issue also tracked at the hplip bug tracker? It should be reported there as well so it can get fixed at the source. At quick glance I found nothing.
Comment 4 Kenneth G. Strawn 2019-10-17 04:45:40 UTC
Per the patch, using sed to change all “Custom” lines to “Other” fixes the problem.
Comment 5 Daniel Pielmeier gentoo-dev 2019-10-17 20:38:33 UTC
After some investigation I found that this is not a hplip bug but a cups bug. Other packages providing ppd with "Custom" options files will have the same problem.

The linked upstream bug already contains a "fix" for the issue.
Comment 6 Daniel Pielmeier gentoo-dev 2020-05-29 15:04:40 UTC
According to cups upstream this should be fixed with cups-2.3.1!