From nobody@FreeBSD.org  Sat Apr 12 12:17:54 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 5CDD5625
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Apr 2014 12:17:54 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 490241136
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Apr 2014 12:17:54 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3CCHqEQ037231
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Apr 2014 12:17:52 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3CCHqAB037210;
	Sat, 12 Apr 2014 12:17:52 GMT
	(envelope-from nobody)
Message-Id: <201404121217.s3CCHqAB037210@cgiserv.freebsd.org>
Date: Sat, 12 Apr 2014 12:17:52 GMT
From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/hplip: critical: non functional with some HP InkJet with printer/cups-filters
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188509
>Category:       ports
>Synopsis:       print/hplip: critical: non functional with some HP InkJet with printer/cups-filters
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    makc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 12 12:20:00 UTC 2014
>Closed-Date:    Wed Apr 30 07:22:05 UTC 2014
>Last-Modified:  Wed Apr 30 07:22:05 UTC 2014
>Originator:     O. Hartmann
>Release:        FreeBSD 11.0-CURRENT, FreeBSD 9.2-STABLE
>Organization:
>Environment:
>Description:
Since the update of printer/cups from 1.5.X to 1.7.1, a lot of changes were introduced to printsystem. print/hplip has also been updated according to requiremets of cups 1.7.1.

With the update mentioned above a working CUPS environment with HP OfficeJet Pro 8600 a911N (network attached) driven by print/hplip driver hp-officejet_pro_8600-hpijs.ppd.gz was rendered completely useless in conjunction with print/cups-filters (see PR ports/188470).

The symptoms are strange.

When print/cups-filters is installed, printing is impossible. From clients like xpdf, xdvi, Firefox, Claws-Mail, LibreOffice from which printing was possible for months with CUPS 1.5.X, now rejects printing, instead the printer produces empty sheets of paper, get rogue and prints several sheets and starts extensively cleaning which results in a high cost of ink. I can watch the docuemnt getting attached to the correct queue via https://localhost:631 cups webfrontend, but the job gets stuck there, being restarted every time cupsd is restarted and producing crap.

When printer/cups-filters is deinstalled, printing from cleints like xpdf, xdvi works again, which leaves me with the capability of printing PDFs and PS. But still other clients do not print (FireFox, Claws-Mail, LibreOffice).

The fact that print/cups-filters renders the print system unusable when installed, is strange.

I have already completely recompiled every port necessary/required by print/cups (portmaster -f print/cups) which should by definition solve problems with outdated ports not captured by the regular maintaining process - with no success.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->makc 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 12 12:20:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188509 

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de
Cc:  
Subject: Re: ports/188509: print/hplip: critical: non functional with some
 HP InkJet with printer/cups-filters
Date: Sun, 13 Apr 2014 11:28:32 +0200

 --Sig_/qWwOjV2YxdhYWC94vy25fZd
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 
 =46rom sourceforge, I downloaded the hplip-3.14.4 tarball and extracted it. T=
 hen I
 installed a test printing queue using the drivers located in hpcups, not th=
 ose located in
 hpijs, and tested printing. With this setup, printing is possible as expect=
 ed.
 
 After some naiv investigation, I realised that my specific printer does not=
  get correct
 data and I think it's ghsotscript which uses the IJS driver and produces cr=
 ap.
 
 The port install exclusively the hpijs drivers found in subdir hpijs), whic=
 h do not work
 with the HP OfficeJet Pro 86000 N911a of mine, but the drivers found in sub=
 dir hpcups
 seem working.
 
 --Sig_/qWwOjV2YxdhYWC94vy25fZd
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (FreeBSD)
 
 iQEcBAEBAgAGBQJTSljJAAoJEOgBcD7A/5N8lKsH/2iKYIz6s5RAS9GgK8DBgXWi
 dOlUHybu7V1QO9IuQb+6n4wfuMMRy46yd85GhsU8yE83rwvHsV8ygODBDnTtft3k
 O6lYiLy+kYhqwBTO+Mfo3Gh+t/FKcdnRHCMG7mOFkb8GmZqO/oek5KrP8QLGtb5e
 LMAMS1MXD4qrjEaU7N/gSZzJupriTIl60ci2x7eQjo+bMgQ24iiXVn6qrY47FAJr
 H3p/v0ExGjNFF3PAQAnczvBhAcQN9CApVAqMuRaxX9iDKTxARui6z52EzKMVFgpT
 PtxvbLG5PJyWOPbfZHd4TMkV19UfMtHplhGD3gHNb9HJVGuxwYBLMqKIrxTw1ik=
 =qir/
 -----END PGP SIGNATURE-----
 
 --Sig_/qWwOjV2YxdhYWC94vy25fZd--

