]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
autopoint: Fix infinite recursion when tracing configure.ac
authorEric Blake <eblake@redhat.com>
Thu, 9 Oct 2014 22:31:46 +0000 (07:31 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 9 Oct 2014 22:33:35 +0000 (07:33 +0900)
Reported by Andreas Henriksson at:
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764580>
* autopoint.in (func_trace_autoconf): Temporarily redefine
built-in macros, instead of undefining.
* gettextize.in: Likewise.

gettext-tools/misc/ChangeLog
gettext-tools/misc/autopoint.in
gettext-tools/misc/gettextize.in

index 7f33358e3bf802ba8bd886822ade946007c15a1d..4e8b3455575117abf060eb3d626324f525900687 100644 (file)
@@ -1,3 +1,12 @@
+2014-10-10  Eric Blake  <eblake@redhat.com>
+
+       autopoint: Fix infinite recursion when tracing configure.ac
+       Reported by Andreas Henriksson at:
+       <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764580>
+       * autopoint.in (func_trace_autoconf): Temporarily redefine
+       built-in macros, instead of undefining.
+       * gettextize.in: Likewise.
+
 2014-09-01  Daiki Ueno  <ueno@gnu.org>
 
        * convert-archive.in: Don't use non-portable 'if ! COMMAND'.
index c31943fa65b05f9b7931b9449f611b4804c729b7..87ee374d51b94931d47476da900125f6ee94e3bf 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2002-2013 Free Software Foundation, Inc.
+# Copyright (C) 2002-2014 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -143,14 +143,14 @@ fi
 func_trace_autoconf ()
 {
   echo '\
-dnl disable macros which may abort autom4te
-m4_undefine([m4_assert])
-m4_undefine([m4_fatal])
-m4_undefine([m4_warn])
-m4_undefine([m4_errprintn])
-m4_undefine([m4_exit])
-m4_undefine([m4_include])
-m4_undefine([m4_esyscmd])
+dnl replace macros which may abort autom4te with a no-op variant
+m4_pushdef([m4_assert])
+m4_pushdef([m4_fatal])
+m4_pushdef([m4_warn])
+m4_pushdef([m4_errprintn])
+m4_pushdef([m4_exit])
+m4_pushdef([m4_include])
+m4_pushdef([m4_esyscmd])
 ' \
   | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \
     --trace="$1":\$% - "$2" 2>/dev/null
index dbe4d1ecaad6d9b106a305e117b53633dfc02365..33299b9759e6e0ddf7d3c00a6b94fbda7663a491 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 1995-1998, 2000-2013 Free Software Foundation, Inc.
+# Copyright (C) 1995-1998, 2000-2014 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -143,14 +143,14 @@ fi
 func_trace_autoconf ()
 {
   echo '\
-dnl disable macros which may abort autom4te
-m4_undefine([m4_assert])
-m4_undefine([m4_fatal])
-m4_undefine([m4_warn])
-m4_undefine([m4_errprintn])
-m4_undefine([m4_exit])
-m4_undefine([m4_include])
-m4_undefine([m4_esyscmd])
+dnl replace macros which may abort autom4te with a no-op variant
+m4_pushdef([m4_assert])
+m4_pushdef([m4_fatal])
+m4_pushdef([m4_warn])
+m4_pushdef([m4_errprintn])
+m4_pushdef([m4_exit])
+m4_pushdef([m4_include])
+m4_pushdef([m4_esyscmd])
 ' \
   | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \
     --trace="$1":\$% - "$2" 2>/dev/null