summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/TECkit-2.5.1-PATCHES
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-09 16:08:58 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-09 16:08:58 +0000
commit2c92c64be5afdf033f8d21178b02950a379c1fb4 (patch)
treea2a0365e0fc42c4b7a1a854da9d4074643a7ff1b /Build/source/libs/teckit/TECkit-2.5.1-PATCHES
parentbfbe81796df41ce30c05a1dc88bb3147f28837b5 (diff)
update build system
git-svn-id: svn://tug.org/texlive/trunk@15951 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/teckit/TECkit-2.5.1-PATCHES')
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.1-PATCHES/ChangeLog23
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.1-PATCHES/TL-Changes51
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-01-debian-50569323
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-02-warning14
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-03-warnings163
5 files changed, 274 insertions, 0 deletions
diff --git a/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/ChangeLog b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/ChangeLog
new file mode 100644
index 00000000000..027432f275e
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/ChangeLog
@@ -0,0 +1,23 @@
+2009-10-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Reconstruct TL TECkit sources from distributed tarball.
+ * TL-changes (new): Modifications applied to the distribution.
+ * patch-[0-9][0-9]-*: Patches applied to the distribution.
+
+2009-10-01 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-03-warnings (new): Avoid maximal compiler warnings.
+ source/Sample-tools/TECkit_Compile.cpp, source/Engine.{cpp,h},
+ source/Public-headers/TECkit_Compiler.h, source/Compiler.cpp:
+ Constify.
+
+2009-06-25 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-02-warning (new): Avoid compiler warning.
+ source/Compiler.h: change type of Compiler::Pass.passType
+ long -> UInt32.
+
+2008-11-17 Jonathan Kew <jonathan_kew@sil.org>
+
+ * patch-01-debian-505693 (new): Bug fix.
+
diff --git a/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/TL-Changes b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/TL-Changes
new file mode 100644
index 00000000000..e04349d07df
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/TL-Changes
@@ -0,0 +1,51 @@
+Changes applied to the TECkit-2.5.1/ tree as obtained from:
+ http://scripts.sil.org/svn-view/teckit/TAGS/TECkit_2_5_1.tar.gz
+
+Removed:
+ SFconv/expat/xmlparse/CVS/
+ SFconv/expat/xmlparse/.cvsignore
+ SFconv/expat/xmltok/CVS/
+ SFconv/expat/xmltok/.cvsignore
+ SFconv/expat/xmlwf/CVS/
+ TECkit.mcp
+ build-mac-binaries.sh
+ build-windows-binaries.sh
+ compile
+ config.guess
+ config.sub
+ depcomp
+ install-sh
+ ltmain.sh
+ missing
+ mkinstalldirs
+ perl_binaries/
+ source/DropTEC icons.rsrc
+ source/carb.rsrc
+ source/teckitjni/
+ zlib-1.2.3/
+
+Renamed:
+ docs/Calling TECkit from VB.doc => docs/Calling_TECkit_from_VB.doc
+
+Converted Dos/Win line ends to native:
+ source/Perl/TECkit.xs
+ source/Perl/lib/Encode/TECkit.pm
+ source/Perl/test.pl
+ source/Perl/typemap
+ test/GNT-map.xml
+ test/ISO-8859-1.map
+ test/Mrk-GNT.sf
+ test/mrk.sf.legacy.txt.orig
+
+Converted Mac line ends to native:
+ source/Carbon.r
+ source/REALplugin.cp
+ source/TECkit_Compiler.cmd
+ source/TECkit_Compiler.exp
+ source/TECkit_Engine.cmd
+ source/TECkit_Engine.exp
+ test/SILGreek2004-04-27.map
+
+Added newline at end of file:
+ source/Carbon.r
+
diff --git a/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-01-debian-505693 b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-01-debian-505693
new file mode 100644
index 00000000000..43dee6095d7
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-01-debian-505693
@@ -0,0 +1,23 @@
+ Fix Debian bug #505693.
+
+ from: Jonathan Kew <jonathan_kew@sil.org>
+
+diff -ur TECkit-2.5.1/source/Compiler.cpp teckit/source/Compiler.cpp
+--- TECkit-2.5.1,orig/source/Compiler.cpp 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Compiler.cpp 2008-11-17 22:06:09.000000000 +0200
+@@ -13,6 +13,7 @@
+ -------------------------------------------------------------------------*/
+
+ /*
++ 2008-11-17 jk include <cstdio> (Debian bug 505693)
+ 2006-06-19 jk added new APIs to look up Unicode names
+ 2006-01-12 jk removed multi-char constants, use FOUR_CHAR_CODE to define UInt32 values instead
+ (no functional change, just to avoid compiler warnings)
+@@ -29,6 +30,7 @@
+
+ #include "Compiler.h"
+
++#include <cstdio>
+ #include <iostream>
+ #include <iomanip>
+ #include <algorithm>
diff --git a/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-02-warning b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-02-warning
new file mode 100644
index 00000000000..05ca43a6a92
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-02-warning
@@ -0,0 +1,14 @@
+ Avoid compiler warning.
+
+diff -ur TECkit-2.5.1.orig/source/Compiler.h TECkit-2.5.1/source/Compiler.h
+--- TECkit-2.5.1.orig/source/Compiler.h 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Compiler.h 2009-06-25 20:36:24.000000000 +0200
+@@ -230,7 +230,7 @@
+ vector<UInt32> byteClassLines;
+ vector<UInt32> uniClassLines;
+
+- long passType;
++ UInt32 passType;
+ UInt32 uniDefault;
+ UInt8 byteDefault;
+ bool supplementaryChars;
diff --git a/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-03-warnings b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-03-warnings
new file mode 100644
index 00000000000..c2c8b0ddb89
--- /dev/null
+++ b/Build/source/libs/teckit/TECkit-2.5.1-PATCHES/patch-03-warnings
@@ -0,0 +1,163 @@
+ Avoid more compiler warnings.
+
+diff -ur TECkit-2.5.1.orig/source/Compiler.cpp TECkit-2.5.1/source/Compiler.cpp
+--- TECkit-2.5.1.orig/source/Compiler.cpp 2008-11-17 21:06:09.000000000 +0100
++++ TECkit-2.5.1/source/Compiler.cpp 2009-10-01 22:06:09.000000000 +0200
+@@ -191,14 +191,14 @@
+ free(table);
+ }
+
+-char*
++const char*
+ WINAPI
+ TECkit_GetUnicodeName(UInt32 usv)
+ {
+ const CharName *c = &gUnicodeNames[0];
+ while (c->name != 0)
+ if (c->usv == usv)
+- return (char*)c->name;
++ return c->name;
+ else
+ ++c;
+ return NULL;
+@@ -263,13 +263,13 @@
+ return -1;
+ }
+
+-static inline UInt8
++inline UInt8
+ READ(const UInt8 p)
+ {
+ return p;
+ }
+
+-static inline UInt16
++inline UInt16
+ READ(const UInt16 p)
+ {
+ #ifdef WORDS_BIGENDIAN
+@@ -279,7 +279,7 @@
+ #endif
+ }
+
+-static inline UInt32
++inline UInt32
+ READ(const UInt32 p)
+ {
+ #ifdef WORDS_BIGENDIAN
+@@ -290,7 +290,7 @@
+ }
+
+ template<class T>
+-inline static void
++inline void
+ WRITE(T& t, UInt32 v)
+ {
+ t = READ(T(v));
+@@ -2133,7 +2133,7 @@
+ cout << " at line " << line << endl;
+ }
+ else
+- (*errorFunction)(errFuncUserData, (char*)msg, (char*)s, line);
++ (*errorFunction)(errFuncUserData, msg, s, line);
+ errorState = true;
+ ++errorCount;
+ }
+diff -ur TECkit-2.5.1.orig/source/Engine.cpp TECkit-2.5.1/source/Engine.cpp
+--- TECkit-2.5.1.orig/source/Engine.cpp 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Engine.cpp 2009-10-01 22:17:12.000000000 +0200
+@@ -76,13 +76,13 @@
+ using namespace std;
+
+ /* we apply READ to values read from the compiled table, to provide byte-swapping where needed */
+-static inline UInt8
++inline UInt8
+ READ(const UInt8 p)
+ {
+ return p;
+ }
+
+-static inline UInt16
++inline UInt16
+ READ(const UInt16 p)
+ {
+ #ifdef WORDS_BIGENDIAN
+@@ -92,7 +92,7 @@
+ #endif
+ }
+
+-static inline UInt32
++inline UInt32
+ READ(const UInt32 p)
+ {
+ #ifdef WORDS_BIGENDIAN
+@@ -1087,7 +1087,7 @@
+ if (matchElems == 0 && allowInsertion == false)
+ continue;
+ patternLength = matchElems + READ(rule->postLength);
+- pattern = (MatchElem*)(rule + 1); // point past the defined struct for the rule header
++ pattern = (const MatchElem*)(rule + 1); // point past the defined struct for the rule header
+ direction = 1;
+ infoLimit = matchElems;
+
+@@ -2185,7 +2185,7 @@
+ status = kStatus_BadMappingVersion;
+ else {
+ const Byte* namePtr;
+- if (getNamePtrFromTable((Byte*)fh, nameID, namePtr, *nameLength)) {
++ if (getNamePtrFromTable((const Byte*)fh, nameID, namePtr, *nameLength)) {
+ UInt16 copyBytes = *nameLength < bufferSize ? *nameLength : bufferSize;
+ if (copyBytes > 0)
+ memcpy(nameBuffer, namePtr, copyBytes);
+diff -ur TECkit-2.5.1.orig/source/Engine.h TECkit-2.5.1/source/Engine.h
+--- TECkit-2.5.1.orig/source/Engine.h 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Engine.h 2009-10-01 22:16:40.000000000 +0200
+@@ -117,7 +117,7 @@
+
+ UInt32 match(int index, int repeats, int textLoc);
+ // returns 0 for no match, 1 for match, or kNeedMoreInput/kInvalidChar
+- MatchElem* pattern;
++ const MatchElem* pattern;
+ int patternLength;
+ int direction;
+ MatchInfo info[256];
+diff -ur TECkit-2.5.1.orig/source/Public-headers/TECkit_Compiler.h TECkit-2.5.1/source/Public-headers/TECkit_Compiler.h
+--- TECkit-2.5.1.orig/source/Public-headers/TECkit_Compiler.h 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Public-headers/TECkit_Compiler.h 2009-10-01 22:03:59.000000000 +0200
+@@ -56,7 +56,7 @@
+ #define kCompilerOpts_Compress 0x00000010 /* generate compressed mapping table */
+ #define kCompilerOpts_XML 0x00000020 /* instead of a compiled binary table, generate an XML representation of the mapping */
+
+-typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, char* msg, char* param, UInt32 line);
++typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, const char* msg, const char* param, UInt32 line);
+
+ TECkit_Status
+ WINAPI EXPORTED
+@@ -75,7 +75,7 @@
+ TECkit_GetCompilerVersion();
+
+ /* new APIs for looking up Unicode names (as NUL-terminated C strings) */
+-char*
++const char*
+ WINAPI EXPORTED
+ TECkit_GetUnicodeName(UInt32 usv);
+ /* returns the Unicode name of usv, if available, else NULL */
+diff -ur TECkit-2.5.1.orig/source/Sample-tools/TECkit_Compile.cpp TECkit-2.5.1/source/Sample-tools/TECkit_Compile.cpp
+--- TECkit-2.5.1.orig/source/Sample-tools/TECkit_Compile.cpp 2008-04-07 16:21:12.000000000 +0200
++++ TECkit-2.5.1/source/Sample-tools/TECkit_Compile.cpp 2009-10-01 22:00:14.000000000 +0200
+@@ -24,13 +24,13 @@
+ #endif
+
+ extern "C" {
+- static void CALLBACK errFunc(void* userData, char* msg, char* param, UInt32 line);
++ static void CALLBACK errFunc(void* userData, const char* msg, const char* param, UInt32 line);
+ };
+
+ static
+ void
+ CALLBACK
+-errFunc(void* userData, char* msg, char* param, UInt32 line)
++errFunc(void* userData, const char* msg, const char* param, UInt32 line)
+ {
+ #pragma unused(userData)
+