summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/transfig/files/transfig-3.2.5c-cups_workaround.patch')
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5c-cups_workaround.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-gfx/transfig/files/transfig-3.2.5c-cups_workaround.patch b/media-gfx/transfig/files/transfig-3.2.5c-cups_workaround.patch
new file mode 100644
index 000000000000..d026b98d214d
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5c-cups_workaround.patch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 19_cups_workaround.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change PS magic string from PS-Adobe-2.0 to PS to work around
+## DP: incompatibilities with CUPS (Closes: #443832).
+
+@DPATCH@
+diff -urNad transfig~/fig2dev/dev/genps.c transfig/fig2dev/dev/genps.c
+--- transfig~/fig2dev/dev/genps.c
++++ transfig/fig2dev/dev/genps.c
+@@ -619,7 +619,7 @@
+ if (epsflag)
+ fprintf(tfp, "%%!PS-Adobe-2.0 EPSF-2.0\n"); /* Encapsulated PostScript */
+ else
+- fprintf(tfp, "%%!PS-Adobe-2.0\n"); /* PostScript magic strings */
++ fprintf(tfp, "%%!PS\n"); /* PostScript magic strings */
+
+ #ifdef DISPLAYWHO
+ who = getpwuid(getuid());