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.
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.
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.
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.
Per the patch, using sed to change all “Custom” lines to “Other” fixes the problem.
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.
According to cups upstream this should be fixed with cups-2.3.1!