Bug 245128 - print/foo2zjs HBPLv1 printers Dell 1660w Not Printing foo2gbpl1-wrapper: Unimplemented paper code 1
Summary: print/foo2zjs HBPLv1 printers Dell 1660w Not Printing foo2gbpl1-wrapper: Unim...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-03-28 14:00 UTC by richard.shine
Modified: 2023-11-28 06:35 UTC (History)
1 user (show)

See Also:


Attachments
Diff file showing file changes to solve bug. (1.16 KB, patch)
2020-03-28 14:00 UTC, richard.shine
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.