#10 fix ps2epsi (bz #1931832)
Closed 2 years ago by mjg. Opened 3 years ago by mjg.
rpms/ mjg/ghostscript f34  into  f34

@@ -0,0 +1,35 @@ 

+ From c6166768c6e963b0fe28ccdb266629443e521381 Mon Sep 17 00:00:00 2001

+ Message-Id: <c6166768c6e963b0fe28ccdb266629443e521381.1614089593.git.gruber@math.uni-hannover.de>

+ From: Ray Johnston <ray.johnston@artifex.com>

+ Date: Mon, 14 Dec 2020 08:39:50 -0800

+ Subject: [PATCH] Fix bug 703270: Wrong path for PostScript helper file in

+  ps2epsi

+ 

+ In the change mentioned in the bug, rather than rely on the LIBPATH

+ search method, the ps2epsi script assumed that pd2epsi.ps would be

+ in the same directory as the 'gs' executable, which is not correct.

+ 

+ Change to use bare 'ps2epsi.ps' so that it will be found on the

+ LIBPATH as instialled by: make install

+ ---

+  lib/ps2epsi | 4 ++--

+  1 file changed, 2 insertions(+), 2 deletions(-)

+ 

+ diff --git a/lib/ps2epsi b/lib/ps2epsi

+ index 7590cb5a7..dbfc9fb3d 100755

+ --- a/lib/ps2epsi

+ +++ b/lib/ps2epsi

+ @@ -40,8 +40,8 @@ else

+  	outfile=$2

+  fi

+  

+ -# Note, we expect 'ps2epsi.ps' to be in the same directory as 'ps2epsi'

+ +# Note, we expect 'ps2epsi.ps' to be on one of the search paths which can be seen by: gs -h

+  "$GS_EXECUTABLE" -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile="${outfile}" \

+ -		--permit-file-all="${infile}" -- "$LIBDIR/ps2epsi.ps"  "${infile}" 1>&2

+ +		--permit-file-all="${infile}" -- ps2epsi.ps  "${infile}" 1>&2

+  

+  exit 0

+ -- 

+ 2.30.1.724.gc30ef96fb6

+ 

file modified
+5 -1
@@ -48,7 +48,7 @@ 

  Name:             ghostscript

  Summary:          Interpreter for PostScript language & PDF

  Version:          9.53.3

- Release:          5%{?dist}

+ Release:          6%{?dist}

  

  License:          AGPLv3+

  
@@ -105,6 +105,7 @@ 

  Patch002: ghostscript-9.53.3-restore-opvp-device.patch

  # Not exactly upstream but the result of the above after autogen.sh

  Patch003: ghostscript-9.53.3-restore-opvp-device-for-good.patch

+ Patch004: ghostscript-9.53-Fix-bug-703270-Wrong-path-for-PostScript-helper-file.patch

  

  

  # Downstream patches -- these should be always included when doing rebase:
@@ -469,6 +470,9 @@ 

  # =============================================================================

  

  %changelog

+ * Tue Feb 23 2021 Michael J Gruber <mjg@fedoraproject.org> - 9.53.3-6

+ - fix ps2epsi (bz #1931832)

+ 

  * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.53.3-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

  

See bz #1931832.

Fix should be good (and necessary) for rawhide through F33. separate PR for F32.

Build succeeded.

This is obsoleted by 674db12 ("Added fixes for (#1956246) and (#1931832)", 2021-06-11) now, so I'm closing this PR (and the lower ones). It's a bit funny, though, to lump them together without mentioning their source.

Also, I'm wondering why F34/F33 diverge gitwise (they don't need to), but guess that's the old distcvs mindset.

Pull-Request has been closed by mjg

2 years ago