[cvslog] [CVS] Module eggdrop1.8: Change committed

cvs at eggheads.org cvs at eggheads.org
Wed Jul 20 04:45:46 CST 2011


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.8
Branch tags: gettext
Commit time: 2011-07-20 10:45:46 UTC
Committer  : Thomas Sader <thommey at gmail.com>

Modified files:
  Tag: gettext
     aclocal.m4 configure.ac doc/Changes1.8 src/patch.h
     src/mod/channels.mod/channels.c

Log message:

Work around Tcl8.5.10 bug 3371644. Use the autoconf macros AC_LANG_PROGRAM/AC_LANG_SOURCE.

---------------------- diff included ----------------------
Index: eggdrop1.8/aclocal.m4
diff -u eggdrop1.8/aclocal.m4:1.12.2.2 eggdrop1.8/aclocal.m4:1.12.2.3
--- eggdrop1.8/aclocal.m4:1.12.2.2	Tue Feb  8 16:06:01 2011
+++ eggdrop1.8/aclocal.m4	Wed Jul 20 04:45:36 2011
@@ -16,7 +16,7 @@
 dnl along with this program; if not, write to the Free Software
 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 dnl
-dnl $Id: aclocal.m4,v 1.12.2.2 2011/02/08 22:06:01 thommey Exp $
+dnl $Id: aclocal.m4,v 1.12.2.3 2011/07/20 10:45:36 thommey Exp $
 dnl
 
 
@@ -125,12 +125,7 @@
   AC_CACHE_CHECK([whether the compiler understands -pipe], egg_cv_var_ccpipe, [
     ac_old_CC="$CC"
     CC="$CC -pipe"
-    AC_COMPILE_IFELSE([[
-      int main ()
-      {
-        return(0);
-      }
-    ]], [
+    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[ return(0); ]])], [
       egg_cv_var_ccpipe="yes"
     ], [
       egg_cv_var_ccpipe="no"
@@ -153,12 +148,7 @@
   AC_CACHE_CHECK([whether the compiler understands -Wall], egg_cv_var_ccwall, [
     ac_old_CFLAGS="$CFLAGS"
     CFLAGS="$CFLAGS -Wall"
-    AC_COMPILE_IFELSE([[
-      int main ()
-      {
-        return(0);
-      }
-    ]], [
+    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ return(0); ]])], [
       egg_cv_var_ccwall="yes"
     ], [
       egg_cv_var_ccwall="no"
@@ -184,24 +174,21 @@
 AC_DEFUN([EGG_CHECK_SOCKLEN_T],
 [
   AC_CACHE_CHECK([for socklen_t], egg_cv_socklen_t, [
-    AC_RUN_IFELSE([[
+    AC_RUN_IFELSE([AC_LANG_PROGRAM([[
       #include <unistd.h>
       #include <sys/param.h>
       #include <sys/types.h>
       #include <sys/socket.h>
       #include <netinet/in.h>
       #include <arpa/inet.h>
-
-      int main()
-      {
+    ]],[[
         socklen_t test = 55;
 
         if (test != 55)
-          exit(1);
+          return(1);
 
         return(0);
-      }
-    ]], [
+    ]])], [
       egg_cv_socklen_t="yes"
     ], [
       egg_cv_socklen_t="no"
@@ -1317,6 +1304,7 @@
   fi
 ])
 
+
 dnl EGG_TCL_CHECK_NOTIFIER_INIT
 dnl
 AC_DEFUN([EGG_TCL_CHECK_NOTIFIER_INIT],
@@ -1328,7 +1316,7 @@
   # Check for Tcl_NotifierProcs member initNotifierProc
   AC_CHECK_MEMBER([Tcl_NotifierProcs.initNotifierProc], [egg_cv_var_tcl_notifier_init="yes"], [egg_cv_var_tcl_notifier_init="no"], [[#include "$TCLINC/$TCLINCFN"]])
   if test "$egg_cv_var_tcl_notifier_init" = yes; then
-    AC_DEFINE(HAVE_TCL_NOTIFIER_INIT, 1, [Define for Tcl that has the Tcl_NotiferProcs struct member initNotifierProc (8.4 and later).])
+    AC_DEFINE(HAVE_TCL_NOTIFIER_INIT, 1, [Define for Tcl that has the Tcl_NotifierProcs struct member initNotifierProc (8.4 and later).])
   fi
 ])
 
@@ -1754,21 +1742,18 @@
 AC_DEFUN([EGG_IPV6_STATUS],
 [
   AC_CACHE_CHECK([for system IPv6 support], [egg_cv_var_ipv6_supported], [
-    AC_RUN_IFELSE([[
+    AC_RUN_IFELSE([AC_LANG_PROGRAM([[
       #include <unistd.h>
       #include <sys/socket.h>
       #include <netinet/in.h>
-  
-      int main()
-      {
+    ]], [[
         int s = socket(AF_INET6, SOCK_STREAM, 0);
 
         if (s != -1)
           close(s);
 
         return((s == -1));
-       }
-    ]], [
+    ]])], [
       egg_cv_var_ipv6_supported="yes"
      ], [
       egg_cv_var_ipv6_supported="no"
Index: eggdrop1.8/configure.ac
diff -u eggdrop1.8/configure.ac:1.5.2.4 eggdrop1.8/configure.ac:1.5.2.5
--- eggdrop1.8/configure.ac:1.5.2.4	Tue Feb  8 16:08:35 2011
+++ eggdrop1.8/configure.ac	Wed Jul 20 04:45:36 2011
@@ -1,10 +1,11 @@
 dnl configure.ac: this file is processed by autoconf to produce ./configure.
 dnl
-dnl $Id: configure.ac,v 1.5.2.4 2011/02/08 22:08:35 thommey Exp $
+dnl $Id: configure.ac,v 1.5.2.5 2011/07/20 10:45:36 thommey Exp $
 
 AC_PREREQ(2.60)
 AC_INIT([Eggdrop], [1.8.0], [bugs at eggheads.org], , [http://www.eggheads.org/])
 AC_COPYRIGHT([Copyright (C) 1999 - 2010 Eggheads Development Team])
+AC_LANG([C])
 AC_CONFIG_AUX_DIR(misc)
 AC_CONFIG_MACRO_DIR([m4])
 AC_PREFIX_DEFAULT([\${HOME}/eggdrop])
Index: eggdrop1.8/doc/Changes1.8
diff -u eggdrop1.8/doc/Changes1.8:1.36.2.18 eggdrop1.8/doc/Changes1.8:1.36.2.19
--- eggdrop1.8/doc/Changes1.8:1.36.2.18	Fri Jul  8 17:14:17 2011
+++ eggdrop1.8/doc/Changes1.8	Wed Jul 20 04:45:36 2011
@@ -1,4 +1,4 @@
-$Id: Changes1.8,v 1.36.2.18 2011/07/08 23:14:17 thommey Exp $
+$Id: Changes1.8,v 1.36.2.19 2011/07/20 10:45:36 thommey Exp $
 
 Eggdrop Changes (since version 1.8.0)
 
@@ -6,6 +6,14 @@
 
 1.8.0 (CVS):
 
+  - Work around Tcl8.5.10 bug 3371644 (strings starting with # could crash
+    in Tcl_ConvertElement()). TCL_DONT_QUOTE_HASH can be used to work
+    around it, as long as the string is not passed to Tcl_Eval().
+    Found by: Austin
+  - Use the autoconf macros AC_LANG_PROGRAM/AC_LANG_SOURCE for sourcecode
+    to avoid warnings in autoconf >= 2.68.
+    Patch by: thommey
+
   - Make sure to account for null termination when using Tcl_ScanElement
     to generate a string representation of a list using Tcl_ConvertElement.
     A behavioural change in Tcl8.5.10 revealed this bug.
Index: eggdrop1.8/src/mod/channels.mod/channels.c
diff -u eggdrop1.8/src/mod/channels.mod/channels.c:1.2.2.1 eggdrop1.8/src/mod/channels.mod/channels.c:1.2.2.2
--- eggdrop1.8/src/mod/channels.mod/channels.c:1.2.2.1	Thu Nov 11 14:34:47 2010
+++ eggdrop1.8/src/mod/channels.mod/channels.c	Wed Jul 20 04:45:36 2011
@@ -2,7 +2,7 @@
  * channels.c -- part of channels.mod
  *   support for channels within the bot
  *
- * $Id: channels.c,v 1.2.2.1 2010/11/11 20:34:47 pseudo Exp $
+ * $Id: channels.c,v 1.2.2.2 2011/07/20 10:45:36 thommey Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -368,6 +368,10 @@
   int flags;
 
   Tcl_ScanElement(src, &flags);
+/* Work around Tcl bug 3371644 (only present in 8.5.10) */
+#ifdef TCL_DONT_QUOTE_HASH
+  flags |= TCL_DONT_QUOTE_HASH;
+#endif
   Tcl_ConvertElement(src, dst, flags);
   return dst;
 }
Index: eggdrop1.8/src/patch.h
diff -u eggdrop1.8/src/patch.h:1.25.2.15 eggdrop1.8/src/patch.h:1.25.2.16
--- eggdrop1.8/src/patch.h:1.25.2.15	Fri Jul  8 17:14:17 2011
+++ eggdrop1.8/src/patch.h	Wed Jul 20 04:45:36 2011
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.25.2.15 2011/07/08 23:14:17 thommey Exp $
+ * $Id: patch.h,v 1.25.2.16 2011/07/20 10:45:36 thommey Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1310166824");            /* current unixtime */
+patch("1311158531");            /* current unixtime */
 /*
  *
  *
  */
-patch("tclliststr");
+patch("tclhashcrash");
 /*
  *
  *
----------------------- End of diff -----------------------


More information about the Changes mailing list