Bug#1029619: bullseye-pu: package ghostscript/9.53.3~dfsg-7+deb11u3
Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: ghostscript@packages.debian.org, havard.f.aasen@pfft.no
Control: affects -1 + src:ghostscript
The bugs closed by this upload has only severity normal, but there are
two bugs, so I believe it is important enough to have it fixed.
[ Reason ]
The file '/usr/bin/ps2epsi' is a wrapper for 'ps2epsi.ps', and
'ps2epsi.ps' is being called with wrong path, which prevents it from
being executed.
I haven't checked when the bug was introduced, but the version in
Bullseye is the last version that as it. The patch from upstream was
included in version 9.54.
[ Impact ]
The application 'ps2epsi' will continue to be non-functional.
[ Tests ]
Did a manual test on amd64, before and after the patch to verify.
[ Risks ]
No risk.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
The upstream patch updates a comment, and removes a variable.
[ Other info ]
diff -Nru ghostscript-9.53.3~dfsg/debian/changelog ghostscript-9.53.3~dfsg/debian/changelog
--- ghostscript-9.53.3~dfsg/debian/changelog 2022-01-04 15:09:14.000000000 +0100
+++ ghostscript-9.53.3~dfsg/debian/changelog 2023-01-25 08:11:34.000000000 +0100
@@ -1,3 +1,11 @@
+ghostscript (9.53.3~dfsg-7+deb11u3) bullseye; urgency=medium
+
+ * Non-maintainer upload.
+ * Cherry-pick upstream patch to fix path for PostScript helper file in
+ ps2epsi. Closes: #1003926, #1029541
+
+ -- Håvard F. Aasen <havard.f.aasen@pfft.no> Wed, 25 Jan 2023 08:11:34 +0100
+
ghostscript (9.53.3~dfsg-7+deb11u2) bullseye-security; urgency=high
* Non-maintainer upload by the Security Team.
diff -Nru ghostscript-9.53.3~dfsg/debian/patches/020201214~c616676.patch ghostscript-9.53.3~dfsg/debian/patches/020201214~c616676.patch
--- ghostscript-9.53.3~dfsg/debian/patches/020201214~c616676.patch 1970-01-01 01:00:00.000000000 +0100
+++ ghostscript-9.53.3~dfsg/debian/patches/020201214~c616676.patch 2023-01-25 08:11:34.000000000 +0100
@@ -0,0 +1,33 @@
+From: Ray Johnston <ray.johnston@artifex.com>
+Date: Mon, 14 Dec 2020 08:39:50 -0800
+Subject: Fix bug 703270: Wrong path for PostScript helper file in ps2epsi
+Origin: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=c6166768c6e963b0fe28ccdb266629443e521381
+Bug: https://bugs.ghostscript.com/show_bug.cgi?id=703270
+Bug-Debian: https://bugs.debian.org/1003926
+Bug-Debian: https://bugs.debian.org/1029541
+
+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
diff -Nru ghostscript-9.53.3~dfsg/debian/patches/series ghostscript-9.53.3~dfsg/debian/patches/series
--- ghostscript-9.53.3~dfsg/debian/patches/series 2022-01-04 15:09:14.000000000 +0100
+++ ghostscript-9.53.3~dfsg/debian/patches/series 2023-01-25 08:11:34.000000000 +0100
@@ -1,6 +1,7 @@
020201007~c6ce09a.patch
020201028~41ef9a0.patch
020201120~bd48c43.patch
+020201214~c616676.patch
020210130~d787dad.patch
020210201~41130dd.patch
020210212~7861fca.patch
Reply to: