Bug 245128

Summary: print/foo2zjs HBPLv1 printers Dell 1660w Not Printing foo2gbpl1-wrapper: Unimplemented paper code 1
Product: Ports & Packages Reporter: richard.shine
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Open ---    
Severity: Affects Some People CC: lwhsu
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Diff file showing file changes to solve bug. none

Description richard.shine 2020-03-28 14:00:01 UTC
Created attachment 212792 [details]
Diff file showing file changes to solve bug.

When trying to print to a Dell C1660w using the HBBPLv1 printer driver support, CUPS fails to render and print.

Looking at /var/log/cups/error_log reason for this seems to be the following:
foo2hbpl1-wrapper: Unimplemented paper code 1.

The original package that has been used to port this to FreeBSD cannot be found however, I have fixed this on https://github.com/mikerr/foo2zjs/pull/2 or I have created a fix on my github page https://github.com/Shinbar/foo2zjs/tree/shinbar/dev2020/papersize .

The problem is in the foo2hbpl1-wrapper.in where a for a particular case statement paper sizes are passed as parameter numbered codes and the case statement is expecting paper sizes to be passed as strings. e.g. A4

I have successfully used https://github.com/Shinbar/foo2zjs/tree/shinbar/dev2020/papersize version, and compiled using gmake on FreeBSD to successfully print from FreeBSD to my Dell 1660w printer.

Attached are the changes to the offending file.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2020-06-17 00:20:38 UTC
Is the patch against print/foo2zjs port?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2023-11-28 06:35:11 UTC
^Triage: this is not about the package building machines.