Summary: | print/gutenprint: cups-genppd chokes on paper strings | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | freebsd |
Component: | Individual Port(s) | Assignee: | Christoph Moench-Tegeder <cmt> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | ||
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
freebsd
2018-03-23 03:32:55 UTC
related: bug #214304 A commit references this bug: Author: cmt Date: Sat Mar 24 15:31:41 UTC 2018 New revision: 465457 URL: https://svnweb.freebsd.org/changeset/ports/465457 Log: gutenprint: fixes around genppd * in papers.xml, rename "Greeting Card" paper format names to not contain decimal points ("."), as gutenprint's internal list handling rejects points in element names. I guess these paper formats never really worked, but I can't really test this for lack of a supported printer. * create symlink cups-genppd to cups.genppd.5.2 to match documentation. PR: 226863 226865 Reported by: freebsd dreamchaser org Changes: head/print/gutenprint/Makefile head/print/gutenprint/files/patch-src_xml_papers.xml head/print/gutenprint/pkg-plist That's a funny one. Paper names are declared as xsd:normalizedString, but the list handling in gutenprint imposes additional restrictions (i.e. no decimal points) on list element names. This restriction may be arbitrary, or have some deeper meaning in the internal workings of printers, PPDs and gutenprint (which I couldn't find on a quick glance). As there's quite a chance that these paper formats never have worked, I just renamed them transforming the point to an underscore. Thanks for the report. I have been using these paper names for several years in the gimp-gutenprint plugin, and I am using them now in the version which caused this bug to be generated. I just printed one using 5.5x8.5TopFoldCard (4.25x5.5 Top Fold Card (5.5x8.5)) By the above I mean I have been using locally modified .ppd files which contained these names with gimp-gutenprint. As I recently upgraded my ports, and the old files have been renamed *_unused, I am assuming gimp-gutenprint is using whatever it has internally, so it still works $ pkg info -l gimp-gutenprint gimp-gutenprint-5.2.13: /usr/local/lib/libgutenprintui2.so /usr/local/lib/libgutenprintui2.so.1 /usr/local/lib/libgutenprintui2.so.1.0.0 /usr/local/libdata/pkgconfig/gutenprintui2.pc /usr/local/libexec/gimp/2.2/plug-ins/gutenprint /usr/local/share/licenses/gimp-gutenprint-5.2.13/GPLv2 /usr/local/share/licenses/gimp-gutenprint-5.2.13/LICENSE /usr/local/share/licenses/gimp-gutenprint-5.2.13/catalog.mk I cannot confirm whether or not cups has problems with these, as I am currently having problems getting cups to connect to any printer. With previous versions of cups I used these same ppd files, but did not use those paper names via cups -- only via gimp-gutenprint. |