pstoedit: patch to ensure gs-9.22 compatibilty (#43280)

This commit is contained in:
markuskowa 2018-07-11 00:58:06 +02:00 committed by xeji
parent 58eb085b66
commit bceb0ee098
2 changed files with 18 additions and 0 deletions

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "147jkgvm9n6mbkl6ndqnm9x74x5y9agbxkfwj0jrw6yxyhxx2cdd";
};
#
# Turn on "-rdb" option (REALLYDELAYBIND) by default to ensure compatibility with gs-9.22
#
patches = [ ./pstoedit-gs-9.22-compat.patch ];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ]

View File

@ -0,0 +1,13 @@
diff --git a/src/pstoeditoptions.h b/src/pstoeditoptions.h
index 7846883..0fb6a6f 100755
--- a/src/pstoeditoptions.h
+++ b/src/pstoeditoptions.h
@@ -453,7 +453,7 @@ private:
"Later versions of Ghostscript will probably support -dDELAYBIND again. "
"But also in that case the security risk remains. So be careful with what "
"files you process with pstoedit and Ghostscript.",
- false), //
+ true), //
#endif
pagetoextract (true, "-page","page number",g_t,"extract a specific page: 0 means all pages",
"Select a single page from a multi-page PostScript or PDF file.",