Package: doc-rfc
Version: 20170121-1
Severity: grave

Hi,

the autopkgtest of doc-rfc passes all PostScript files coming with the package through pstotext to check their integrity for use by dhelp which also uses pstotext.

pstotext stopped working with the recent update to Ghostscript 9.22. This is not only due to the deprecation of "-dDELAYBIND" in Ghostscript (which was withdrawn in 9.23) but also by an additional problem in Ghostscript.

As pstotext did not get maintained upstream for years it is better to drop it and replace it by the ps2txt utility of Ghostscript. ps2txt's compatibility with the Ghostscript it comes with is assured as they are maintained together.

pstotext is only used by dhelp, so to eliminate it from the distro it is enough to update the appropriate command lines in dhelp and in the doc-rfc package.

Attached is my change on the Ubuntu package of doc-rfc as a debdiff.

   Till
diff -Nru doc-rfc-20170121/debian/changelog doc-rfc-20170121/debian/changelog
--- doc-rfc-20170121/debian/changelog   2017-01-24 23:35:26.000000000 +0100
+++ doc-rfc-20170121/debian/changelog   2018-04-12 12:08:58.000000000 +0200
@@ -1,3 +1,12 @@
+doc-rfc (20170121-1ubuntu1) bionic; urgency=medium
+
+  * In the autopkgtest replaced the call of pstotext by ps2txt
+    as pstotext upstream is unmaintained for years and stopped
+    working with Ghostscript whereas ps2txt is part of ghostscript
+    (LP: #1762778).
+
+ -- Till Kamppeter <till.kamppe...@gmail.com>  Thu, 12 Apr 2018 12:08:58 +0200
+
 doc-rfc (20170121-1) unstable; urgency=medium
 
   * New upstream version
diff -Nru doc-rfc-20170121/debian/tests/control 
doc-rfc-20170121/debian/tests/control
--- doc-rfc-20170121/debian/tests/control       2017-01-24 23:35:26.000000000 
+0100
+++ doc-rfc-20170121/debian/tests/control       2018-04-12 11:59:46.000000000 
+0200
@@ -1,2 +1,2 @@
 Tests: simple pspdf-parsing
-Depends: @, pstotext, poppler-utils, dhelp, lynx, libcgi-pm-perl
+Depends: @, ghostscript, poppler-utils, dhelp, lynx, libcgi-pm-perl
diff -Nru doc-rfc-20170121/debian/tests/pspdf-parsing 
doc-rfc-20170121/debian/tests/pspdf-parsing
--- doc-rfc-20170121/debian/tests/pspdf-parsing 2017-01-24 23:35:26.000000000 
+0100
+++ doc-rfc-20170121/debian/tests/pspdf-parsing 2018-04-12 12:08:58.000000000 
+0200
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-echo "Tests that all files are parseable by p*totext,"
+echo "Tests that all files are parseable by p*t*xt,"
 echo "in order to suport dhelp integration."
 
 set -e
@@ -10,12 +10,12 @@
 
 for i in *.ps; do
   echo " - testing $i"
-  pstotext $i > /dev/null
+  ps2txt $i > /dev/null
 done
 
 for i in *.ps.gz; do
   echo " - testing $i"
-  zcat $i | pstotext > /dev/null
+  zcat $i | ps2txt > /dev/null
 done
 
 for i in *.pdf; do

Reply via email to