Don't try to write bytecode cache for hp-config_usb_printer (bug #1266903).

This commit is contained in:
Tim Waugh 2015-10-23 15:44:47 +01:00
parent 7bd9b5179f
commit 002e63683a
2 changed files with 17 additions and 4 deletions

View File

@ -1,6 +1,15 @@
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
diff -up hplip-3.15.9/config_usb_printer.py.no-write-bytecode hplip-3.15.9/config_usb_printer.py
--- hplip-3.15.9/config_usb_printer.py.no-write-bytecode 2015-10-23 15:42:45.252723455 +0100
+++ hplip-3.15.9/config_usb_printer.py 2015-10-23 15:43:06.695592567 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python -B
# -*- coding: utf-8 -*-
#
# (c) Copyright 2011-2014 Hewlett-Packard Development Company, L.P.
diff -up hplip-3.15.9/fax/backend/hpfax.py.no-write-bytecode hplip-3.15.9/fax/backend/hpfax.py
--- hplip-3.15.9/fax/backend/hpfax.py.no-write-bytecode 2015-10-23 15:42:21.180873748 +0100
+++ hplip-3.15.9/fax/backend/hpfax.py 2015-10-23 15:42:21.189873691 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python -B

View File

@ -10,7 +10,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 3.15.9
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+ and MIT
Url: http://hplip.sourceforge.net/
@ -232,6 +232,7 @@ done
%patch21 -p1 -b .strncpy
# Don't try to write bytecode cache for hpfax backend (bug #1192761).
# or for hp-config_usb_printer (bug #1266903).
%patch22 -p1 -b .no-write-bytecode
# Ignore IOError when logging output (bug #712537).
@ -523,6 +524,9 @@ rm -f ppds-all
%postun libs -p /sbin/ldconfig
%changelog
* Fri Oct 23 2015 Tim Waugh <twaugh@redhta.com> - 3.15.9-2
- Don't try to write bytecode cache for hp-config_usb_printer (bug #1266903).
* Tue Sep 15 2015 Jiri Popelka <jpopelka@redhat.com> - 3.15.9-1
- 3.15.9