- Fix probing HP PS 8250 printer

PR:		ports/127810
Submitted by:	Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Approved by:	maintainer timeout (5 months)
This commit is contained in:
Pav Lucistnik 2009-03-25 16:42:56 +00:00
parent c933ea3d40
commit 208b451f01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230987
6 changed files with 36 additions and 4 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= hplip
PORTVERSION= 2.8.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hplip
@ -38,6 +38,7 @@ USE_LDCONFIG= yes
USE_GHOSTSCRIPT_RUN= yes
USE_PYTHON= yes
USE_RC_SUBR= hpssd.sh
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"

View file

@ -0,0 +1,15 @@
--- io/hpmud/musb.c.orig 2008-01-23 01:27:15.000000000 +0100
+++ io/hpmud/musb.c 2009-03-25 17:01:30.000000000 +0100
@@ -123,8 +123,10 @@
0x409, tbuf, sizeof(tbuf), LIBUSB_CONTROL_REQ_TIMEOUT);
if (ret==0)
{
- /* This retry is necessary for lj1000 and lj1005. des 12/12/07 */
- BUG("get_string_descriptor zero result, retrying...");
+ /* This retry is necessary for lj1000 and lj1005. des 12/12/07
+ Also HP Photosmart 42xx seems to suffer transient errors with serial id */
+ BUG("get_string_descriptor error result %d, retrying in 2 secs...", ret);
+ sleep(2);
continue;
}
break;

View file

@ -5,4 +5,4 @@ The HP driver project provides printing support for nearly
1000 printer models, including Deskjet, Officejet, Photosmart,
PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
WWW: http://hplip.sourceforge.net/
WWW: http://hplipopensource.com/hplip-web/index.html

View file

@ -7,7 +7,7 @@
PORTNAME= hplip
PORTVERSION= 2.8.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hplip
@ -38,6 +38,7 @@ USE_LDCONFIG= yes
USE_GHOSTSCRIPT_RUN= yes
USE_PYTHON= yes
USE_RC_SUBR= hpssd.sh
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"

View file

@ -0,0 +1,15 @@
--- io/hpmud/musb.c.orig 2008-01-23 01:27:15.000000000 +0100
+++ io/hpmud/musb.c 2009-03-25 17:01:30.000000000 +0100
@@ -123,8 +123,10 @@
0x409, tbuf, sizeof(tbuf), LIBUSB_CONTROL_REQ_TIMEOUT);
if (ret==0)
{
- /* This retry is necessary for lj1000 and lj1005. des 12/12/07 */
- BUG("get_string_descriptor zero result, retrying...");
+ /* This retry is necessary for lj1000 and lj1005. des 12/12/07
+ Also HP Photosmart 42xx seems to suffer transient errors with serial id */
+ BUG("get_string_descriptor error result %d, retrying in 2 secs...", ret);
+ sleep(2);
continue;
}
break;

View file

@ -5,4 +5,4 @@ The HP driver project provides printing support for nearly
1000 printer models, including Deskjet, Officejet, Photosmart,
PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
WWW: http://hplip.sourceforge.net/
WWW: http://hplipopensource.com/hplip-web/index.html