Bug#940191: texlive-binaries: xdvi does not display enclosed eps graphics due to ghostscript dropped execute command (patch)
Package: texlive-binaries
Version: 2018.20181218.49446-1
Severity: important
Dear Maintainer,
ghostscript has dropped support for the reportedly non-standard
'execute' command since version 9.27. Upstream indicates that this
will remain the case and is not a bug. This situation leaves xdvi in
buster unable to render enclosed eps graphics. xdvik-ja has
implemented execute natively in version -3 with the patch below,
resolving the issue for this viewer. Ghostscript upstream recommends
using only standard postscript and has offered to help with
suggestions if needed.
As a wishlist item, it would be nice if xdvi/ghostscript reported an
error rather than silent failure to speed debugging.
Thanks so much!
==================================================================
--- a/texk/xdvik/psgs.c
+++ b/texk/xdvik/psgs.c
@@ -560,7 +560,12 @@ initGS(void)
"{ << /PermitFileReading [ (*) ] /PermitFileWriting [ ] /PermitFileControl [ ] "
">> setuserparams .locksafe "
"} stopped pop\n";
- static const char str1[] =
+ static const char str1[] =
+ "/execute { "
+ " stopped $error /newerror get and "
+ " {/handleerror .systemvar exec flush //true} "
+ " {//false} ifelse pop "
+ "} bind def "
"/xdvi$run {$error /newerror false put {currentfile cvx execute} stopped pop} "
"def "
"/xdvi$ack (\347\310\376) def "
=============================================================================
-- System Information:
Debian Release: 10.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages texlive-binaries depends on:
ii dpkg 1.19.7
ii install-info 6.5.0.dfsg.1-4+b1
ii libbrotli1 1.0.7-2
ii libc6 2.28-10
ii libcairo2 1.16.0-4
ii libfontconfig1 2.13.1-2
ii libfreetype6 2.9.1-3
ii libgcc1 1:8.3.0-6
ii libgmp10 2:6.1.2+dfsg-4
ii libgraphite2-3 1.3.13-7
ii libgs9 9.27~dfsg-2+deb10u2
ii libharfbuzz-icu0 2.3.1-1
ii libharfbuzz0b 2.3.1-1
ii libice6 2:1.0.9-2
ii libicu63 63.1-6
ii libkpathsea6 2018.20181218.49446-1
ii libmpfr6 4.0.2-1
ii libpaper1 1.1.28
ii libpixman-1-0 0.36.0-1
ii libpng16-16 1.6.36-6
ii libpotrace0 1.15-1
ii libptexenc1 2018.20181218.49446-1
ii libsm6 2:1.2.3-1
ii libstdc++6 8.3.0-6
ii libsynctex2 2018.20181218.49446-1
ii libteckit0 2.5.8+ds2-5
ii libtexlua52 2018.20181218.49446-1
ii libtexlua53 2018.20181218.49446-1
ii libtexluajit2 2018.20181218.49446-1
ii libwoff1 1.0.2-1
ii libx11-6 2:1.6.7-1
ii libxaw7 2:1.0.13-1+b2
ii libxext6 2:1.3.3-1+b2
ii libxi6 2:1.7.9-1
ii libxmu6 2:1.1.2-2+b3
ii libxpm4 1:3.5.12-1
ii libxt6 1:1.1.5-1+b3
ii libxxhash0 0.6.5-2
ii libzzip-0-13 0.13.62-3.2
ii perl 5.28.1-6
ii t1utils 1.41-3
ii tex-common 6.11
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages texlive-binaries recommends:
ii texlive-base 2018.20190227-2
texlive-binaries suggests no packages.
-- no debconf information
Reply to: