From 8318988252d1d5e2e270cb49009aa4bc1415ae9c Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Fri, 30 Jul 2010 21:55:49 +0200 Subject: [PATCH] enable x64 Tcl, downgrade to 8.5 and update messages --- build/build-x64.bat | 6 +++--- src/makeinc.mak | 4 ++-- xchat-wdk.patch | 20 ++++++++++++++++---- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/build/build-x64.bat b/build/build-x64.bat index 2045666e..bf071b0c 100644 --- a/build/build-x64.bat +++ b/build/build-x64.bat @@ -18,9 +18,9 @@ nmake -f makefile.mak ::cd ..\python ::nmake -f makefile.mak clean ::nmake -f makefile.mak -::cd ..\tcl -::nmake -f makefile.mak clean -::nmake -f makefile.mak +cd ..\tcl +nmake -f makefile.mak clean +nmake -f makefile.mak ::cd ..\xtray ::nmake -f makefile.mak clean ::nmake -f makefile.mak diff --git a/src/makeinc.mak b/src/makeinc.mak index f588793c..abf732f4 100644 --- a/src/makeinc.mak +++ b/src/makeinc.mak @@ -22,7 +22,7 @@ LDFLAGS = $(LDFLAGS) msvcrt_win2003.obj PERLPATH = c:\mozilla-build\perl-5.10-x64\lib\CORE PYTHONPATH = c:\mozilla-build\python-2.5-x64 -TCLPATH = c:\mozilla-build\tcl-8.6-x64 +TCLPATH = c:\mozilla-build\tcl-8.5-x64 !else ############################################################# #x86 config @@ -34,7 +34,7 @@ LDFLAGS = $(LDFLAGS) msvcrt_winxp.obj PERLPATH = c:\mozilla-build\perl-5.10-x86\lib\CORE PYTHONPATH = c:\mozilla-build\python-2.5-x86 -TCLPATH = c:\mozilla-build\tcl-8.6-x86 +TCLPATH = c:\mozilla-build\tcl-8.5-x86 MMX = YES !endif diff --git a/xchat-wdk.patch b/xchat-wdk.patch index 7fd67900..3c9289df 100644 --- a/xchat-wdk.patch +++ b/xchat-wdk.patch @@ -1,6 +1,6 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/perl/perl.c xchat-wdk/plugins/perl/perl.c --- xchat-wdk.orig/plugins/perl/perl.c 2010-03-23 01:06:59 +0100 -+++ xchat-wdk/plugins/perl/perl.c 2010-07-30 21:45:34 +0200 ++++ xchat-wdk/plugins/perl/perl.c 2010-07-30 21:54:00 +0200 @@ -16,13 +16,14 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ @@ -17,7 +17,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/perl/perl.c xchat-wdk/plugi #ifdef ENABLE_NLS #include #endif -@@ -1340,12 +1341,12 @@ +@@ -1340,14 +1341,14 @@ FreeLibrary (lib); lib = NULL; thread_mbox ("Cannot open " PERL_DLL "\n\n" @@ -31,8 +31,11 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/perl/perl.c xchat-wdk/plugi - "You must have ActivePerl 5.8 installed in order to\n" + "You must have ActivePerl 5.10 installed in order to\n" "run perl scripts.\n\n" - "http://www.activestate.com/ActivePerl/\n\n" +- "http://www.activestate.com/ActivePerl/\n\n" ++ "http://www.activestate.com/activeperl/downloads\n\n" "Make sure perl's bin directory is in your PATH."); + } + } diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/python/python.c xchat-wdk/plugins/python/python.c --- xchat-wdk.orig/plugins/python/python.c 2010-05-16 06:31:54 +0200 +++ xchat-wdk/plugins/python/python.c 2010-07-30 21:45:34 +0200 @@ -63,7 +66,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/python/python.c xchat-wdk/p #endif diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/tcl/tclplugin.c xchat-wdk/plugins/tcl/tclplugin.c --- xchat-wdk.orig/plugins/tcl/tclplugin.c 2010-03-21 01:49:42 +0100 -+++ xchat-wdk/plugins/tcl/tclplugin.c 2010-07-30 21:45:34 +0200 ++++ xchat-wdk/plugins/tcl/tclplugin.c 2010-07-30 21:52:48 +0200 @@ -32,8 +32,6 @@ #include #define bzero(mem, sz) memset((mem), 0, (sz)) @@ -73,6 +76,15 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/tcl/tclplugin.c xchat-wdk/p #endif #include "xchat-plugin.h" +@@ -2221,7 +2219,7 @@ + #ifdef WIN32 + lib = LoadLibraryA(TCL_DLL); + if (!lib) { +- xchat_print(ph, "You must have ActiveTCL installed in order to run Tcl scripts.\n" "http://aspn.activestate.com/ASPN/Tcl/\n" "Make sure Tcl's bin directory is in your PATH.\n\n"); ++ xchat_print(ph, "You must have ActiveTCL 8.5 installed in order to run Tcl scripts.\n" "http://www.activestate.com/activetcl/downloads\n" "Make sure Tcl's bin directory is in your PATH.\n\n"); + return 0; + } + FreeLibrary(lib); diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/cfgfiles.c xchat-wdk/src/common/cfgfiles.c --- xchat-wdk.orig/src/common/cfgfiles.c 2009-01-02 06:56:12 +0100 +++ xchat-wdk/src/common/cfgfiles.c 2010-07-30 21:45:34 +0200