summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authormarkuskowa <markus.kowalewski@gmail.com>2018-07-11 00:58:06 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-07-11 00:58:06 +0200
commitbceb0ee0982d7e3d6859367890ea766104c6e54a (patch)
tree19761f2da8d2caa35d23b83642423a6a6effb604 /pkgs/tools/graphics
parent58eb085b66c6cbf07bd13253c2262816c4e0e7b0 (diff)
downloadnixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar.gz
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar.bz2
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar.lz
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar.xz
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.tar.zst
nixpkgs-bceb0ee0982d7e3d6859367890ea766104c6e54a.zip
pstoedit: patch to ensure gs-9.22 compatibilty (#43280)
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/pstoedit/default.nix5
-rw-r--r--pkgs/tools/graphics/pstoedit/pstoedit-gs-9.22-compat.patch13
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/pstoedit/default.nix b/pkgs/tools/graphics/pstoedit/default.nix
index 623415a314b..4f3e5271183 100644
--- a/pkgs/tools/graphics/pstoedit/default.nix
+++ b/pkgs/tools/graphics/pstoedit/default.nix
@@ -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 ]
diff --git a/pkgs/tools/graphics/pstoedit/pstoedit-gs-9.22-compat.patch b/pkgs/tools/graphics/pstoedit/pstoedit-gs-9.22-compat.patch
new file mode 100644
index 00000000000..64fe805d501
--- /dev/null
+++ b/pkgs/tools/graphics/pstoedit/pstoedit-gs-9.22-compat.patch
@@ -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.",