Package: transfig
Version: 1:3.2.5-rel-3.1
Severity: normal
Tags: patch
On exporting new arrow types generated with xfig, the fig2dev program
does not export those to the file. This is due to an ifdef. The attached
patch solves this. It also removes some compiler warnings due to missing
includes.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages transfig depends on:
ii gawk 1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libpng12-0 1.2.27-1 PNG library - runtime
ii libxpm4 1:3.5.7-1 X11 pixmap library
ii x11-common 1:7.3+15 X Window System (X.Org) infrastruc
Versions of packages transfig recommends:
ii ghostscript-x [gs] 8.62.dfsg.1-3 The GPL Ghostscript PostScript/PDF
ii netpbm 2:10.0-12 Graphics conversion tools
Versions of packages transfig suggests:
ii xfig 1:3.2.5-rel-2 Facility for Interactive Generatio
-- no debconf information
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
When using different arrow shapes, only the basic ones can be exported to any
graphics format. The diamond shaped ones e.g. cannot be exported.
I wrote to the developer and got answer, that this is a problem of fig2dev in
transfig.
In the source directory in transfig/fig2dev/bound.c remove the
#ifdef NEWARROWTYPES and the
#endif /* NEWARROWTYPES */
Also removed warnings which were due to missing header inclusions.
diff -Naur transfig.3.2.5/fig2dev/bound.c transfig.3.2.5-patched/fig2dev/bound.c
--- transfig.3.2.5/fig2dev/bound.c 2005-11-24 00:49:31.000000000 +0100
+++ transfig.3.2.5-patched/fig2dev/bound.c 2008-08-23 13:33:15.000000000 +0200
@@ -72,7 +72,6 @@
{ 5, 1, 0, True, True, False, 1.5, {{-0.75,0.5},{0,0},{-0.75,-0.5},{-1.0,0},{-0.75,0.5}}},
/* type 3b filled convex spearhead */
{ 5, 1, 0, True, True, False, 1.5, {{-0.75,0.5},{0,0},{-0.75,-0.5},{-1.0,0},{-0.75,0.5}}},
-#ifdef NEWARROWTYPES
/* type 4a diamond */
{ 5, 1, 0, True, True, False, 1.15, {{-0.5,0.5},{0,0},{-0.5,-0.5},{-1.0,0},{-0.5,0.5}}},
/* type 4b filled diamond */
@@ -120,7 +119,6 @@
{ 4, 0, 0, True, True, False, -1.0, {{0,0.5},{-1.0,0.5},{-1.0,-0.5},{0,-0.5}}},
/* type 14b backward two-prong fork */
{ 4, 1, 0, True, True, False, 0.0, {{-1.0,0.5,},{0,0.5},{0,-0.5},{-1.0,-0.5}}},
-#endif /* NEWARROWTYPES */
};
void
diff -Naur transfig.3.2.5/transfig/sys.c transfig.3.2.5-patched/transfig/sys.c
--- transfig.3.2.5/transfig/sys.c 2005-10-27 20:23:42.000000000 +0200
+++ transfig.3.2.5-patched/transfig/sys.c 2008-08-23 13:38:15.614628350 +0200
@@ -15,6 +15,8 @@
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "transfig.h"
#define MAXSYS 10000
diff -Naur transfig.3.2.5/transfig/transfig.c transfig.3.2.5-patched/transfig/transfig.c
--- transfig.3.2.5/transfig/transfig.c 2003-04-15 20:31:10.000000000 +0200
+++ transfig.3.2.5-patched/transfig/transfig.c 2008-08-23 13:37:18.706627399 +0200
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include "patchlevel.h"
#include "transfig.h"
diff -Naur transfig.3.2.5/transfig/txfile.c transfig.3.2.5-patched/transfig/txfile.c
--- transfig.3.2.5/transfig/txfile.c 2003-10-31 19:26:27.000000000 +0100
+++ transfig.3.2.5-patched/transfig/txfile.c 2008-08-23 13:37:33.530628914 +0200
@@ -15,6 +15,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include "transfig.h"
/*