From 52892f1e66cc72fc23aff6dc667f63e45c75b500 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Mon, 4 Jan 2016 16:54:43 +0100 Subject: [PATCH] Don't try to write bytecode cache for hpps filter (bug #1241548). --- hplip-no-write-bytecode.patch | 9 +++++++++ hplip.spec | 10 +++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/hplip-no-write-bytecode.patch b/hplip-no-write-bytecode.patch index acf9d89..95f3ecc 100644 --- a/hplip-no-write-bytecode.patch +++ b/hplip-no-write-bytecode.patch @@ -16,3 +16,12 @@ diff -up hplip-3.15.9/fax/backend/hpfax.py.no-write-bytecode hplip-3.15.9/fax/ba # -*- coding: utf-8 -*- # # (c) Copyright 2003-2009 Hewlett-Packard Development Company, L.P. +diff -up hplip-3.15.9/prnt/filters/hpps.no-write-bytecode hplip-3.15.9/prnt/filters/hpps +--- hplip-3.15.9/prnt/filters/hpps.no-write-bytecode 2016-01-04 16:44:08.000000000 +0100 ++++ hplip-3.15.9/prnt/filters/hpps 2016-01-04 16:50:11.272921194 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python -B + # -*- coding: utf-8 -*- + # + # (c) Copyright 2003-2012 Hewlett-Packard Development Company, L.P. diff --git a/hplip.spec b/hplip.spec index 437963f..cfdaa5f 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: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and MIT Url: http://hplip.sourceforge.net/ @@ -231,8 +231,9 @@ done # Fixed uses of strncpy throughout. %patch21 -p1 -b .strncpy -# Don't try to write bytecode cache for hpfax backend (bug #1192761). -# or for hp-config_usb_printer (bug #1266903). +# Don't try to write bytecode cache for hpfax backend (bug #1192761) +# or hp-config_usb_printer (bug #1266903) +# or hpps filter (bug #1241548). %patch22 -p1 -b .no-write-bytecode # Ignore IOError when logging output (bug #712537). @@ -524,6 +525,9 @@ rm -f ppds-all %postun libs -p /sbin/ldconfig %changelog +* Mon Jan 04 2016 Jiri Popelka - 3.15.9-3 +- Don't try to write bytecode cache for hpps filter (bug #1241548). + * Fri Oct 23 2015 Tim Waugh - 3.15.9-2 - Don't try to write bytecode cache for hp-config_usb_printer (bug #1266903).