Package: release.debian.org
Control: affects -1 + src:a2ps
X-Debbugs-Cc: a...@packages.debian.org
User: release.debian....@packages.debian.org
Usertags: unblock
X-Debbugs-Cc: by...@debian.org
Severity: normal

Please unblock package a2ps with 1:4.14-8.

The a2ps/1:4.14-8 upload specifically fixes Debian bug
https://bugs.debian.org/1008579 .

[ Reason ]
The a2ps/1:4.14-8 upload specifically fixes Debian bug
https://bugs.debian.org/1008579 . The fix cherry-picks an
upstream patch to fix the invocation of ghostscript in
/usr/bin/fixps.

[ Impact ]
Users who call /usr/bin/fixps will fail due to error raised
by ghostscript.

[ Tests ]
Manual tests with the related tool.

[ Risks ]
Minimal risk; patch tested by upstream as well. Even if
the fix is flawed, the condition will not be worse because
the tool is already broken.

[ 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 testing

Thanks,
Boyuan Yang

unblock a2ps/1:4.14-8
diff -Nru a2ps-4.14/debian/changelog a2ps-4.14/debian/changelog
--- a2ps-4.14/debian/changelog	2021-02-09 10:52:04.000000000 -0500
+++ a2ps-4.14/debian/changelog	2023-04-13 22:44:48.000000000 -0400
@@ -1,3 +1,12 @@
+a2ps (1:4.14-8) unstable; urgency=medium
+
+  * debian/patches/:
+    + 0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch:
+      Apply upstream patch to fix broken GhostScript invocation in
+      /usr/bin/fixps. (Closes: #1008579)
+
+ -- Boyuan Yang <by...@debian.org>  Thu, 13 Apr 2023 22:44:48 -0400
+
 a2ps (1:4.14-7) unstable; urgency=high
 
   * QA upload.
diff -Nru a2ps-4.14/debian/patches/0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch a2ps-4.14/debian/patches/0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch
--- a2ps-4.14/debian/patches/0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch	1969-12-31 19:00:00.000000000 -0500
+++ a2ps-4.14/debian/patches/0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch	2023-04-13 22:44:03.000000000 -0400
@@ -0,0 +1,37 @@
+From: Boyuan Yang <by...@debian.org>
+Date: Thu, 13 Apr 2023 22:43:16 -0400
+Subject: fixps: use GhostScript ps2write device, not defunct pswrite device
+
+Applied-Upstream: https://git.savannah.gnu.org/cgit/a2ps.git/commit/?id=985b15ceafc1021ee1690f499cc6ae341e31a000
+Bug-Debian: https://bugs.debian.org/1008579
+---
+ contrib/fixps.in | 2 +-
+ contrib/fixps.m4 | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/fixps.in b/contrib/fixps.in
+index 6c06825..16bcf12 100644
+--- a/contrib/fixps.in
++++ b/contrib/fixps.in
+@@ -389,7 +389,7 @@ if test $task != check; then
+   	eval "$command" ;;
+       gs)
+         $verbose "$program: making a full rewrite of the file ($gs)." >&2
+-  	$gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop -f $file ;;
++  	$gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=- -c save pop -f $file ;;
+     esac
+   )
+ fi
+diff --git a/contrib/fixps.m4 b/contrib/fixps.m4
+index 84d4178..169f7cd 100644
+--- a/contrib/fixps.m4
++++ b/contrib/fixps.m4
+@@ -307,7 +307,7 @@ if test $task != check; then
+   	eval "$command" ;;
+       gs)
+         $verbose "$program: making a full rewrite of the file ($gs)." >&2
+-  	$gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop -f $file ;;
++  	$gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=- -c save pop -f $file ;;
+     esac
+   )
+ fi
diff -Nru a2ps-4.14/debian/patches/series a2ps-4.14/debian/patches/series
--- a2ps-4.14/debian/patches/series	2020-12-29 23:01:09.000000000 -0500
+++ a2ps-4.14/debian/patches/series	2023-04-13 22:44:03.000000000 -0400
@@ -14,3 +14,4 @@
 etcmakefile.-pass-arguments-to-date-to-s.patch
 manmakefile.-patch-to-use-the-system-hel.patch
 doca2ps.texi-remove-dates-from-generated.patch
+0017-fixps-use-GhostScript-ps2write-device-not-defunct-ps.patch

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to