[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#895543: marked as done (dhelp PostScript file display broken, fixed by using Ghostscript's ps2txt instead of unmaintained pstotext)



Your message dated Tue, 17 Apr 2018 10:19:20 +0000
with message-id <E1f8Nho-0005za-Id@fasolo.debian.org>
and subject line Bug#895543: fixed in dhelp 0.6.25
has caused the Debian Bug report #895543,
regarding dhelp PostScript file display broken, fixed by using Ghostscript's ps2txt instead of unmaintained pstotext
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
895543: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895543
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: dhelp
Version: 0.6.24

Hi,

dhelp uses pstotext to display PostScript files on a console or in a terminal.

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 the autopkgtest in the doc-rfc package (Debian bug #895541).

See also Debian bug #895513 about the pstotext issue.

Attached is my patch on the dhelp package as I have applied it in Ubuntu (0.6.24-0ubuntu1).

   Till
--- a/scripts/conv-pstotext
+++ b/scripts/conv-pstotext
@@ -6,7 +6,7 @@
 #
 # $1 = Input file, $2 = Output file
 
-2>/dev/null pstotext -output "${2}" "${1}"
+2>/dev/null ps2txt "${1}" "${2}"
 EXITVAL=$?
 if [ ${EXITVAL} -ne 0 ]; then
 	echo "Error converting file: ${1}"
--- a/src/dsearch
+++ b/src/dsearch
@@ -148,17 +148,17 @@
             $text = `/usr/bin/pdftotext "$file" -`;
         }
         else {
-            # pstotext is a dependency, so this should never fail, but we
+            # ghostscript is a dependency, so ps2txt should never fail, but we
             # recommend the user to install xpdf-utils instead, to get
             # pdftotext (better extraction quality and much faster)
-            $text = file_to_text("/usr/bin/pstotext '$file'", "PDF", "xpdf-utils");
+            $text = file_to_text("/usr/bin/ps2txt '$file'", "PDF", "xpdf-utils");
         }
     }
     elsif ($ext =~ /dvi/) {
         $text = file_to_text("/usr/bin/catdvi '$file'", "DVI", "catdvi");
     }
     elsif ($ext =~ /ps/) {
-        $text = file_to_text("/usr/bin/pstotext '$file'", "Postscript", "pstotext");
+        $text = file_to_text("/usr/bin/ps2txt '$file'", "Postscript", "ghostscript");
     }
     else {
         open F, $file;

--- End Message ---
--- Begin Message ---
Source: dhelp
Source-Version: 0.6.25

We believe that the bug you reported is fixed in the latest version of
dhelp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 895543@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Iain Lane <laney@debian.org> (supplier of updated dhelp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 17 Apr 2018 10:56:58 +0100
Source: dhelp
Binary: dhelp
Architecture: source
Version: 0.6.25
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Iain Lane <laney@debian.org>
Description:
 dhelp      - online help system
Closes: 895543
Changes:
 dhelp (0.6.25) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Till Kamppeter ]
   * 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. (Closes: #895543)
 .
   [ Iain Lane ]
   * Add a direct dependency on ghostscript for the above, and remove pstotext
     as it is no longer used.
Checksums-Sha1:
 4e0f713a1d92f37ffae9068ee448d253d11c5590 1553 dhelp_0.6.25.dsc
 8b103da846e2d34a123c9d7646ebb3d5627a57ce 73092 dhelp_0.6.25.tar.xz
 e24aac27d2ceb8d050c64d6d549fad4bf78c7d53 9186 dhelp_0.6.25_source.buildinfo
Checksums-Sha256:
 8dd9d8e83f62b57430167128ddaf5830bc5a9a6b529b7a853e31cfe66f8b721e 1553 dhelp_0.6.25.dsc
 fd323f17863029b0b5afb67e3d2943fa9661c7378f79040c7fcd5cb28fb9411e 73092 dhelp_0.6.25.tar.xz
 b8b09a7a83744521e017428f8f0726c59aae33d5f4f0565a2fba3141e5345e8e 9186 dhelp_0.6.25_source.buildinfo
Files:
 49ec9c20aa94bf0c067b1d2cf1b38be8 1553 doc optional dhelp_0.6.25.dsc
 afcb07c016feed200e004a1cf1b49efd 73092 doc optional dhelp_0.6.25.tar.xz
 9bdc6354eeb44e27cf4ec719540d0c14 9186 doc optional dhelp_0.6.25_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEPQ77lee1I38W6CJY41LVxRxQQdQFAlrVxi0ACgkQ41LVxRxQ
QdQ6RxAAmyDzfkI+Fz5K7/7Zmwiu4BZ1PA7G1fGm9Ks3kU+chVWSl9Fg+AmT7aDZ
1mNvR6TwbJvf+RIz3KZwpB+79anRstiYRIMF4zpxnv2f46fT74zbMZ5pxumsriXb
sO5yOpkFF269UZkANqBGrYc5x6yHDq4AzCd4ZE5NSafJP2RTc/ma90lWpYeHd8n5
JHzNzucBgHoEG3KKyErnq3tJ+08IycEHzouCi50h8bLbUKhSmLjgTY4mLclcznFS
wt5wfYuLjXZjJB8rncqsj8lgpW7g7g8ooVrPu1B3mbVlWrrSZ3HPJmL7UxVdRfHu
h14Q60cSjAqHIN0zUKCrtGLfJCfBc278OJ2XXQc40R5OIW3e7SE1BdM98IXO7Cqb
K+qONGJaaS1zoqRNDaO77ZxtWb27FmVQH1KrkGfYxo9/coZGqOHkxYzhWFr6/si+
U5NfOzgDuc+8BStdN9B/fAha1M/zUwtVOyzgB3jqD+cD8JRA1J9w0zm7QrWC9pWc
OFnWh/ICyEBfOf5KsCqFdDCWFKPPxS2vxXJyhkhbuB9Y6B1MQrz9C5aSHzpDoFqn
NkcS5m1yS6uMqipNSEWEHNzMFbz9AeaeQFgq77ZjQk0Xo+QPVF9grTxiyaaFH/Vs
pfYe9/OpoODSDQxLeHM9b4ULw8JSvZfXSjeodmeyyzfbFSOao+4=
=3C/f
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: