Hello,
I use a printer through foo2qpdl, but I coudln't make it print color
jobs since I switched to OpenBSD.
With the generous help of Sebastien Marie, we finally traced the problem
to /usr/local/bin/foo2zjs-pstops using sed in a non-POSIX way.
The attached patch reflects a fix which works on my setup.
Natasha
Index: Makefile
===================================================================
RCS file: /cvs/ports/print/foo2zjs/Makefile,v
retrieving revision 1.65
diff -u -p -r1.65 Makefile
--- Makefile 4 Apr 2017 21:24:44 -0000 1.65
+++ Makefile 25 Nov 2017 15:29:28 -0000
@@ -4,6 +4,7 @@ COMMENT= driver for ZjStream wire protoc
VERSION= 20170320
DISTNAME= foo2zjs-${VERSION}
+REVISION= 0
CATEGORIES= print
@@ -29,7 +30,8 @@ BUILD_DEPENDS= print/ghostscript/gnu # p
LIB_DEPENDS= print/cups,-libs
# foomatic-rip(1), foomatic-db(-engine)
-RUN_DEPENDS += print/cups-filters
+RUN_DEPENDS += print/cups-filters \
+ textproc/gsed
MAKE_FLAGS+= CUPS_SERVERBIN=`cups-config --serverbin`
Index: patches/patch-foo2zjs-pstops_sh
===================================================================
RCS file: patches/patch-foo2zjs-pstops_sh
diff -N patches/patch-foo2zjs-pstops_sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-foo2zjs-pstops_sh 25 Nov 2017 15:29:28 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+use gsed
+Index: foo2zjs-pstops.sh
+--- foo2zjs-pstops.sh.orig
++++ foo2zjs-pstops.sh
+@@ -49,6 +49,7 @@ debug() {
+ case `uname -s` in
+ Darwin) sed=gsed;;
+ FreeBSD) sed=gsed;;
++OpenBSD) sed=gsed;;
+ *) sed=sed;;
+ esac
+