From 14373f5ef100b348185fc52c18f9b9f029aebe6b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 10 2020 09:50:01 +0000 Subject: import foomatic-4.0.9-10.el7_9 --- diff --git a/SOURCES/foomatic-remove-tmpfile.patch b/SOURCES/foomatic-remove-tmpfile.patch new file mode 100644 index 0000000..e1031d0 --- /dev/null +++ b/SOURCES/foomatic-remove-tmpfile.patch @@ -0,0 +1,17 @@ +diff -up foomatic-filters-4.0.17/foomaticrip.c.remove-tmpfile foomatic-filters-4.0.17/foomaticrip.c +--- foomatic-filters-4.0.17/foomaticrip.c.remove-tmpfile 2020-10-27 09:49:53.039984158 +0100 ++++ foomatic-filters-4.0.17/foomaticrip.c 2020-10-27 09:50:30.369664314 +0100 +@@ -1080,6 +1080,13 @@ int print_file(const char *filename, int + ret = print_file("", 0); + + wait_for_process(renderer_pid); ++ ++ // Delete temp file if we created one ++ if ( *tmpfilename ) { ++ _log("Removing temporary file %s\n", tmpfilename); ++ unlink(tmpfilename); ++ } ++ + return ret; + } + diff --git a/SPECS/foomatic.spec b/SPECS/foomatic.spec index 7901313..8ec4346 100644 --- a/SPECS/foomatic.spec +++ b/SPECS/foomatic.spec @@ -4,7 +4,7 @@ Summary: Tools for using the foomatic database of printers and printer drivers Name: foomatic Version: %{enginever} -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv2+ Group: System Environment/Libraries @@ -23,6 +23,7 @@ Source1: foomatic-filters-%{filtersver}-clean.tar.gz ## PATCHES FOR FOOMATIC-FILTERS (PATCHES 1 TO 100) Patch1: foomatic-filters-debug-string.patch Patch2: 0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch +Patch3: foomatic-remove-tmpfile.patch ## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200) Patch101: foomatic-manpages.patch @@ -89,6 +90,8 @@ pushd foomatic-filters-%{filtersver} %patch1 -p1 -b .debug-string # 1707559 - removal of option in ghostscript caused foomatic-rip to fail %patch2 -p1 -b .foomatic-rip-crash +# 1891679 - [RHEL 7] foomatic-rip files up /var/spool/tmp with temporary files +%patch3 -p1 -b .remove-tmpfile aclocal automake --add-missing @@ -208,6 +211,9 @@ exit 0 %{_mandir}/man1/foomatic-rip.1* %changelog +* Tue Oct 27 2020 Zdenek Dohnal - 4.0.9-10 +- 1891679 - [RHEL 7] foomatic-rip files up /var/spool/tmp with temporary files + * Thu May 23 2019 Zdenek Dohnal - 4.0.9-9 - 1707559 - removal of option in ghostscript caused foomatic-rip to fail