i think this belongs to ports@. though base lpd(8) is in the Subject:, 
this is probably abount cups-filters-1.27 failing on us.

i do not snip anything, ports@-people see this for the first time.

for the misc@ thread see https://marc.info/?t=159165371600003

punoseva...@gmail.com (Predrag Punosevac), 2020.06.09 (Tue) 16:28 (CEST):
> Marcus MERIGHI <mcmer-open...@tor.at> wrote:
> > punoseva...@gmail.com (Predrag Punosevac), 2020.06.08 (Mon) 23:57 (CEST):
> > > It seems that there is another change on 6.7 perhaps among packages
> > > which broke printing for me. I am using built in LPD to print onto the
> > > network connected Brother HL-5250DN. I am getting row PostScript output
> > > on the printer instead of the document.
> > 
> > I think I've seen the same. Though I could still print simple text
> > files, like "cat foo.txt | lpr". 
> 
> Thanks for confirming the issue. I am 95% sure that this is related to 
> the upgrade of 
> 
> cups-filters
> 
> package.
> 
> Namely, there are two packages involved with my printing setup. 
> 
> a2ps and cups-filters
> 
> a2ps has not been changed since 6.6 relase and it is still the same old 
> 
> a2ps-4.14p15
> 
> However, cups-filters is significantly "upgraded". OpenBSD 6.6 was
> shipped with cups-filters-1.25.6. OpenBSD 6.7 was shipped with
> cups-filters-1.27.4p0. Looking through internet archive and the commit log 
> 
> https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/print/cups-filters/Makefile
> 
> cups-filters-1.27 branch was nothing but the trouble. I am not sure why
> upstream quickly ditched cups-filters-1.26. When I say trouble I really
> mean it. This thing broke printing on CentOS and Ubuntu not just on
> OpenBSD. 
> 
> 
> I upgraded my package to cups-filters-1.27.5 and that didn't fix the
> problems for me. I tried yesterday to go back to the last 1.25 version
> 
> cups-filters-1.25.13
> 
> I was unable to compile program quickly. It requires more work. I am
> surprised to find out that I am the first one reporting the issue as I
> would expect more people to use LPD than CUPS.

thanks, Predrag, for finding this out!
regarding LPD vs. CUPS I'm afraid it's the other way round :-(
 
> I fixed cups-filter package probably would be worth of stable binary
> package effort.
>
> > Printing PDFs from xournal failed, with raw PS output as you describe. 
> > 
> > The machine is currently not available, probably online this afternoon, 
> > will post the configs then. 

here we go, better late than never:

$ cat /etc/printcap
lp|brother-mfc9120cn|Brother-MFC9120CN:\
        :lp=9100@brother:\
        :if=/etc/printcap.sh:\
        :sd=/var/spool/output/lpd:\
        :lf=/var/log/lpd-errs:\
        :sh:
$ cat /etc/printcap.sh
#!/bin/sh -e
/usr/local/bin/a2ps -BRq --columns=1 -o - | \
        /usr/local/bin/foomatic-rip --ppd \
        /etc/foomatic/direct/brother-mfc9120cn.ppd \
        -P brother-mfc9120cn

Marcus

Reply via email to