[hplip] Don't try to write bytecode cache for hpfax backend (bug #1192761).

Tim Waugh twaugh at fedoraproject.org
Tue Mar 3 13:48:16 UTC 2015


commit 5da93b90f815c731e36be8dfdd3e516b582332af
Author: Tim Waugh <twaugh at redhat.com>
Date:   Tue Mar 3 11:44:51 2015 +0000

    Don't try to write bytecode cache for hpfax backend (bug #1192761).
    
    Resolves: rhbz#1192761

 hplip-no-write-bytecode.patch | 9 +++++++++
 hplip.spec                    | 9 ++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/hplip-no-write-bytecode.patch b/hplip-no-write-bytecode.patch
new file mode 100644
index 0000000..0f0010b
--- /dev/null
+++ b/hplip-no-write-bytecode.patch
@@ -0,0 +1,9 @@
+diff -up hplip-3.15.2/fax/backend/hpfax.py.no-write-bytecode hplip-3.15.2/fax/backend/hpfax.py
+--- hplip-3.15.2/fax/backend/hpfax.py.no-write-bytecode	2015-03-03 11:47:12.863274174 +0000
++++ hplip-3.15.2/fax/backend/hpfax.py	2015-03-03 11:47:19.719336663 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python -B
+ # -*- coding: utf-8 -*-
+ #
+ # (c) Copyright 2003-2009 Hewlett-Packard Development Company, L.P.
diff --git a/hplip.spec b/hplip.spec
index 08cc071..0e5012d 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -7,7 +7,7 @@
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 3.15.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+ and MIT
 
 Url: http://hplip.sourceforge.net/
@@ -35,6 +35,7 @@ Patch18: hplip-avahi-parsing.patch
 Patch19: hplip-reportlab.patch
 Patch20: hplip-dj990c-margin.patch
 Patch21: hplip-strncpy.patch
+Patch22: hplip-no-write-bytecode.patch
 
 %global hpijs_epoch 1
 Requires: hpijs%{?_isa} = %{hpijs_epoch}:%{version}-%{release}
@@ -217,6 +218,9 @@ done
 # Fixed uses of strncpy throughout.
 %patch21 -p1 -b .strncpy
 
+# Don't try to write bytecode cache for hpfax backend (bug #1192761).
+%patch22 -p1 -b .no-write-bytecode
+
 sed -i.duplex-constraints \
     -e 's,\(UIConstraints.* \*Duplex\),//\1,' \
     prnt/drv/hpcups.drv.in
@@ -453,6 +457,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
 %postun libs -p /sbin/ldconfig
 
 %changelog
+* Tue Mar  3 2015 Tim Waugh <twaugh at redhat.com> - 3.15.2-3
+- Don't try to write bytecode cache for hpfax backend (bug #1192761).
+
 * Thu Feb 12 2015 Tim Waugh <twaugh at redhat.com> - 3.15.2-2
 - Don't ship hp-logcapture or hp-doctor (bug #1192090). They are not
   useful in Fedora.


More information about the scm-commits mailing list