diff options
author | 2007-03-01 14:39:41 +0000 | |
---|---|---|
committer | 2007-03-01 14:39:41 +0000 | |
commit | 39a4c1d79dcce589b054d414ec19fc67550df538 (patch) | |
tree | 00182427376ae6f9140c817ff11f25f4375f61a5 /app-text/tesseract/files | |
parent | Version bump (diff) | |
download | gentoo-2-39a4c1d79dcce589b054d414ec19fc67550df538.tar.gz gentoo-2-39a4c1d79dcce589b054d414ec19fc67550df538.tar.bz2 gentoo-2-39a4c1d79dcce589b054d414ec19fc67550df538.zip |
Add patch contributed by David Watzke <david@watzke.cz> to fix build errors on some systems (fixes bug #168193)
(Portage version: 2.1.2-r12)
Diffstat (limited to 'app-text/tesseract/files')
-rw-r--r-- | app-text/tesseract/files/tesseract-1.03-globals.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/tesseract/files/tesseract-1.03-globals.patch b/app-text/tesseract/files/tesseract-1.03-globals.patch new file mode 100644 index 000000000000..fdbd140e6667 --- /dev/null +++ b/app-text/tesseract/files/tesseract-1.03-globals.patch @@ -0,0 +1,46 @@ +diff -ru tesseract-1.03~/ccutil/getopt.h tesseract-1.03/ccutil/getopt.h +--- tesseract-1.03~/ccutil/getopt.h 2007-02-24 00:24:36.000000000 +0100 ++++ tesseract-1.03/ccutil/getopt.h 2007-02-24 00:24:42.000000000 +0100 +@@ -20,9 +20,6 @@ + #include "host.h" + #include "notdll.h" //must be last include + +-extern int optind; +-extern char *optarg; +- + int getopt ( //parse args + INT32 argc, //arg count + char *argv[], //args +diff -ru tesseract-1.03~/ccmain/tfacep.h tesseract-1.03/ccmain/tfacep.h +--- tesseract-1.03~/ccmain/tfacep.h 2006-06-17 00:17:03.000000000 +0200 ++++ tesseract-1.03/ccmain/tfacep.h 2007-02-24 00:12:20.000000000 +0100 +@@ -103,7 +103,6 @@ + //extern int enable_assoc; + //extern int chop_enable; + //extern int permute_only_top; +- extern int display_ratings; + + }; + +diff -ru tesseract-1.03~/training/cnTraining.cpp tesseract-1.03/training/cnTraining.cpp +--- tesseract-1.03~/training/cnTraining.cpp 2006-10-20 00:25:38.000000000 +0200 ++++ tesseract-1.03/training/cnTraining.cpp 2007-02-24 00:17:46.000000000 +0100 +@@ -29,6 +29,7 @@ + #include "emalloc.h" + #include "featdefs.h" + #include "getopt.h" ++#include "globals.h" + #include "ocrfeatures.h" + #include "general.h" + #include "clusttool.h" +diff -ru tesseract-1.03~/training/mfTraining.cpp tesseract-1.03/training/mfTraining.cpp +--- tesseract-1.03~/training/mfTraining.cpp 2007-02-01 04:09:21.000000000 +0100 ++++ tesseract-1.03/training/mfTraining.cpp 2007-02-24 00:18:18.000000000 +0100 +@@ -31,6 +31,7 @@ + #include "emalloc.h" + #include "featdefs.h" + #include "getopt.h" ++#include "globals.h" + #include "ocrfeatures.h" + #include "general.h" + #include "clusttool.h" |