From: Max Brazhnikov <makc@freebsd.org>
To: bug-followup@freebsd.org, ohartman@zedat.fu-berlin.de
Cc:  
Subject: Re: ports/188509: print/hplip: critical: non functional with some HP InkJet with printer/cups-filters
Date: Mon, 14 Apr 2014 08:25:13 +0000

 Hi,
 
 Thanks for report. I'll enable hpcups drivers with next update, you can test preliminary patch:
 
 http://people.freebsd.org/~makc/patches/hplip-3.14.4.diff
 
 Max
 

From: Craig Butler <craig001@lerwick.hopto.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: ports/188509 print/hplip: critical: non functional with some HP
 InkJet with printer/cups-filters
Date: Wed, 16 Apr 2014 19:36:00 +0100

 Just like to say thank you for submitting this PR
 
 My HP Photosmart Wireless B109n-z started failing after updating cups
 and hplip due to the wrong ppd.
 
 I was getting pages of;
 
 userdict dup(\004)cvn{}put  (\004\004)cvn{}put
 
 This was solved by using the appropriate ppd from the hpcups directory.
 
 Kind Regards
 
 Craig Butler
 

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de, bsam@passap.ru
Cc:  
Subject: Re: ports/188509: print/hplip: critical: non functional with some
 HP InkJet with printer/cups-filters
Date: Tue, 22 Apr 2014 09:01:15 +0200

 --Sig_/lHaLMzjRD4yuiHLb+tTuqO5
 Content-Type: multipart/mixed; boundary="MP_/QqHEmQ/RtP3YQOzSfB0H0H4"
 
 --MP_/QqHEmQ/RtP3YQOzSfB0H0H4
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 
 A solution/workaround has been provided to me by Boris Samorodov, he found =
 something going
 wrong with foomatic-rip-hplip, I'll post the portion of his Email to me bel=
 ow as well as
 the the  patch attached (I feel free to post it here, some may run into the=
  very same
 trouble as I did), of which the last portion, exchanging the foomatic-rip t=
 ool as
 explained in the mail.
 
 With this exchange, HPLIP works on the printer in question again.=20
 
 Regards,
 oh
 
 [...]
 Further analysis showed that foomatic-rip-hplip doesn't like PDF files
 which new CUPS uses by default. It expects a PS file:
 -----
 File: <STDIN>
 Reading PostScript input ...
 PID 29404 (/usr/local/libexec/cups/filter/pstopdf) exited with no errors.
 Job does not start with "%!", is it PostScript?
 -----
 
 After switching from HP's foomatic-rip-hplip to native foomatic-rip
 all is fine:
 -----
 PID 75535 (/usr/local/libexec/cups/filter/pstopdf) exited with no errors.
 Filetype: PDF
 [...]
 
 --MP_/QqHEmQ/RtP3YQOzSfB0H0H4
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
  filename=hplip-fix-printing-with-cups-1.7.x.diff.txt
 
 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 --- Makefile	(revision 350910)
 +++ Makefile	(working copy)
 @@ -3,6 +3,7 @@
 =20
  PORTNAME=3D	hplip
  PORTVERSION=3D	3.14.1
 +PORTREVISION=3D	1
  CATEGORIES=3D	print
  MASTER_SITES=3D	SF
 =20
 @@ -10,7 +11,7 @@
  COMMENT=3D	Drivers and utilities for HP Printers and All-in-One devices
 =20
  LIB_DEPENDS=3D	libjpeg.so:${PORTSDIR}/graphics/jpeg \
 -		libcupsdriver.so:${PORTSDIR}/print/cups-base \
 +		libcupsmime.so:${PORTSDIR}/print/cups-base \
  		libcups.so:${PORTSDIR}/print/cups-client \
  		libcupsimage.so:${PORTSDIR}/print/cups-image \
  		libdbus-1.so:${PORTSDIR}/devel/dbus
 @@ -28,7 +29,6 @@
 =20
  GNU_CONFIGURE=3D	yes
  CONFIGURE_ARGS=3D	--enable-foomatic-ppd-install \
 -		--enable-foomatic-rip-hplip-install \
  		--enable-hpijs-install \
  		--with-cupsbackenddir=3D${PREFIX}/libexec/cups/backend \
  		--with-cupsfilterdir=3D${PREFIX}/libexec/cups/filter \
 @@ -161,5 +161,6 @@
  	${MKDIR} ${STAGEDIR}${PREFIX}/etc/hp
  	${INSTALL_DATA} ${WRKSRC}/hplip.conf ${STAGEDIR}${PREFIX}/etc/hp/hplip.co=
 nf.sample
  	${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
 +	${LN} -sf ${LOCALBASE}/bin/foomatic-rip ${STAGEDIR}${PREFIX}/libexec/cups=
 /filter/foomatic-rip-hplip
 =20
  .include <bsd.port.mk>
 
 --MP_/QqHEmQ/RtP3YQOzSfB0H0H4--
 
 --Sig_/lHaLMzjRD4yuiHLb+tTuqO5
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (FreeBSD)
 
 iQEcBAEBAgAGBQJTVhPAAAoJEOgBcD7A/5N8RIQH/2APjBn7cXz5oLVsimz/B2kc
 kFdKigHPa+2/I/fyiGehzejsiHCQ+Xv583g9xEvsCSQGZFbpbTsrdXyE/O+YyN0O
 uqxpltxHBIsTPkGKaWc/MRvCEMcDbCg2siwLIj8vcX1BfCPBKsgCs9IH6f6IEMRD
 F1cAnpw5oWXKadl+PRzo0zyCdM4AG5EhnxiyGfuvGMhW1McToEKxIEf60ILtWa0S
 2Tg6q1VPGYhestQdE3p+RATWZdQ+m4FWdT5KkJ/tGtkBauNlnlDdAKJqdw+igM0o
 UTuab5wfoc1xGkKvsr4yk1vVlWs3hXgEXvYZjLlJPlktCTAUb1Jp3/76d07Lhfo=
 =GuLT
 -----END PGP SIGNATURE-----
 
 --Sig_/lHaLMzjRD4yuiHLb+tTuqO5--

From: Max Brazhnikov <makc@freebsd.org>
To: bug-followup@freebsd.org, ohartman@zedat.fu-berlin.de,
        craig001@lerwick.hopto.org
Cc:  
Subject: Re: ports/188509: print/hplip: critical: non functional with some HP InkJet with printer/cups-filters
Date: Fri, 25 Apr 2014 09:15:26 +0000

 Could you test hplip-3.14.4 - it's already in ports and installs both hpijs and hpcups ppd files. Do you need this workaround for foomatic-rip-hplip only when using hpijs driver?

From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: Max Brazhnikov <makc@freebsd.org>
Cc: bug-followup@freebsd.org, craig001@lerwick.hopto.org
Subject: Re: ports/188509: print/hplip: critical: non functional with some
 HP InkJet with printer/cups-filters
Date: Fri, 25 Apr 2014 12:17:23 +0200

 --Sig_/8XN4SDpfLsGrCwVqIu/eXJQ
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, 25 Apr 2014 09:15:26 +0000
 Max Brazhnikov <makc@freebsd.org> wrote:
 
 > Could you test hplip-3.14.4 - it's already in ports and installs both
 > hpijs and hpcups ppd files. Do you need this workaround for
 > foomatic-rip-hplip only when using hpijs driver?
 
 I already have. I'm updating the ports on a weekly (or more frequent)
 basis and hplip-3.14.4 is installed. But the problem with hpjis
 drivers still exists and only Boris' workaround for foomatic-rip-hplip
 resolves the problem. The hpcups driver work, but in my specific case
 (for a OfficeJet 8600 PRO N911a) the driver lack in some features so
 I'm back with hpjis.
 
 As said, I use Boris' patch and hplip-3.14.4 successfully with hpjis.
 
 --Sig_/8XN4SDpfLsGrCwVqIu/eXJQ
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (FreeBSD)
 
 iQEcBAEBAgAGBQJTWjY9AAoJEOgBcD7A/5N8e9sH/jRcyPoHjryoc95M2X0of75C
 aLgbPEObMab7JcSSL3dhqnSxUTtDXJNWClY1Ot139mupDemY3fnU8KpW7QWkfzi2
 s9yZKnx1HIfJjYL76T9DgxK092wiHeeZdXK7W/6qW5Dvby5bpPD+p3wLUZi4vSYA
 9oNjgzAaQPzlbYT+8fZXacoGFA4UNblNxUevrfNQFnUEs4HEhSKMLAPRH0kX3ZvW
 MyYjf4b6hLIHtYZKtSy1Wc+9IEiwhpQWBgxQovNlXawMikYs2VH+hKJhKrYx4D7v
 IUQjKJxxryLvMAm2VjU63Wz5EC2fZgiwfhhzdpldKUvyZLDKzbzeShrJ8fnhgQE=
 =31EJ
 -----END PGP SIGNATURE-----
 
 --Sig_/8XN4SDpfLsGrCwVqIu/eXJQ--
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Wed Apr 30 07:22:04 UTC 2014 
State-Changed-Why:  
Fixed in svn r352549, thanks for report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188509 
>Unformatted:
