aboutsummaryrefslogtreecommitdiff
path: root/print/hplip/files
diff options
context:
space:
mode:
Diffstat (limited to 'print/hplip/files')
-rw-r--r--print/hplip/files/patch-0.9.11-2-official276
-rw-r--r--print/hplip/files/patch-Makefile.in65
-rw-r--r--print/hplip/files/patch-hplip.conf8
-rw-r--r--print/hplip/files/patch-io_hpiod24
-rw-r--r--print/hplip/files/patch-io_hpiod_device.cpp47
-rw-r--r--print/hplip/files/patch-io_hpiod_device.h12
6 files changed, 82 insertions, 350 deletions
diff --git a/print/hplip/files/patch-0.9.11-2-official b/print/hplip/files/patch-0.9.11-2-official
deleted file mode 100644
index f991bdbf8fcf..000000000000
--- a/print/hplip/files/patch-0.9.11-2-official
+++ /dev/null
@@ -1,276 +0,0 @@
-diff -uNr hplip-0.9.11.old/data/xml/models.xml data/xml/models.xml
---- hplip-0.9.11.old/data/xml/models.xml 2006-05-08 12:27:06.000000000 -0700
-+++ data/xml/models.xml 2006-05-12 15:30:54.754891424 -0700
-@@ -7797,6 +7797,84 @@
- </r0>
- </model>
-
-+<model name="PSC_950">
-+ <id>MFG:Hewlett-Packard;MDL:PSC 900 Series;SKU:PSC 950;CMD:2,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard PSC 900 Series;1284.3M:f7f,f7f;1284.4DL:4d,4e,1;SERN:MY15U31143WP;VSTATUS:$AU0$AU0,ff,DN,PENF,CUT,K0,C0,SM,NR,KP066,CP095;AiO:00;DW-PCL;</id>
-+ <icon>PSC_900_Series.png</icon>
-+ <support type="2"/>
-+ <case-model>
-+ </case-model>
-+ <io support="2" mode="1" control="0" mfp-mode="2" scan-port="0"/>
-+ <align type="9"/>
-+ <clean type="3"/>
-+ <color-cal type="0"/>
-+ <status type="1"/>
-+ <scan type="1"/>
-+ <fax type="0"/>
-+ <pcard type="1"/>
-+ <copy type="0"/>
-+ <tech class="DJ9xx" type="2"/>
-+ <embedded-server type="0"/>
-+ <panel-check type="1"/>
-+ <linefeed-cal type="0"/>
-+ <pq-diag type="0"/>
-+ <r0>
-+ <agent1 kind="3" type="1" sku="15 (C6615DN)"/>
-+ <agent2 kind="3" type="2" sku="78 (C6578AN / C6578DN)"/>
-+ </r0>
-+</model>
-+
-+<model name="PSC_950vr">
-+ <id>MFG:Hewlett-Packard;MDL:PSC 900 Series;SKU:PSC 950;CMD:2,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard PSC 900 Series;1284.3M:f7f,f7f;1284.4DL:4d,4e,1;SERN:MY15U31143WP;VSTATUS:$AU0$AU0,ff,DN,PENF,CUT,K0,C0,SM,NR,KP066,CP095;AiO:00;DW-PCL;</id>
-+ <icon>PSC_900_Series.png</icon>
-+ <support type="2"/>
-+ <case-model>
-+ </case-model>
-+ <io support="2" mode="1" control="0" mfp-mode="2" scan-port="0"/>
-+ <align type="9"/>
-+ <clean type="3"/>
-+ <color-cal type="0"/>
-+ <status type="1"/>
-+ <scan type="1"/>
-+ <fax type="0"/>
-+ <pcard type="1"/>
-+ <copy type="0"/>
-+ <tech class="DJ9xx" type="2"/>
-+ <embedded-server type="0"/>
-+ <panel-check type="1"/>
-+ <linefeed-cal type="0"/>
-+ <pq-diag type="0"/>
-+ <r0>
-+ <agent1 kind="3" type="1" sku="15 (C6615DN)"/>
-+ <agent2 kind="3" type="2" sku="78 (C6578AN / C6578DN)"/>
-+ </r0>
-+</model>
-+
-+<model name="PSC_950xi">
-+ <id>MFG:Hewlett-Packard;MDL:PSC 900 Series;SKU:PSC 950;CMD:2,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard PSC 900 Series;1284.3M:f7f,f7f;1284.4DL:4d,4e,1;SERN:MY15U31143WP;VSTATUS:$AU0$AU0,ff,DN,PENF,CUT,K0,C0,SM,NR,KP066,CP095;AiO:00;DW-PCL;</id>
-+ <icon>PSC_900_Series.png</icon>
-+ <support type="2"/>
-+ <case-model>
-+ </case-model>
-+ <io support="2" mode="1" control="0" mfp-mode="2" scan-port="0"/>
-+ <align type="9"/>
-+ <clean type="3"/>
-+ <color-cal type="0"/>
-+ <status type="1"/>
-+ <scan type="1"/>
-+ <fax type="0"/>
-+ <pcard type="1"/>
-+ <copy type="0"/>
-+ <tech class="DJ9xx" type="2"/>
-+ <embedded-server type="0"/>
-+ <panel-check type="1"/>
-+ <linefeed-cal type="0"/>
-+ <pq-diag type="0"/>
-+ <r0>
-+ <agent1 kind="3" type="1" sku="15 (C6615DN)"/>
-+ <agent2 kind="3" type="2" sku="78 (C6578AN / C6578DN)"/>
-+ </r0>
-+</model>
-+
- <model name="Photosmart_2570_series">
- <id></id>
- <icon>psc_2300_series.png</icon>
-diff -uNr hplip-0.9.11.old/prnt/hpijs/colormatch.cpp prnt/hpijs/colormatch.cpp
---- hplip-0.9.11.old/prnt/hpijs/colormatch.cpp 2006-05-09 11:04:30.000000000 -0700
-+++ prnt/hpijs/colormatch.cpp 2006-05-11 16:17:17.000000000 -0700
-@@ -221,15 +221,21 @@
- {
- for (unsigned int r = 0; r < 9; r++)
- {
-+#ifndef NDEBUG
- unsigned long ul_RedMapPtr = r * 9 * 9;
-+#endif
- for (unsigned int g = 0; g < 9; g++)
- {
-+#ifndef NDEBUG
- unsigned long ul_GreenMapPtr = g * 9;
-+#endif
- for (unsigned int b = 0; b < 9; b++)
- {
- unsigned long mapptr = b + (g * 9) + (r * 9 * 9); // get address in map
-+#ifndef NDEBUG
- unsigned long ul_MapPtr = b + ul_GreenMapPtr + ul_RedMapPtr;
- ASSERT(mapptr == ul_MapPtr);
-+#endif
- // put r,g,b in monitor range
- unsigned int oldR = r * 255 >> 3;
- unsigned int oldG = g * 255 >> 3;
-diff -uNr hplip-0.9.11.old/prnt/hpijs/hpijs.cpp prnt/hpijs/hpijs.cpp
---- hplip-0.9.11.old/prnt/hpijs/hpijs.cpp 2006-02-23 14:31:17.000000000 -0800
-+++ prnt/hpijs/hpijs.cpp 2006-05-12 15:44:27.509333968 -0700
-@@ -177,7 +177,7 @@
- char *tail;
- int status = 0;
- char svalue[IJS_MAX_PARAM+1];
-- float w, h;
-+ float w, h, dx, dy;
-
- /* Sanity check input value. */
- if (value_size > IJS_MAX_PARAM)
-@@ -256,8 +256,12 @@
- }
- else
- {
-+
-+ dx = w > pSS->PaperWidth ? w - pSS->PaperWidth : pSS->PaperWidth - w;
-+ dy = h > pSS->PaperHeight ? h - pSS->PaperHeight : pSS->PaperHeight - h;
-+
- /* Middle of print Job, ignore paper size if same. */
-- if (!(w == pSS->PaperWidth && h == pSS->PaperHeight))
-+ if ((dx > 0.03) || (dy > 0.03))
- {
- pSS->FirstRaster = 1; /* force new Job */
- pSS->PaperWidth = w; /* set new paper size */
-@@ -272,19 +276,19 @@
- }
- else if (!strcmp (key, "Quality:Quality"))
- {
-- pSS->Quality = strtol(svalue, &tail, 10);
-+ pSS->Quality = (QUALITY_MODE) strtol(svalue, &tail, 10);
- }
- else if (!strcmp (key, "Quality:MediaType"))
- {
-- pSS->MediaType = strtol(svalue, &tail, 10);
-+ pSS->MediaType = (MEDIATYPE) strtol(svalue, &tail, 10);
- }
- else if (!strcmp (key, "Quality:ColorMode"))
- {
-- pSS->ColorMode = strtol(svalue, &tail, 10);
-+ pSS->ColorMode = (COLORMODE) strtol(svalue, &tail, 10);
- }
- else if (!strcmp (key, "Quality:PenSet"))
- {
-- pSS->PenSet = strtol(svalue, &tail, 10);
-+ pSS->PenSet = (PEN_TYPE) strtol(svalue, &tail, 10);
- }
- else if (!strcmp (key, "Quality:FullBleed"))
- {
-diff -uNr hplip-0.9.11.old/prnt/hpijs/ljfastraster.cpp prnt/hpijs/ljfastraster.cpp
---- hplip-0.9.11.old/prnt/hpijs/ljfastraster.cpp 2006-05-09 11:04:30.000000000 -0700
-+++ prnt/hpijs/ljfastraster.cpp 2006-05-11 16:34:57.000000000 -0700
-@@ -1215,7 +1215,7 @@
-
- m_compressedsize = 2 * inputsize * INDY_STRIP_HEIGHT;
- BOOL bRet = Compress (compressBuf,
-- (uint32_t *) &m_compressedsize,
-+ &m_compressedsize,
- pbyInputImageBuffer,
- inputsize,
- m_lCurrCDRasterRow,
-diff -uNr hplip-0.9.11.old/prnt/hpijs/ljfastraster.h prnt/hpijs/ljfastraster.h
---- hplip-0.9.11.old/prnt/hpijs/ljfastraster.h 2006-05-09 11:04:30.000000000 -0700
-+++ prnt/hpijs/ljfastraster.h 2006-05-11 16:34:57.000000000 -0700
-@@ -32,6 +32,7 @@
- #ifndef APDK_LJFASTRASTER_H
- #define APDK_LJFASTRASTER_H
-
-+#include "global_types.h"
-
- APDK_BEGIN_NAMESPACE
- /*!
-@@ -136,7 +137,7 @@
- long m_lCurrBlockHeight;
- long m_lPrinterRasterRow; // Current printer raster row.
-
-- unsigned long m_compressedsize;
-+ uint32_t m_compressedsize;
- BOOL m_bCompressed;
- float m_fRatio;
- HPUInt8 *pbySeedRow;
-diff -uNr hplip-0.9.11.old/prnt/hpijs/ljjetready.cpp prnt/hpijs/ljjetready.cpp
---- hplip-0.9.11.old/prnt/hpijs/ljjetready.cpp 2006-05-09 11:04:30.000000000 -0700
-+++ prnt/hpijs/ljjetready.cpp 2006-05-11 15:49:52.000000000 -0700
-@@ -473,7 +473,7 @@
- //-----------------------------------------------------------------------------
- DRIVER_ERROR HeaderLJJetReady::MapPCLMediaTypeToString (MEDIATYPE eM)
- {
-- DRIVER_ERROR err;
-+ DRIVER_ERROR err = SYSTEM_ERROR;
- BYTE szPlain[] = {"\xC8\xC1\x05\x00Plain\xF8\x27"};
- BYTE szPhoto[] = {"\xC8\xC1\x05\x00Gloss\xF8\x27"};
-
-diff -uNr hplip-0.9.11.old/prnt/hpijs/services.cpp prnt/hpijs/services.cpp
---- hplip-0.9.11.old/prnt/hpijs/services.cpp 2006-02-23 14:31:47.000000000 -0800
-+++ prnt/hpijs/services.cpp 2006-05-12 15:44:44.645728840 -0700
-@@ -46,6 +46,12 @@
-
- int UXServices::InitDuplexBuffer()
- {
-+ /* Free buffer if new page size in middle of print job. */
-+ if (RastersOnPage)
-+ delete [] RastersOnPage;
-+ if (KRastersOnPage)
-+ delete [] KRastersOnPage;
-+
- /* Calculate duplex page buffer */
- CurrentRaster = ph.height - 1; /* Height = physical page in pixels */
- RastersOnPage = (BYTE **) new BYTE[(ph.height) * sizeof (BYTE *)];
-@@ -270,12 +276,13 @@
- }
- }
-
-- Quality = 0; /* normal */
-- MediaType = 0; /* plain */
-- ColorMode = 2; /* color */
-+ Quality = QUALITY_NORMAL;
-+ MediaType = MEDIA_PLAIN;
-+ ColorMode = COLOR;
- PenSet = DUMMY_PEN;
-
- RastersOnPage = 0;
-+ KRastersOnPage = 0;
- pPC = NULL;
- pJob = NULL;
- Duplex = 0;
-@@ -294,6 +301,8 @@
- {
- if (RastersOnPage)
- delete [] RastersOnPage;
-+ if (KRastersOnPage)
-+ delete [] KRastersOnPage;
- if (hpFD >= 0)
- hplip_CloseHP(hpFD);
- hplip_Exit();
-diff -uNr hplip-0.9.11.old/prnt/hpijs/services.h prnt/hpijs/services.h
---- hplip-0.9.11.old/prnt/hpijs/services.h 2005-09-14 10:19:08.000000000 -0700
-+++ prnt/hpijs/services.h 2006-05-12 15:44:40.360380312 -0700
-@@ -35,6 +35,8 @@
- #include <stdio.h>
- #include <math.h>
-
-+#include "global_types.h"
-+
- APDK_USING_NAMESPACE
-
- class UXServices:public SystemServices
-@@ -123,10 +125,10 @@
- const float *Margin;
- int Model; /* selected device: -1=no, 1=yes */
- int OutputPath; /* open file descriptor */
-- int Quality; /* 0=normal, 1=draft, 2=best */
-- int MediaType; /* 0=plain, 1=premium, 2=photo */
-- int ColorMode; /* 0=grey_k, 1=grey_cmy, 2=color */
-- int PenSet; /* 0=black_pen, 1=color_pen, 2=both_pens, 3=mdl_pen, 4=mdl_both */
-+ QUALITY_MODE Quality;
-+ MEDIATYPE MediaType;
-+ COLORMODE ColorMode;
-+ PEN_TYPE PenSet;
- int MediaPosition;
- float PaperWidth; /* physical width in inches */
- float PaperHeight; /* physical height in inches */
diff --git a/print/hplip/files/patch-Makefile.in b/print/hplip/files/patch-Makefile.in
index db2e6271d52b..87a92ec30122 100644
--- a/print/hplip/files/patch-Makefile.in
+++ b/print/hplip/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig Tue May 9 14:18:36 2006
-+++ Makefile.in Sun May 21 14:32:27 2006
-@@ -377,9 +377,9 @@
+--- Makefile.in.orig Tue Aug 1 16:41:16 2006
++++ Makefile.in Wed Sep 27 17:13:29 2006
+@@ -390,12 +390,12 @@
www5dir = $(docdir)/supported_devices
dist_www5_DATA = $(wwwsrc)/supported_devices/*
www6dir = $(docdir)/tech_docs
@@ -11,8 +11,12 @@
+dist_www61_DATA = $(wwwsrc)/tech_docs/man_pages/*.html
www7dir = $(docdir)/troubleshooting
dist_www7_DATA = $(wwwsrc)/troubleshooting/*
- dist_hplip_DATA = $(doc_DATA) hplip.conf
-@@ -2348,15 +2348,9 @@
+-dist_hplip_DATA = $(doc_DATA) hplip.conf
++dist_hplip_DATA = $(doc_DATA)
+ dist_hplip_SCRIPTS = hpssd.py __init__.py hplip.sh
+ cmddir = $(hplipdir)
+ dist_cmd_SCRIPTS = align.py info.py print.py toolbox.py clean.py colorcal.py unload.py testpage.py makeuri.py check.py fab.py levels.py \
+@@ -2415,15 +2415,9 @@
#
# Do full install if not rpm_install.
if [ "$(rpm_install)" = "no" ]; then \
@@ -30,8 +34,8 @@
+ ln -sf $(prefix)/lib/$(SOSHORT) $(DESTDIR)$(sanedir)/$(SOLONG); \
fi
- install-data-hook: test-destdir
-@@ -2414,7 +2408,7 @@
+ install-data-hook: test-destdir install-pcardext install-cupsext
+@@ -2466,7 +2460,7 @@
newname=$${i%.*}; \
mv $(DESTDIR)$(hplipdir)/$$i $(DESTDIR)$(hplipdir)/$$newname; \
if [ "$(rpm_install)" = "no" ]; then \
@@ -40,10 +44,15 @@
fi \
done
#
-@@ -2449,16 +2443,6 @@
- if [ "$(rpm_install)" = "no" ]; then \
- $(mkinstalldirs) $(DESTDIR)/etc/hp; \
- $(INSTALL_DATA) $(DESTDIR)$(hplipdir)/$(PACKAGE).conf $(DESTDIR)/etc/hp; \
+@@ -2501,22 +2495,7 @@
+ sed 's:HPIODDIR=:HPIODDIR=$(sbindir):' < $(DESTDIR)$(hplipdir)/$(PACKAGE).sh > $(DESTDIR)$(hplipdir)/$(PACKAGE).tmp; \
+ sed 's:HPSSDDIR=:HPSSDDIR=$(hplipdir):' < $(DESTDIR)$(hplipdir)/$(PACKAGE).tmp > $(DESTDIR)$(hplipdir)/$(PACKAGE); \
+ rm -f $(DESTDIR)$(hplipdir)/$(PACKAGE).tmp
+-#
+-# Do full install if not rpm_install. Also only run chkconfig/install_initd if DESTDIR="".
+- if [ "$(rpm_install)" = "no" ]; then \
+- $(mkinstalldirs) $(DESTDIR)/etc/hp; \
+- $(INSTALL_DATA) $(DESTDIR)$(hplipdir)/$(PACKAGE).conf $(DESTDIR)/etc/hp; \
- if [ -d $(DESTDIR)/etc/init.d ]; then \
- $(INSTALL_SCRIPT) $(DESTDIR)$(hplipdir)/$(PACKAGE) $(DESTDIR)/etc/init.d; \
- if [ "$(DESTDIR)" = "" ]; then \
@@ -54,6 +63,38 @@
- fi \
- fi \
- fi \
- fi
+- fi
++
#
# For internal testing.
+ if [ "$(SHADOW)" != "" ]; then \
+@@ -2548,8 +2527,8 @@
+ done
+ #
+ # Remove hplip.conf and hplip start/stop script.
+- rm -f $(DESTDIR)/etc/hp/$(PACKAGE).conf
+- rm -f $(DESTDIR)/etc/init.d/$(PACKAGE)
++ rm -f $(DESTDIR)/usr/local/etc/hp/$(PACKAGE).conf
++ rm -f $(DESTDIR)/usr/local/etc/rc.d/$(PACKAGE)
+ #
+ # Remove fax support.
+ rm -f $(DESTDIR)$(hpfaxdir)/hpfax
+@@ -2560,13 +2539,13 @@
+ # Add prerequisites for testing (or building?) "make install DESTDIR=/build".
+ test-destdir:
+ if [ "$(DESTDIR)" != "" ]; then \
+- $(mkinstalldirs) $(DESTDIR)/etc/init.d; \
+- $(mkinstalldirs) $(DESTDIR)/etc/sane.d; \
+- if [ ! -f $(DESTDIR)/etc/sane.d/dll.conf ]; then \
+- touch $(DESTDIR)/etc/sane.d/dll.conf; \
++ $(mkinstalldirs) $(DESTDIR)/usr/local/etc/rc.d; \
++ $(mkinstalldirs) $(DESTDIR)/usr/local/etc/sane.d; \
++ if [ ! -f $(DESTDIR)/usr/local/etc/sane.d/dll.conf ]; then \
++ touch $(DESTDIR)/usr/local/etc/sane.d/dll.conf; \
+ fi; \
+ $(mkinstalldirs) $(DESTDIR)$(sanedir); \
+- $(mkinstalldirs) $(DESTDIR)/usr/share/applications; \
++ $(mkinstalldirs) $(DESTDIR)/usr/local/share/applications; \
+ $(mkinstalldirs) $(DESTDIR)/usr/bin; \
+ fi
+
diff --git a/print/hplip/files/patch-hplip.conf b/print/hplip/files/patch-hplip.conf
new file mode 100644
index 000000000000..82d374200c3f
--- /dev/null
+++ b/print/hplip/files/patch-hplip.conf
@@ -0,0 +1,8 @@
+--- hplip.conf.orig Mon Aug 7 03:19:37 2006
++++ hplip.conf Mon Aug 7 03:20:58 2006
+@@ -6,3 +6,5 @@
+ [hpssd]
+ # port=0 (dynamic IP port)
+ port=2207 (IANA IP port)
++[dirs]
++run=/var/run
diff --git a/print/hplip/files/patch-io_hpiod b/print/hplip/files/patch-io_hpiod
deleted file mode 100644
index eea8422eed52..000000000000
--- a/print/hplip/files/patch-io_hpiod
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -ruN io/hpiod.orig/usbext.c io/hpiod/usbext.c
---- io/hpiod.orig/usbext.c Sat Apr 1 16:11:45 2006
-+++ io/hpiod/usbext.c Sat Apr 1 16:10:29 2006
-@@ -33,7 +33,7 @@
- int fd;
- };
-
--#if defined(__APPLE__) && defined(__MACH__)
-+#if defined(__APPLE__) && defined(__MACH__) || defined(__FreeBSD__)
-
- #else
-
-diff -ruN io/hpiod.orig/usbext.h io/hpiod/usbext.h
---- io/hpiod.orig/usbext.h Sat Apr 1 16:11:45 2006
-+++ io/hpiod/usbext.h Sat Apr 1 16:05:57 2006
-@@ -32,7 +32,7 @@
- #include <sys/time.h>
- #include <usb.h>
-
--#if defined(__APPLE__) && defined(__MACH__)
-+#if defined(__APPLE__) && defined(__MACH__) || defined(__FreeBSD__)
- #else
- #include <linux/usbdevice_fs.h>
-
diff --git a/print/hplip/files/patch-io_hpiod_device.cpp b/print/hplip/files/patch-io_hpiod_device.cpp
index 288b8be0ab04..13bd9bb419cd 100644
--- a/print/hplip/files/patch-io_hpiod_device.cpp
+++ b/print/hplip/files/patch-io_hpiod_device.cpp
@@ -1,5 +1,5 @@
---- io/hpiod/device.cpp.orig Fri Mar 3 00:07:26 2006
-+++ io/hpiod/device.cpp Wed Apr 5 02:57:32 2006
+--- io/hpiod/device.cpp.orig Thu Jun 15 02:02:11 2006
++++ io/hpiod/device.cpp Sun Jul 16 16:57:30 2006
@@ -25,6 +25,9 @@
\*****************************************************************************/
@@ -10,14 +10,19 @@
const unsigned char Venice_Power_On[] = {0x1b, '%','P','u','i','f','p','.',
'p','o','w','e','r',' ','1',';',
-@@ -109,6 +112,244 @@
- return -2;
- }
+@@ -111,21 +114,240 @@
-+#elif defined(__FreeBSD__)
-+
-+int Device::Write(int fd, const void *buf, int size)
-+{
+ #elif defined(__FreeBSD__)
+
+-/*
+- * Anish Mistry amistry@am-productions.biz is working on libusb extensions for FreeBSD. His current implementation does not handle device exceptions (ie: paperout).
+- * Once this issue is resolved we will be glade to add his code to the project.
+- */
+-
+ int Device::Write(int fd, const void *buf, int size)
+ {
+- syslog(LOG_ERR, "error Write: unimplemented (freebsd) %s %s %d\n", URI, __FILE__, __LINE__);
+- return -1;
+ int nwrote, total, write_len, r, ep, endpoint_fd;
+ void *tmp_buf = (void *)buf;
+ fd_set ready;
@@ -82,10 +87,12 @@
+
+ close(endpoint_fd);
+ return size;
-+}
-+
-+int Device::Read(int fd, void *buf, int size, int usec)
-+{
+ }
+
+ int Device::Read(int fd, void *buf, int size, int usec)
+ {
+- syslog(LOG_ERR, "error Read: unimplemented (freebsd) %s %s %d\n", URI, __FILE__, __LINE__);
+- return -2;
+ int nwrote, total, r, ep=0, endpoint_fd, i;
+ struct timeval t1, t2;
+ fd_set ready;
@@ -250,18 +257,6 @@
+
+ close(endpoint_fd);
+ return size;
-+}
-+
- #else
-
- /*
-@@ -589,7 +830,8 @@
+ }
- if (FD[fd].urb_write_active)
- {
--#if defined(__APPLE__) && defined(__MACH__)
-+#if defined(__APPLE__) && defined(__MACH__) || defined(__FreeBSD__)
-+ syslog(LOG_ERR, "danger! Device::ReleaseInterface, releasing an interface with an active write %s: %s %d\n", URI, __FILE__, __LINE__);
#else
- usb_reap_urb_ex(FD[fd].pHD, &FD[fd].urb_write);
- #endif \ No newline at end of file
diff --git a/print/hplip/files/patch-io_hpiod_device.h b/print/hplip/files/patch-io_hpiod_device.h
deleted file mode 100644
index de0796b353ee..000000000000
--- a/print/hplip/files/patch-io_hpiod_device.h
+++ /dev/null
@@ -1,12 +0,0 @@
---- io/hpiod/device.h.orig Tue Feb 28 19:40:55 2006
-+++ io/hpiod/device.h Sun Apr 2 23:38:58 2006
-@@ -72,6 +72,9 @@
- int AltSetting;
- int urb_write_active; /* 0=no, 1=yes */
- #if defined(__APPLE__) && defined(__MACH__)
-+
-+#elif defined(__FreeBSD__)
-+
- #else
- struct usbdevfs_urb urb_write; /* host to device */
- struct usbdevfs_urb urb_read; /* device to host */