From 002e63683ae65f5814ae672baa08bbf6626bdc8c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Oct 23 2015 14:45:57 +0000 Subject: Don't try to write bytecode cache for hp-config_usb_printer (bug #1266903). --- diff --git a/hplip-no-write-bytecode.patch b/hplip-no-write-bytecode.patch index 0f0010b..acf9d89 100644 --- a/hplip-no-write-bytecode.patch +++ b/hplip-no-write-bytecode.patch @@ -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 diff --git a/hplip.spec b/hplip.spec index 6f948db..437963f 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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 - 3.15.9-2 +- Don't try to write bytecode cache for hp-config_usb_printer (bug #1266903). + * Tue Sep 15 2015 Jiri Popelka - 3.15.9-1 - 3.15.9