-diff -urN hplip-3.11.10.org/base/pkit.py hplip-3.11.10/base/pkit.py
---- hplip-3.11.10.org/base/pkit.py 2011-10-02 05:06:15.000000000 +0200
-+++ hplip-3.11.10/base/pkit.py 2011-11-30 19:12:09.944970086 +0100
+--- hplip-3.11.10/base/pkit.py.org 2011-11-30 20:01:59.640469386 +0100
++++ hplip-3.11.10/base/pkit.py 2011-11-30 20:06:43.216664960 +0100
@@ -30,6 +30,11 @@
import shutil
import stat
# Local
from base.logger import *
from base.g import *
-@@ -318,7 +323,28 @@
+@@ -318,7 +323,31 @@
log.debug("shutdown: %s" % str(e))
return False
+ # file, md5sum, replace content at address with specified byte
+ patches = { 'lj-x86_32.so' : { 'md5': '30bdf8c844508a53d80362f9eba670c5',
+ # https://bugs.launchpad.net/hplip/+bug/666780
-+ 'replace' : [ (0xA068, 0x10) ]
-+ } }
++ 'replace' : [ (0xA068, 0x10) ] },
++ 'lj-x86_64.so' : { 'md5': '28e1b2cde011cbbcd4b5c85c1866c893',
++ # https://bugs.launchpad.net/hplip/+bug/666780
++ 'replace' : [ (0xD0D0, 0x10) ] }
++ }
+ if f in patches:
+ d = open(f, 'rb').read()
+ m = md5()
def copyPluginFiles(src_dir):
os.chdir(src_dir)
-@@ -411,6 +437,11 @@
+@@ -411,6 +440,11 @@
continue
else:
Summary(pl.UTF-8): Narzędzia Hewlett-Packard Linux Imaging and Printing - drukowanie i skanowanie przy użyciu urządzeń HP
Name: hplip
Version: 3.11.10
-Release: 1.2
+Release: 2
License: BSD (hpijs), MIT (low-level scanning and printing code), GPL v2 (the rest)
Group: Applications/System
Source0: http://downloads.sourceforge.net/hplip/%{name}-%{version}.tar.gz