- 3.9.6b.
This commit is contained in:
parent
1ea0d53c6b
commit
4ae7502ca5
@ -1,6 +1,6 @@
|
||||
diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
--- hplip-3.9.2/io/hpmud/musb.c.device-id 2009-02-20 00:36:44.000000000 +0000
|
||||
+++ hplip-3.9.2/io/hpmud/musb.c 2009-07-23 18:15:12.923895944 +0100
|
||||
diff -up hplip-3.9.6b/io/hpmud/musb.c.device-id hplip-3.9.6b/io/hpmud/musb.c
|
||||
--- hplip-3.9.6b/io/hpmud/musb.c.device-id 2009-06-25 20:05:49.000000000 +0100
|
||||
+++ hplip-3.9.6b/io/hpmud/musb.c 2009-07-27 16:10:28.125542973 +0100
|
||||
@@ -26,6 +26,11 @@
|
||||
|
||||
#include "hpmud.h"
|
||||
@ -13,7 +13,7 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
|
||||
mud_device_vf __attribute__ ((visibility ("hidden"))) musb_mud_device_vf =
|
||||
{
|
||||
@@ -488,7 +493,8 @@ bugout:
|
||||
@@ -489,7 +494,8 @@ bugout:
|
||||
return -1; /* no endpoint found */
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
{
|
||||
int stat=1;
|
||||
|
||||
@@ -501,7 +507,8 @@ static int claim_interface(struct usb_de
|
||||
@@ -502,7 +508,8 @@ static int claim_interface(struct usb_de
|
||||
goto bugout;
|
||||
}
|
||||
|
||||
@ -33,21 +33,21 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
|
||||
#if 0 /* hp devices only have one configuration, so far ... */
|
||||
if (usb_set_configuration(FD[fd].pHD, dev->config[config].bConfigurationValue))
|
||||
@@ -561,7 +568,7 @@ static int release_interface(file_descri
|
||||
@@ -562,7 +569,7 @@ static int release_interface(file_descri
|
||||
}
|
||||
|
||||
/* Claim any open interface which is valid for device_id and device status. */
|
||||
-static int claim_id_interface(struct usb_device *dev)
|
||||
+static int claim_id_interface(struct usb_device *dev, int flags)
|
||||
{
|
||||
int fd[] = {FD_7_1_2, FD_7_1_3, FD_ff_ff_ff, FD_ff_d4_0, FD_ff_1_1, FD_ff_2_1, FD_NA};
|
||||
int i;
|
||||
enum FD_ID i;
|
||||
|
||||
@@ -570,7 +577,7 @@ static int claim_id_interface(struct usb
|
||||
{
|
||||
if (get_interface(dev, fd[i], &fd_table[fd[i]]) == 0)
|
||||
if (get_interface(dev, i, &fd_table[i]) == 0)
|
||||
{
|
||||
- if (claim_interface(libusb_device, &fd_table[fd[i]]))
|
||||
+ if (claim_interface(libusb_device, &fd_table[fd[i]], flags))
|
||||
- if (claim_interface(libusb_device, &fd_table[i]))
|
||||
+ if (claim_interface(libusb_device, &fd_table[i], flags))
|
||||
continue; /* interface is busy, try next interface */
|
||||
break; /* done */
|
||||
}
|
||||
@ -55,8 +55,8 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
{
|
||||
/* First client. */
|
||||
|
||||
- if ((fd = claim_id_interface(libusb_device)) == FD_NA)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) == FD_NA)
|
||||
- if ((fd = claim_id_interface(libusb_device)) == MAX_FD)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) == MAX_FD)
|
||||
{
|
||||
stat = HPMUD_R_DEVICE_BUSY;
|
||||
goto blackout;
|
||||
@ -64,30 +64,30 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
if (fd == FD_NA)
|
||||
{
|
||||
/* Device not in use. Claim interface, but release for other processes. */
|
||||
- if ((fd = claim_id_interface(libusb_device)) != FD_NA)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) != FD_NA)
|
||||
- if ((fd = claim_id_interface(libusb_device)) != MAX_FD)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) != MAX_FD)
|
||||
{
|
||||
*len = device_id(fd, pd->id, sizeof(pd->id)); /* get new copy and cache it */
|
||||
release_interface(&fd_table[fd]);
|
||||
@@ -1236,7 +1243,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
@@ -1239,7 +1246,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
if (fd == FD_NA)
|
||||
{
|
||||
/* Device not in use. Claim interface, but release for other processes. */
|
||||
- if ((fd = claim_id_interface(libusb_device)) != FD_NA)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) != FD_NA)
|
||||
- if ((fd = claim_id_interface(libusb_device)) != MAX_FD)
|
||||
+ if ((fd = claim_id_interface(libusb_device, 0)) != MAX_FD)
|
||||
{
|
||||
r = device_status(fd, status);
|
||||
release_interface(&fd_table[fd]);
|
||||
@@ -1339,7 +1346,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
int fd = FD_7_1_2;
|
||||
enum HPMUD_RESULT stat = HPMUD_R_DEVICE_BUSY;
|
||||
@@ -1344,7 +1351,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
|
||||
get_interface(libusb_device, fd, &fd_table[fd]);
|
||||
|
||||
- if (claim_interface(libusb_device, &fd_table[fd]))
|
||||
+ if (claim_interface(libusb_device, &fd_table[fd], 0))
|
||||
goto bugout;
|
||||
|
||||
pc->fd = fd;
|
||||
@@ -1470,7 +1477,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
@@ -1475,7 +1482,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
goto bugout;
|
||||
}
|
||||
|
||||
@ -96,25 +96,43 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
goto bugout;
|
||||
|
||||
pc->fd = fd;
|
||||
@@ -1504,7 +1511,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
else
|
||||
@@ -1499,13 +1506,13 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
/* Initialize MLC transport if this is the first MLC channel. */
|
||||
if (pd->channel_cnt==1)
|
||||
{
|
||||
- if (get_interface(libusb_device, FD_7_1_3, &fd_table[FD_7_1_3]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_3]) == 0)
|
||||
+ if (get_interface(libusb_device, FD_7_1_3, &fd_table[FD_7_1_3]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_3], 0) == 0)
|
||||
fd = FD_7_1_3; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_ff_ff_ff, &fd_table[FD_ff_ff_ff]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_ff_ff]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_ff_ff_ff, &fd_table[FD_ff_ff_ff]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_ff_ff], 0) == 0)
|
||||
fd = FD_ff_ff_ff; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_ff_d4_0, &fd_table[FD_ff_d4_0]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_d4_0]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_ff_d4_0, &fd_table[FD_ff_d4_0]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_d4_0], 0) == 0)
|
||||
fd = FD_ff_d4_0; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_7_1_2, &fd_table[FD_7_1_2]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_2]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_7_1_2, &fd_table[FD_7_1_2]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_2], 0) == 0)
|
||||
fd = FD_7_1_2; /* raw, mlc, dot4 */
|
||||
|
||||
- if (claim_interface(libusb_device, &fd_table[fd]))
|
||||
+ if (claim_interface(libusb_device, &fd_table[fd], 0))
|
||||
else
|
||||
{
|
||||
stat = HPMUD_R_DEVICE_BUSY;
|
||||
goto bugout;
|
||||
@@ -1726,7 +1733,7 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
else
|
||||
@@ -1719,13 +1726,13 @@ enum HPMUD_RESULT __attribute__ ((visibi
|
||||
/* Initialize MLC transport if this is the first MLC channel. */
|
||||
if (pd->channel_cnt==1)
|
||||
{
|
||||
- if (get_interface(libusb_device, FD_7_1_3, &fd_table[FD_7_1_3]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_3]) == 0)
|
||||
+ if (get_interface(libusb_device, FD_7_1_3, &fd_table[FD_7_1_3]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_3], 0) == 0)
|
||||
fd = FD_7_1_3; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_ff_ff_ff, &fd_table[FD_ff_ff_ff]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_ff_ff]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_ff_ff_ff, &fd_table[FD_ff_ff_ff]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_ff_ff], 0) == 0)
|
||||
fd = FD_ff_ff_ff; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_ff_d4_0, &fd_table[FD_ff_d4_0]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_d4_0]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_ff_d4_0, &fd_table[FD_ff_d4_0]) == 0 && claim_interface(libusb_device, &fd_table[FD_ff_d4_0], 0) == 0)
|
||||
fd = FD_ff_d4_0; /* mlc, dot4 */
|
||||
- else if (get_interface(libusb_device, FD_7_1_2, &fd_table[FD_7_1_2]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_2]) == 0)
|
||||
+ else if (get_interface(libusb_device, FD_7_1_2, &fd_table[FD_7_1_2]) == 0 && claim_interface(libusb_device, &fd_table[FD_7_1_2], 0) == 0)
|
||||
fd = FD_7_1_2; /* raw, mlc, dot4 */
|
||||
|
||||
- if (claim_interface(libusb_device, &fd_table[fd]))
|
||||
+ if (claim_interface(libusb_device, &fd_table[fd], 0))
|
||||
else
|
||||
{
|
||||
stat = HPMUD_R_DEVICE_BUSY;
|
||||
goto bugout;
|
||||
@@ -1959,6 +1966,91 @@ bugout:
|
||||
@@ -1960,6 +1967,91 @@ bugout:
|
||||
* USB probe devices, walk the USB bus(s) looking for HP products.
|
||||
*/
|
||||
|
||||
@ -131,7 +149,7 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
+
|
||||
+ libusb_device = dev;
|
||||
+ fd = claim_id_interface (dev, CLAIM_NO_DETACH);
|
||||
+ if (fd == FD_NA)
|
||||
+ if (fd == MAX_FD)
|
||||
+ {
|
||||
+ try_usblp = 1;
|
||||
+ goto try_usblp_instead;
|
||||
@ -206,7 +224,7 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
int __attribute__ ((visibility ("hidden"))) musb_probe_devices(char *lst, int lst_size, int *cnt)
|
||||
{
|
||||
struct usb_bus *bus;
|
||||
@@ -2006,6 +2098,7 @@ int __attribute__ ((visibility ("hidden"
|
||||
@@ -2007,6 +2099,7 @@ int __attribute__ ((visibility ("hidden"
|
||||
|
||||
if (model[0])
|
||||
{
|
||||
@ -214,7 +232,7 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
snprintf(sz, sizeof(sz), "hp:/usb/%s?serial=%s", model, serial);
|
||||
|
||||
/* See if device is supported by hplip. */
|
||||
@@ -2016,17 +2109,19 @@ int __attribute__ ((visibility ("hidden"
|
||||
@@ -2017,17 +2110,19 @@ int __attribute__ ((visibility ("hidden"
|
||||
continue; /* ignor, not supported */
|
||||
}
|
||||
|
||||
@ -245,32 +263,32 @@ diff -up hplip-3.9.2/io/hpmud/musb.c.device-id hplip-3.9.2/io/hpmud/musb.c
|
||||
*cnt+=1;
|
||||
}
|
||||
}
|
||||
diff -up hplip-3.9.2/Makefile.am.device-id hplip-3.9.2/Makefile.am
|
||||
--- hplip-3.9.2/Makefile.am.device-id 2009-02-20 00:36:58.000000000 +0000
|
||||
+++ hplip-3.9.2/Makefile.am 2009-07-23 18:12:15.843895808 +0100
|
||||
@@ -218,9 +218,9 @@ libhpmud_la_SOURCES = io/hpmud/hpmud.c i
|
||||
diff -up hplip-3.9.6b/Makefile.am.device-id hplip-3.9.6b/Makefile.am
|
||||
--- hplip-3.9.6b/Makefile.am.device-id 2009-06-25 20:05:57.000000000 +0100
|
||||
+++ hplip-3.9.6b/Makefile.am 2009-07-27 16:05:54.700543137 +0100
|
||||
@@ -67,9 +67,9 @@ libhpmud_la_SOURCES = io/hpmud/hpmud.c i
|
||||
io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/musb.h io/hpmud/pml.h io/hpmud/dot4.c \
|
||||
io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h
|
||||
if NETWORK_BUILD
|
||||
-libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -lpthread -lnetsnmp -lcrypto
|
||||
+libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -ludev -lpthread -lnetsnmp -lcrypto
|
||||
-libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -lpthread -l$(SNMPLIB) -lcrypto
|
||||
+libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -ludev -lpthread -l$(SNMPLIB) -lcrypto
|
||||
else
|
||||
-libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -lpthread
|
||||
+libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -ludev -lpthread
|
||||
-libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -lpthread
|
||||
+libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -ludev -lpthread
|
||||
endif
|
||||
libhpmud_la_CFLAGS = -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\"
|
||||
|
||||
diff -up hplip-3.9.2/Makefile.in.device-id hplip-3.9.2/Makefile.in
|
||||
--- hplip-3.9.2/Makefile.in.device-id 2009-02-20 00:37:52.000000000 +0000
|
||||
+++ hplip-3.9.2/Makefile.in 2009-07-23 18:12:15.850895526 +0100
|
||||
@@ -3954,8 +3954,8 @@ dist_unrel_DATA =
|
||||
diff -up hplip-3.9.6b/Makefile.in.device-id hplip-3.9.6b/Makefile.in
|
||||
--- hplip-3.9.6b/Makefile.in.device-id 2009-06-25 21:02:19.000000000 +0100
|
||||
+++ hplip-3.9.6b/Makefile.in 2009-07-27 16:06:31.812417344 +0100
|
||||
@@ -3618,8 +3618,8 @@ cups_drv = prnt/drv/hpcups.drv
|
||||
@HPLIP_BUILD_TRUE@ io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/musb.h io/hpmud/pml.h io/hpmud/dot4.c \
|
||||
@HPLIP_BUILD_TRUE@ io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h
|
||||
|
||||
-@HPLIP_BUILD_TRUE@@NETWORK_BUILD_FALSE@libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -lpthread
|
||||
-@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -lpthread -lnetsnmp -lcrypto
|
||||
+@HPLIP_BUILD_TRUE@@NETWORK_BUILD_FALSE@libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -ludev -lpthread
|
||||
+@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpmud_la_LDFLAGS = -version-info 0:4:0 -lusb -ludev -lpthread -lnetsnmp -lcrypto
|
||||
-@HPLIP_BUILD_TRUE@@NETWORK_BUILD_FALSE@libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -lpthread
|
||||
-@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -lpthread -l$(SNMPLIB) -lcrypto
|
||||
+@HPLIP_BUILD_TRUE@@NETWORK_BUILD_FALSE@libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -ludev -lpthread
|
||||
+@HPLIP_BUILD_TRUE@@NETWORK_BUILD_TRUE@libhpmud_la_LDFLAGS = -version-info 0:5:0 -lusb -ludev -lpthread -l$(SNMPLIB) -lcrypto
|
||||
@HPLIP_BUILD_TRUE@libhpmud_la_CFLAGS = -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\"
|
||||
|
||||
# hpmudext
|
||||
@HPLIP_BUILD_TRUE@libhpip_la_LDFLAGS = -version-info 0:1:0
|
||||
@HPLIP_BUILD_TRUE@libhpip_la_LIBADD = -lm
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -up hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp.disc-media hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp
|
||||
--- hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp.disc-media 2009-02-20 00:38:04.000000000 +0000
|
||||
+++ hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp 2009-06-24 09:54:12.176317380 +0100
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/dj9xxvip.cpp.disc-media hplip-3.9.6b/prnt/hpijs/dj9xxvip.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/dj9xxvip.cpp.disc-media 2009-06-25 21:02:29.000000000 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/dj9xxvip.cpp 2009-07-27 17:10:55.882543437 +0100
|
||||
@@ -500,6 +500,23 @@ DRIVER_ERROR HeaderDJ990::Send()
|
||||
QUALITY_MODE eQualityMode;
|
||||
BOOL bDeviceText;
|
||||
@ -22,10 +22,10 @@ diff -up hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp.disc-media hplip-3.9.2/prnt/hpijs/d
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
thePrintContext->GetPrintModeSettings (eQualityMode, eMediaType, eColorMode, bDeviceText);
|
||||
if (eMediaType == MEDIA_CDDVD)
|
||||
{
|
||||
@@ -516,7 +533,9 @@ DRIVER_ERROR HeaderDJ990::Send()
|
||||
thePrintContext->GetPrintModeSettings (eQualityMode, eMediaType, eColorMode, bDeviceText);
|
||||
|
||||
#ifdef APDK_LINUX
|
||||
@@ -511,7 +528,9 @@ DRIVER_ERROR HeaderDJ990::Send()
|
||||
* on what was selected from ppd.
|
||||
*/
|
||||
|
||||
@ -34,9 +34,9 @@ diff -up hplip-3.9.2/prnt/hpijs/dj9xxvip.cpp.disc-media hplip-3.9.2/prnt/hpijs/d
|
||||
+ */
|
||||
+ // SetMediaType (MediaTypeToPcl (eMediaType));
|
||||
#endif
|
||||
|
||||
StartSend();
|
||||
@@ -733,11 +752,12 @@ void HeaderDJ990::SetMediaSource(MediaSo
|
||||
|
||||
if (eMediaType == MEDIA_CDDVD)
|
||||
@@ -734,11 +753,12 @@ void HeaderDJ990::SetMediaSource(MediaSo
|
||||
msrccount=EscAmplCopy((BYTE*)mediasource,msource,'H');
|
||||
if (msource == sourceTrayCDDVD)
|
||||
{
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
diff -up hplip-3.9.2/Makefile.am.libsane hplip-3.9.2/Makefile.am
|
||||
--- hplip-3.9.2/Makefile.am.libsane 2009-02-20 00:36:58.000000000 +0000
|
||||
+++ hplip-3.9.2/Makefile.am 2009-02-20 11:10:19.000000000 +0000
|
||||
@@ -195,7 +195,7 @@ else
|
||||
diff -up hplip-3.9.6b/Makefile.am.libsane hplip-3.9.6b/Makefile.am
|
||||
--- hplip-3.9.6b/Makefile.am.libsane 2009-07-27 16:18:54.166417989 +0100
|
||||
+++ hplip-3.9.6b/Makefile.am 2009-07-27 16:19:23.487543339 +0100
|
||||
@@ -55,7 +55,7 @@ else
|
||||
libsane_hpaio_la_LDFLAGS = -version-info 1:0:0
|
||||
endif
|
||||
# The following is a interlibrary dependency that must be compiled first.
|
||||
-libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups
|
||||
+libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -lsane
|
||||
-libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -ldl
|
||||
+libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -ldl -lsane
|
||||
#libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG
|
||||
libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS)
|
||||
|
||||
diff -up hplip-3.9.2/Makefile.in.libsane hplip-3.9.2/Makefile.in
|
||||
--- hplip-3.9.2/Makefile.in.libsane 2009-02-20 00:37:52.000000000 +0000
|
||||
+++ hplip-3.9.2/Makefile.in 2009-02-20 11:10:42.000000000 +0000
|
||||
@@ -3933,7 +3933,7 @@ dist_unrel_DATA =
|
||||
endif # SCAN_BUILD
|
||||
diff -up hplip-3.9.6b/Makefile.in.libsane hplip-3.9.6b/Makefile.in
|
||||
--- hplip-3.9.6b/Makefile.in.libsane 2009-07-27 16:18:54.174417364 +0100
|
||||
+++ hplip-3.9.6b/Makefile.in 2009-07-27 16:19:39.431417307 +0100
|
||||
@@ -3608,7 +3608,7 @@ cups_drv = prnt/drv/hpcups.drv
|
||||
@DARWIN_BUILD_FALSE@@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LDFLAGS = -version-info 1:0:0
|
||||
@DARWIN_BUILD_TRUE@@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LDFLAGS = -module -framework CoreFoundation -version-info 1:0:0
|
||||
# The following is a interlibrary dependency that must be compiled first.
|
||||
-@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups
|
||||
+@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -lsane
|
||||
-@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -ldl
|
||||
+@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -ldl -lsane
|
||||
#libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG
|
||||
@HPLIP_BUILD_TRUE@@SCAN_BUILD_TRUE@libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS)
|
||||
|
||||
|
||||
@ -1,17 +1,34 @@
|
||||
diff -up hplip-2.8.2/prnt/hpijs/hpijs.cpp.marker-supply hplip-2.8.2/prnt/hpijs/hpijs.cpp
|
||||
--- hplip-2.8.2/prnt/hpijs/hpijs.cpp.marker-supply 2008-02-08 19:36:38.000000000 +0000
|
||||
+++ hplip-2.8.2/prnt/hpijs/hpijs.cpp 2008-03-04 17:51:02.000000000 +0000
|
||||
@@ -541,11 +541,11 @@ int main (int argc, char *argv[], char *
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/hpcups.cpp.marker-supply hplip-3.9.6b/prnt/hpijs/hpcups.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/hpcups.cpp.marker-supply 2009-07-27 18:43:01.724542229 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/hpcups.cpp 2009-07-27 18:43:09.416543072 +0100
|
||||
@@ -347,11 +347,11 @@ int HPCups::initContext (char **argv)
|
||||
case WARN_LOW_INK_YELLOW:
|
||||
case WARN_LOW_INK_MULTIPLE_PENS:
|
||||
{
|
||||
- BUG ("STATE: marker-supply-low-warning\n");
|
||||
+ BUG ("STATE: +marker-supply-low-warning\n");
|
||||
break;
|
||||
}
|
||||
default:
|
||||
- BUG ("STATE: -marker-supply-low-warning");
|
||||
+ BUG ("STATE: -marker-supply-low-warning\n");
|
||||
}
|
||||
}
|
||||
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/hpijs.cpp.marker-supply hplip-3.9.6b/prnt/hpijs/hpijs.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/hpijs.cpp.marker-supply 2009-07-27 18:42:48.290417159 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/hpijs.cpp 2009-07-27 18:42:48.315417579 +0100
|
||||
@@ -630,11 +630,11 @@ int main (int argc, char *argv[], char *
|
||||
case WARN_LOW_INK_YELLOW:
|
||||
case WARN_LOW_INK_MULTIPLE_PENS:
|
||||
{
|
||||
- bug ("STATE: marker-supply-low-warning\n");
|
||||
+ bug ("STATE: +marker-supply-low-warning\n");
|
||||
- BUG ("STATE: marker-supply-low-warning\n");
|
||||
+ BUG ("STATE: +marker-supply-low-warning\n");
|
||||
break;
|
||||
}
|
||||
default:
|
||||
- bug ("STATE: -marker-supply-low-warning");
|
||||
+ bug ("STATE: -marker-supply-low-warning\n");
|
||||
- BUG ("STATE: -marker-supply-low-warning");
|
||||
+ BUG ("STATE: -marker-supply-low-warning\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,19 +1,35 @@
|
||||
diff -up hplip-2.8.12/prnt/hpijs/hpijs.cpp.segfault hplip-2.8.12/prnt/hpijs/hpijs.cpp
|
||||
--- hplip-2.8.12/prnt/hpijs/hpijs.cpp.segfault 2009-01-13 15:11:55.000000000 +0000
|
||||
+++ hplip-2.8.12/prnt/hpijs/hpijs.cpp 2009-01-13 15:13:49.000000000 +0000
|
||||
@@ -231,8 +231,14 @@ int hpijs_set_cb (void *set_cb_data, Ijs
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/hpcups.cpp.segfault hplip-3.9.6b/prnt/hpijs/hpcups.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/hpcups.cpp.segfault 2009-06-25 20:04:19.000000000 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/hpcups.cpp 2009-07-27 18:42:04.561544716 +0100
|
||||
@@ -373,9 +373,12 @@ int HPCups::initContext (char **argv)
|
||||
if (err == PLUGIN_LIBRARY_MISSING)
|
||||
{
|
||||
// call dbus here
|
||||
- SendDbusMessage (getenv ("DEVICE_URI"), getenv ("PRINTER"),
|
||||
- EVENT_PRINT_FAILED_MISSING_PLUGIN,
|
||||
- argv[2], atoi (argv[1]), argv[3]);
|
||||
+ const char *device_uri = getenv ("DEVICE_URI");
|
||||
+ const char *printer = getenv ("PRINTER");
|
||||
+ if (device_uri && printer)
|
||||
+ SendDbusMessage (device_uri, printer,
|
||||
+ EVENT_PRINT_FAILED_MISSING_PLUGIN,
|
||||
+ argv[2], atoi (argv[1]), argv[3]);
|
||||
BUG ("ERROR: unable to set device = %s, err = %d\n", attr->value, err);
|
||||
return 1;
|
||||
}
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/hpijs.cpp.segfault hplip-3.9.6b/prnt/hpijs/hpijs.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/hpijs.cpp.segfault 2009-06-25 20:04:19.000000000 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/hpijs.cpp 2009-07-27 18:39:46.755417388 +0100
|
||||
@@ -253,8 +253,11 @@ int hpijs_set_cb (void *set_cb_data, Ijs
|
||||
// call dbus here
|
||||
const char *user_name = " ";
|
||||
const char *title = " ";
|
||||
+ char *device_uri = getenv ("DEVICE_URI");
|
||||
+ char *printer = getenv("PRINTER");
|
||||
+ char *printer = getenv ("PRINTER");
|
||||
int job_id = 0;
|
||||
- SendDbusMessage (getenv ("DEVICE_URI"), getenv("PRINTER"),
|
||||
+ if (!device_uri)
|
||||
+ device_uri = "";
|
||||
+ if (!printer)
|
||||
+ printer = "";
|
||||
+ SendDbusMessage (device_uri, printer,
|
||||
+ SendDbusMessage (device_uri ? device_uri : "",
|
||||
+ printer ? printer : "",
|
||||
EVENT_PRINT_FAILED_MISSING_PLUGIN,
|
||||
user_name, job_id, title);
|
||||
bug("unable to set device=%s, err=%d\n", svalue, r);
|
||||
BUG("unable to set device=%s, err=%d\n", svalue, r);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
diff -up hplip-3.9.2/prnt/hpijs/dj3320.cpp.strstr-const hplip-3.9.2/prnt/hpijs/dj3320.cpp
|
||||
--- hplip-3.9.2/prnt/hpijs/dj3320.cpp.strstr-const 2009-02-20 00:38:04.000000000 +0000
|
||||
+++ hplip-3.9.2/prnt/hpijs/dj3320.cpp 2009-02-20 11:27:51.000000000 +0000
|
||||
@@ -403,7 +403,7 @@ DISPLAY_STATUS DJ3320::ParseError (BYTE
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/dj3320.cpp.strstr-const hplip-3.9.6b/prnt/hpijs/dj3320.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/dj3320.cpp.strstr-const 2009-06-25 21:02:29.000000000 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/dj3320.cpp 2009-07-27 16:14:52.868542337 +0100
|
||||
@@ -405,7 +405,7 @@ DISPLAY_STATUS DJ3320::ParseError (BYTE
|
||||
{
|
||||
DRIVER_ERROR err = NO_ERROR;
|
||||
BYTE byDevIDBuffer[DevIDBuffSize];
|
||||
@ -10,18 +10,32 @@ diff -up hplip-3.9.2/prnt/hpijs/dj3320.cpp.strstr-const hplip-3.9.2/prnt/hpijs/d
|
||||
BYTE byStatus1, byStatus2;
|
||||
|
||||
memset(byDevIDBuffer, 0, sizeof(byDevIDBuffer));
|
||||
diff -up hplip-3.9.2/prnt/hpijs/registry.cpp.strstr-const hplip-3.9.2/prnt/hpijs/registry.cpp
|
||||
--- hplip-3.9.2/prnt/hpijs/registry.cpp.strstr-const 2009-02-20 00:38:04.000000000 +0000
|
||||
+++ hplip-3.9.2/prnt/hpijs/registry.cpp 2009-02-20 11:27:00.000000000 +0000
|
||||
@@ -292,15 +292,15 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
|
||||
diff -up hplip-3.9.6b/prnt/hpijs/registry.cpp.strstr-const hplip-3.9.6b/prnt/hpijs/registry.cpp
|
||||
--- hplip-3.9.6b/prnt/hpijs/registry.cpp.strstr-const 2009-06-25 21:02:29.000000000 +0100
|
||||
+++ hplip-3.9.6b/prnt/hpijs/registry.cpp 2009-07-27 16:18:41.583417187 +0100
|
||||
@@ -290,14 +290,14 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
|
||||
err = pSS->GetDeviceID(DevIDBuffer, DevIDBuffSize, FALSE);
|
||||
ERRCHECK; // should be either NO_ERROR or BAD_DEVICE_ID
|
||||
|
||||
- char *cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "CMD:");
|
||||
+ char *cmdStr = strstr ((char *) DevIDBuffer+2, "CMD:");
|
||||
char *cmdStrEnd;
|
||||
if ((strstr((const char *) DevIDBuffer+2,"CMD:LDL")))
|
||||
{
|
||||
device = eDJ3320;
|
||||
match = TRUE;
|
||||
}
|
||||
- char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:");
|
||||
+ const char *cmdStr = strstr ((const char *) DevIDBuffer+2, "CMD:");
|
||||
if (!cmdStr)
|
||||
- if (!match && cmdStr && (cmdStrEnd = (char *) strstr (cmdStr, ";")))
|
||||
+ if (!match && cmdStr && (cmdStrEnd = strstr (cmdStr, ";")))
|
||||
{
|
||||
*cmdStrEnd = '\0';
|
||||
if (strstr (cmdStr, "LDL"))
|
||||
@@ -309,12 +309,12 @@ DRIVER_ERROR DeviceRegistry::SelectDevic
|
||||
}
|
||||
if (!match && !cmdStr)
|
||||
{
|
||||
cmdStr = strstr ((const char *) DevIDBuffer+2, "COMMAND SET:");
|
||||
- cmdStr = (char *) strstr ((const char *) DevIDBuffer+2, "COMMAND SET:");
|
||||
+ cmdStr = strstr ((char *) DevIDBuffer+2, "COMMAND SET:");
|
||||
}
|
||||
- if (!match && cmdStr && (strstr ((const char *) cmdStr+4, "POSTSCRIPT") ||
|
||||
- strstr ((const char *) cmdStr+4, "PostScript") ||
|
||||
|
||||
24
hplip.spec
24
hplip.spec
@ -1,7 +1,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 3.9.2
|
||||
Release: 9%{?dist}
|
||||
Version: 3.9.6b
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+ and MIT
|
||||
Group: System Environment/Daemons
|
||||
Conflicts: system-config-printer < 0.6.132
|
||||
@ -140,7 +140,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
||||
%configure --disable-foomatic-xml-install --disable-cups-install \
|
||||
--enable-scan-build --enable-gui-build --enable-fax-build \
|
||||
--disable-foomatic-rip-hplip-install --enable-dbus \
|
||||
--enable-qt4
|
||||
--enable-qt4 --enable-hpcups-install --enable-cups-drv-install \
|
||||
--enable-hpijs-install
|
||||
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
|
||||
@ -207,7 +209,7 @@ rm -rf %{buildroot}
|
||||
%{_bindir}/hp-align
|
||||
%{_bindir}/hp-clean
|
||||
%{_bindir}/hp-colorcal
|
||||
%{_bindir}/hp-devicesetup
|
||||
%{_bindir}/hp-devicesettings
|
||||
%{_bindir}/hp-fab
|
||||
%{_bindir}/hp-faxsetup
|
||||
%{_bindir}/hp-firmware
|
||||
@ -217,6 +219,7 @@ rm -rf %{buildroot}
|
||||
%{_bindir}/hp-makecopies
|
||||
%{_bindir}/hp-makeuri
|
||||
%{_bindir}/hp-mkuri
|
||||
%{_bindir}/hp-pkservice
|
||||
%{_bindir}/hp-plugin
|
||||
%{_bindir}/hp-pqdiag
|
||||
%{_bindir}/hp-printsettings
|
||||
@ -228,6 +231,7 @@ rm -rf %{buildroot}
|
||||
%{_bindir}/hp-testpage
|
||||
%{_bindir}/hp-timedate
|
||||
%{_bindir}/hp-unload
|
||||
%{_bindir}/hp-wificonfig
|
||||
# Note: this must be /usr/lib not %{_libdir}, since that's the
|
||||
# CUPS serverbin directory.
|
||||
/usr/lib/cups/backend/hp
|
||||
@ -237,7 +241,7 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/hplip/align.py*
|
||||
%{_datadir}/hplip/clean.py*
|
||||
%{_datadir}/hplip/colorcal.py*
|
||||
%{_datadir}/hplip/devicesetup.py*
|
||||
%{_datadir}/hplip/devicesettings.py*
|
||||
%{_datadir}/hplip/fab.py*
|
||||
%{_datadir}/hplip/fax
|
||||
%{_datadir}/hplip/faxsetup.py*
|
||||
@ -250,6 +254,7 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/hplip/linefeedcal.py*
|
||||
%{_datadir}/hplip/makecopies.py*
|
||||
%{_datadir}/hplip/makeuri.py*
|
||||
%{_datadir}/hplip/pkservice.py*
|
||||
%{_datadir}/hplip/plugin.py*
|
||||
%{_datadir}/hplip/pqdiag.py*
|
||||
%{_datadir}/hplip/printsettings.py*
|
||||
@ -261,6 +266,7 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/hplip/testpage.py*
|
||||
%{_datadir}/hplip/timedate.py*
|
||||
%{_datadir}/hplip/unload.py*
|
||||
%{_datadir}/hplip/wificonfig.py*
|
||||
# Directories
|
||||
%{_datadir}/hplip/base
|
||||
%{_datadir}/hplip/copier
|
||||
@ -296,8 +302,6 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/hplip/toolbox.py*
|
||||
# Directories
|
||||
%{_datadir}/hplip/data/images
|
||||
%{_datadir}/hplip/plugins
|
||||
%{_datadir}/hplip/ui
|
||||
%{_datadir}/hplip/ui4
|
||||
|
||||
%files -n hpijs
|
||||
@ -308,6 +312,9 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/cups/drv/*
|
||||
# Note: this must be /usr/lib not %{_libdir}, since that's the
|
||||
# CUPS serverbin directory.
|
||||
/usr/lib/cups/filter/hpcac
|
||||
/usr/lib/cups/filter/hpcups
|
||||
/usr/lib/cups/filter/hpcupsfax
|
||||
/usr/lib/cups/filter/hplipjs
|
||||
|
||||
%files -n libsane-hpaio
|
||||
@ -336,6 +343,9 @@ fi
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2009 Tim Waugh <twaugh@redhat.com> 3.9.6b-1
|
||||
- 3.9.6b.
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user