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

[asymptote] 03/08: fix problems with completely outdated gs in Debian



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository asymptote.

commit 5142daa4960c167adc753dae844d4e75d59090e0
Author: Norbert Preining <norbert@preining.info>
Date:   Mon Jun 22 20:22:51 2015 +0900

    fix problems with completely outdated gs in Debian
---
 debian/changelog                   |  3 +-
 debian/patches/old-gs-use-epswrite | 63 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 3 files changed, 66 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index adcc052..101cdcc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ asymptote (2.35-1) experimental; urgency=medium
 
   * Imported Upstream version 2.35
   * unfuzzify patches
+  * fix gs device problems due to gs being too old (in Debian)
 
- -- Norbert Preining <preining@debian.org>  Tue, 16 Jun 2015 15:13:51 +0900
+ -- Norbert Preining <preining@debian.org>  Mon, 22 Jun 2015 20:23:09 +0900
 
 asymptote (2.31-2) unstable; urgency=medium
 
diff --git a/debian/patches/old-gs-use-epswrite b/debian/patches/old-gs-use-epswrite
new file mode 100644
index 0000000..ee0e2c6
--- /dev/null
+++ b/debian/patches/old-gs-use-epswrite
@@ -0,0 +1,63 @@
+---
+ runlabel.cc |    6 +++---
+ runlabel.in |    6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+--- asymptote.git.orig/runlabel.cc
++++ asymptote.git/runlabel.cc
+@@ -155,7 +155,7 @@
+ #else
+   const string null="/dev/null";
+ #endif
+-  cmd.push_back("-sDEVICE=eps2write");
++  cmd.push_back("-sDEVICE=epswrite");
+   cmd.push_back("-sOutputFile="+null);
+   cmd.push_back(stripDir(psname));
+   iopipestream gs(cmd,"gs","Ghostscript");
+@@ -398,7 +398,7 @@
+         cmd.push_back("-dNOPAUSE");
+         cmd.push_back("-dBATCH");
+         if(safe) cmd.push_back("-dSAFER");
+-        cmd.push_back("-sDEVICE=eps2write");
++        cmd.push_back("-sDEVICE=epswrite");
+         // Work around eps2write bug that forces all postscript to first page.
+         cmd.push_back("-sOutputFile="+psname2+"%d");
+         cmd.push_back(pdfname2);
+@@ -501,7 +501,7 @@
+   cmd2.push_back("-dBATCH");
+   cmd2.push_back("-P");
+   if(safe) cmd2.push_back("-dSAFER");
+-  cmd2.push_back("-sDEVICE=eps2write");
++  cmd2.push_back("-sDEVICE=epswrite");
+   cmd2.push_back("-sOutputFile=-");
+   cmd2.push_back("-");
+   iopipestream gs(cmd2,"gs","Ghostscript");
+--- asymptote.git.orig/runlabel.in
++++ asymptote.git/runlabel.in
+@@ -111,7 +111,7 @@
+ #else
+   const string null="/dev/null";
+ #endif
+-  cmd.push_back("-sDEVICE=eps2write");
++  cmd.push_back("-sDEVICE=epswrite");
+   cmd.push_back("-sOutputFile="+null);
+   cmd.push_back(stripDir(psname));
+   iopipestream gs(cmd,"gs","Ghostscript");
+@@ -325,7 +325,7 @@
+         cmd.push_back("-dNOPAUSE");
+         cmd.push_back("-dBATCH");
+         if(safe) cmd.push_back("-dSAFER");
+-        cmd.push_back("-sDEVICE=eps2write");
++        cmd.push_back("-sDEVICE=epswrite");
+         // Work around eps2write bug that forces all postscript to first page.
+         cmd.push_back("-sOutputFile="+psname2+"%d");
+         cmd.push_back(pdfname2);
+@@ -423,7 +423,7 @@
+   cmd2.push_back("-dBATCH");
+   cmd2.push_back("-P");
+   if(safe) cmd2.push_back("-dSAFER");
+-  cmd2.push_back("-sDEVICE=eps2write");
++  cmd2.push_back("-sDEVICE=epswrite");
+   cmd2.push_back("-sOutputFile=-");
+   cmd2.push_back("-");
+   iopipestream gs(cmd2,"gs","Ghostscript");
diff --git a/debian/patches/series b/debian/patches/series
index cedbbcb..2393cea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-use-xdg-open-instead-of-acroread.patch
 0002-update-documentation-for-debian-specific-parts.patch
 fix-docstring-backslash
+old-gs-use-epswrite

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/asymptote.git


Reply to: