Don't use grep's -P switch in pstopdf as it needs execmem (bug #1079534).
Resolves: rhbz#1079534
This commit is contained in:
parent
36df523c0b
commit
659b819096
12
cups-filters-execmem.patch
Normal file
12
cups-filters-execmem.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up cups-filters-1.0.53/filter/pstopdf.execmem cups-filters-1.0.53/filter/pstopdf
|
||||
--- cups-filters-1.0.53/filter/pstopdf.execmem 2014-06-06 13:48:30.005230247 +0100
|
||||
+++ cups-filters-1.0.53/filter/pstopdf 2014-06-06 13:49:05.762403657 +0100
|
||||
@@ -105,7 +105,7 @@ eval "$(printf "%s" "$5" | sed -nre 's/.
|
||||
eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)orientation-requested=4.*/orientation="${orientation:-90}"/p')"
|
||||
eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)orientation-requested=5.*/orientation="${orientation:-270}"/p')"
|
||||
eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)orientation-requested=6.*/orientation="${orientation:-180}"/p')"
|
||||
-if printf "%s" "$5" | grep -iPq '(\s|^)landscape(=(1|on|yes|true))?(\s|$)'; then
|
||||
+if printf "%s" "$5" | grep -iq '(\s|^)landscape(=(1|on|yes|true))?(\s|$)'; then
|
||||
if test -e "$PPD"; then
|
||||
eval "$(sed -nre 's/^\*LandscapeOrientation:\s*Plus90.*/orientation="${orientation:-90}"/p' "$PPD")"
|
||||
eval "$(sed -nre 's/^\*LandscapeOrientation:\s*Minus90.*/orientation="${orientation:-270}"/p' "$PPD")"
|
@ -4,7 +4,7 @@
|
||||
Summary: OpenPrinting CUPS filters and backends
|
||||
Name: cups-filters
|
||||
Version: 1.0.53
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
|
||||
# For a breakdown of the licensing, see COPYING file
|
||||
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
|
||||
@ -240,6 +240,9 @@ fi
|
||||
%{_libdir}/libfontembed.so
|
||||
|
||||
%changelog
|
||||
* Fri Jun 6 2014 Tim Waugh <twaugh@redhat.com> - 1.0.53-3
|
||||
- Don't use grep's -P switch in pstopdf as it needs execmem (bug #1079534).
|
||||
|
||||
* Fri May 09 2014 Jiri Popelka <jpopelka@redhat.com> - 1.0.53-2
|
||||
- Return Tim's work-around patch for bug #768811.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user