- 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:
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
|
@ -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"
|
||||
|
|
15
print/hplip/files/patch-io-hpmud-musb.c
Normal file
15
print/hplip/files/patch-io-hpmud-musb.c
Normal 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;
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
15
print/hplip3/files/patch-io-hpmud-musb.c
Normal file
15
print/hplip3/files/patch-io-hpmud-musb.c
Normal 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;
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue