Merge branch 'f14'
This commit is contained in:
commit
e15a38a90d
31
hplip-hpijs-marker-supply.patch
Normal file
31
hplip-hpijs-marker-supply.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up hplip-3.10.9/prnt/hpijs/hpijs.cpp.hpijs-marker-supply hplip-3.10.9/prnt/hpijs/hpijs.cpp
|
||||||
|
--- hplip-3.10.9/prnt/hpijs/hpijs.cpp.hpijs-marker-supply 2010-10-18 16:58:23.882993673 +0100
|
||||||
|
+++ hplip-3.10.9/prnt/hpijs/hpijs.cpp 2010-10-18 17:00:00.510869032 +0100
|
||||||
|
@@ -585,6 +585,7 @@ int main (int argc, char *argv[], char *
|
||||||
|
char *raster = NULL, *k_raster = NULL;
|
||||||
|
int status = EXIT_FAILURE;
|
||||||
|
int ret, n, i, kn=0, width, k_width;
|
||||||
|
+ int low_marker = 0;
|
||||||
|
|
||||||
|
openlog("hpijs", LOG_PID, LOG_DAEMON);
|
||||||
|
|
||||||
|
@@ -666,14 +667,17 @@ int main (int argc, char *argv[], char *
|
||||||
|
case WARN_LOW_INK_YELLOW:
|
||||||
|
case WARN_LOW_INK_MULTIPLE_PENS:
|
||||||
|
{
|
||||||
|
- fputs("STATE: +marker-supply-low-warning\n", stderr);
|
||||||
|
+ low_marker = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
- fputs("STATE: +marker-supply-low-warning\n", stderr);
|
||||||
|
+ low_marker = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ fprintf(stderr, "STATE: %cmarker-supply-low-warning\n",
|
||||||
|
+ low_marker ? "+" : "-");
|
||||||
|
+
|
||||||
|
#if 0
|
||||||
|
BUG("device model=%s\n", pSS->pPC->PrinterModel());
|
||||||
|
BUG("device class=%s\n", pSS->pPC->PrintertypeToString(pSS->pPC->SelectedDevice()));
|
24
hplip-raw_deviceID-traceback.patch
Normal file
24
hplip-raw_deviceID-traceback.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -up hplip-3.10.9/base/device.py.raw_deviceID-traceback hplip-3.10.9/base/device.py
|
||||||
|
--- hplip-3.10.9/base/device.py.raw_deviceID-traceback 2010-10-18 17:22:55.138868192 +0100
|
||||||
|
+++ hplip-3.10.9/base/device.py 2010-10-18 17:24:02.965869220 +0100
|
||||||
|
@@ -1368,6 +1368,8 @@ class Device(object):
|
||||||
|
|
||||||
|
def getDeviceID(self):
|
||||||
|
needs_close = False
|
||||||
|
+ self.raw_deviceID = ''
|
||||||
|
+ self.deviceID = {}
|
||||||
|
if self.io_state != IO_STATE_HP_OPEN:
|
||||||
|
try:
|
||||||
|
self.open()
|
||||||
|
@@ -1377,10 +1379,7 @@ class Device(object):
|
||||||
|
|
||||||
|
result_code, data = hpmudext.get_device_id(self.device_id)
|
||||||
|
|
||||||
|
- if result_code != hpmudext.HPMUD_R_OK:
|
||||||
|
- self.raw_deviceID = ''
|
||||||
|
- self.deviceID = {}
|
||||||
|
- else:
|
||||||
|
+ if result_code == hpmudext.HPMUD_R_OK:
|
||||||
|
self.raw_deviceID = data
|
||||||
|
self.deviceID = parseDeviceID(data)
|
||||||
|
|
14
hplip.spec
14
hplip.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: HP Linux Imaging and Printing Project
|
Summary: HP Linux Imaging and Printing Project
|
||||||
Name: hplip
|
Name: hplip
|
||||||
Version: 3.10.9
|
Version: 3.10.9
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+ and MIT
|
License: GPLv2+ and MIT
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Conflicts: system-config-printer < 0.6.132
|
Conflicts: system-config-printer < 0.6.132
|
||||||
@ -21,6 +21,7 @@ Patch7: hplip-udev-rules.patch
|
|||||||
Patch8: hplip-retry-open.patch
|
Patch8: hplip-retry-open.patch
|
||||||
Patch9: hplip-snmp-quirks.patch
|
Patch9: hplip-snmp-quirks.patch
|
||||||
Patch10: hplip-discovery-method.patch
|
Patch10: hplip-discovery-method.patch
|
||||||
|
Patch11: hplip-hpijs-marker-supply.patch
|
||||||
Patch12: hplip-clear-old-state-reasons.patch
|
Patch12: hplip-clear-old-state-reasons.patch
|
||||||
Patch13: hplip-env-python.patch
|
Patch13: hplip-env-python.patch
|
||||||
Patch14: hplip-hpcups-sigpipe.patch
|
Patch14: hplip-hpcups-sigpipe.patch
|
||||||
@ -34,6 +35,7 @@ Patch21: hplip-openPPD.patch
|
|||||||
Patch22: hplip-ppd-ImageableArea.patch
|
Patch22: hplip-ppd-ImageableArea.patch
|
||||||
Patch23: hplip-network-timeout.patch
|
Patch23: hplip-network-timeout.patch
|
||||||
Patch24: hplip-addgroup.patch
|
Patch24: hplip-addgroup.patch
|
||||||
|
Patch25: hplip-raw_deviceID-traceback.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -167,6 +169,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
|||||||
# Fixed hp-setup traceback when discovery page is skipped (bug #523685).
|
# Fixed hp-setup traceback when discovery page is skipped (bug #523685).
|
||||||
%patch10 -p1 -b .discovery-method
|
%patch10 -p1 -b .discovery-method
|
||||||
|
|
||||||
|
# Fixed bogus low ink warnings from hpijs driver (bug #643643).
|
||||||
|
%patch11 -p1 -b .hpijs-marker-supply
|
||||||
|
|
||||||
# Clear old printer-state-reasons we used to manage (bug #510926).
|
# Clear old printer-state-reasons we used to manage (bug #510926).
|
||||||
%patch12 -p1 -b .clear-old-state-reasons
|
%patch12 -p1 -b .clear-old-state-reasons
|
||||||
|
|
||||||
@ -230,6 +235,9 @@ done
|
|||||||
# utils.addgroup() was returning string instead of array (bug #642771).
|
# utils.addgroup() was returning string instead of array (bug #642771).
|
||||||
%patch24 -p1 -b .addgroup
|
%patch24 -p1 -b .addgroup
|
||||||
|
|
||||||
|
# Fixed traceback on error condition in device.py (bug #628125).
|
||||||
|
%patch25 -p1 -b .raw_deviceID-traceback
|
||||||
|
|
||||||
sed -i.duplex-constraints \
|
sed -i.duplex-constraints \
|
||||||
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
|
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
|
||||||
prnt/drv/hpcups.drv.in
|
prnt/drv/hpcups.drv.in
|
||||||
@ -456,6 +464,10 @@ fi
|
|||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 18 2010 Tim Waugh <twaugh@redhat.com> - 3.10.9-3
|
||||||
|
- Fixed traceback on error condition in device.py (bug #628125).
|
||||||
|
- Fixed bogus low ink warnings from hpijs driver (bug #643643).
|
||||||
|
|
||||||
* Thu Oct 14 2010 Jiri Popelka <jpopelka@redhat.com> - 3.10.9-2
|
* Thu Oct 14 2010 Jiri Popelka <jpopelka@redhat.com> - 3.10.9-2
|
||||||
- Fixed utils.addgroup() to return array instead of string (bug #642771).
|
- Fixed utils.addgroup() to return array instead of string (bug #642771).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user