Scan to /var/tmp instead of /tmp (bug #1076954).
Resolves: rhbz#1076954
This commit is contained in:
parent
a60a298fee
commit
a8603b4eaf
12
hplip-scan-tmp.patch
Normal file
12
hplip-scan-tmp.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up hplip-3.13.11/scan.py.scan-tmp hplip-3.13.11/scan.py
|
||||
--- hplip-3.13.11/scan.py.scan-tmp 2014-04-04 17:17:50.529576108 +0100
|
||||
+++ hplip-3.13.11/scan.py 2014-04-04 17:18:26.807727330 +0100
|
||||
@@ -1072,7 +1072,7 @@ try:
|
||||
if ('editor' in dest or 'viewer' in dest or 'email' in dest or 'print' in dest) \
|
||||
and not file_saved:
|
||||
|
||||
- output_fd, output = utils.make_temp_file(suffix='.png')
|
||||
+ output_fd, output = utils.make_temp_file(dir='/var/tmp', suffix='.png')
|
||||
try:
|
||||
im.save(output)
|
||||
except IOError, e:
|
@ -7,7 +7,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 3.14.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and MIT
|
||||
|
||||
Url: http://hplip.sourceforge.net/
|
||||
@ -29,6 +29,7 @@ Patch12: hplip-logdir.patch
|
||||
Patch13: hplip-bad-low-ink-warning.patch
|
||||
Patch14: hplip-deviceIDs-ppd.patch
|
||||
Patch15: hplip-ppd-ImageableArea.patch
|
||||
Patch16: hplip-scan-tmp.patch
|
||||
|
||||
%global hpijs_epoch 1
|
||||
Requires: hpijs%{?_isa} = %{hpijs_epoch}:%{version}-%{release}
|
||||
@ -230,6 +231,9 @@ do
|
||||
gzip -n ${ppd_file#*/}
|
||||
done
|
||||
|
||||
# Scan to /var/tmp instead of /tmp (bug #1076954).
|
||||
%patch16 -p1 -b .scan-tmp
|
||||
|
||||
sed -i.duplex-constraints \
|
||||
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
|
||||
prnt/drv/hpcups.drv.in
|
||||
@ -466,6 +470,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Fri Apr 4 2014 Tim Waugh <twaugh@redhat.com> - 3.14.3-2
|
||||
- Scan to /var/tmp instead of /tmp (bug #1076954).
|
||||
|
||||
* Fri Mar 07 2014 Jiri Popelka <jpopelka@redhat.com> - 3.14.3-1
|
||||
- 3.14.3
|
||||
- --enable-udev-acl-rules configure flag has been removed upstream
|
||||
|
Loading…
Reference in New Issue
Block a user