- add upstream fix from Eric Blake for #449973, m4_if releated error
message from autotest
This commit is contained in:
parent
394ef19b41
commit
295e299a27
100
autoconf-2.62-449973.patch
Normal file
100
autoconf-2.62-449973.patch
Normal file
@ -0,0 +1,100 @@
|
||||
Karsten Hopp: modified upstream fix (Changelog)
|
||||
From: Eric Blake <ebb9@byu.net>
|
||||
Date: Thu, 5 Jun 2008 21:18:11 +0000 (-0600)
|
||||
Subject: Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
|
||||
X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff_plain;h=3ac7ceb0c2dfd023e0e9e944da6825b6bd676568
|
||||
|
||||
Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
|
||||
|
||||
* lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
|
||||
converting it to lower case.
|
||||
* tests/autotest.at (Keywords and ranges): Test this.
|
||||
* NEWS: Document the fix.
|
||||
* THANKS: Update.
|
||||
Reported by Karsten Hopp.
|
||||
|
||||
Signed-off-by: Eric Blake <ebb9@byu.net>
|
||||
---
|
||||
|
||||
--- a/ChangeLog.orig 2008-04-06 01:04:49.000000000 +0200
|
||||
+++ b/ChangeLog 2008-06-06 11:10:16.000000000 +0200
|
||||
@@ -1,3 +1,13 @@
|
||||
+2008-06-05 Eric Blake <ebb9@byu.net>
|
||||
+
|
||||
+ Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
|
||||
+ * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
|
||||
+ converting it to lower case.
|
||||
+ * tests/autotest.at (Keywords and ranges): Test this.
|
||||
+ * NEWS: Document the fix.
|
||||
+ * THANKS: Update.
|
||||
+ Reported by Karsten Hopp.
|
||||
+
|
||||
2008-04-05 Eric Blake <ebb9@byu.net>
|
||||
|
||||
Release Version 2.62.
|
||||
diff --git a/NEWS b/NEWS
|
||||
index 183d4f1..8b866ad 100644
|
||||
--- a/NEWS
|
||||
+++ b/NEWS
|
||||
@@ -9,6 +9,10 @@ GNU Autoconf NEWS - User visible changes.
|
||||
** Two new quadrigraphs have been introduced: @{:@ for (, and @:}@ for ),
|
||||
allowing the output of unbalanced parantheses in more contexts.
|
||||
|
||||
+** AT_KEYWORDS once again performs expansion on its argument, such that
|
||||
+ AT_KEYWORDS([m4_if([$1], [], [default])]) no longer complains about
|
||||
+ the possibly unexpanded m4_if [regression introduced in 2.62].
|
||||
+
|
||||
|
||||
* Major changes in Autoconf 2.62 (2008-04-05) [stable]
|
||||
Released by Eric Blake, based on git versions 2.61a.*.
|
||||
diff --git a/THANKS b/THANKS
|
||||
index 5ec8921..224cdea 100644
|
||||
--- a/THANKS
|
||||
+++ b/THANKS
|
||||
@@ -177,6 +177,7 @@ Justace Clutter ?
|
||||
Jörn Rennecke amylaar@cygnus.co.uk
|
||||
Karl Berry karl@cs.umb.edu
|
||||
Karl Heuer kwzh@gnu.org
|
||||
+Karsten Hopp karsten@redhat.com
|
||||
Kate Hedstrom ?
|
||||
Kathryn Hargreaves kathryn@deas.harvard.edu
|
||||
Kaveh R. Ghazi ghazi@caip.rutgers.edu
|
||||
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
|
||||
index 88d10a3..993dd9f 100644
|
||||
--- a/lib/autotest/general.m4
|
||||
+++ b/lib/autotest/general.m4
|
||||
@@ -1476,9 +1476,10 @@ m4_case([$1],
|
||||
# AT_KEYWORDS(KEYWORDS)
|
||||
# ---------------------
|
||||
# Declare a list of keywords associated to the current test group.
|
||||
-# The list is stored in lower case, since the -k option is case-insensitive.
|
||||
+# Since the -k option is case-insensitive, the list is stored in lower case
|
||||
+# to avoid duplicates that differ only by case.
|
||||
_AT_DEFINE_SETUP([AT_KEYWORDS],
|
||||
-[m4_append_uniq_w([AT_keywords], m4_tolower([[$1]]))])
|
||||
+[m4_append_uniq_w([AT_keywords], m4_tolower(m4_dquote(m4_expand([$1]))))])
|
||||
|
||||
|
||||
# AT_CAPTURE_FILE(FILE)
|
||||
diff --git a/tests/autotest.at b/tests/autotest.at
|
||||
index dc3cfd5..c4c0eda 100644
|
||||
--- a/tests/autotest.at
|
||||
+++ b/tests/autotest.at
|
||||
@@ -690,7 +690,7 @@ AT_CHECK(:)
|
||||
AT_CLEANUP
|
||||
AT_SETUP(both) # 04
|
||||
AT_KEYWORDS([key1 key2])
|
||||
-AT_KEYWORDS([key1])
|
||||
+AT_KEYWORDS([m4@&t@_echo([Key1])])
|
||||
AT_CHECK(:)
|
||||
AT_CLEANUP
|
||||
AT_SETUP(test5) # 05
|
||||
@@ -713,7 +713,7 @@ AT_CHECK(:)
|
||||
AT_CLEANUP
|
||||
]])
|
||||
dnl check that AT_KEYWORDS does not duplicate words
|
||||
-AT_CHECK([grep 'key1.*key1' k], [1])
|
||||
+AT_CHECK([grep -i 'key1.*key1' k], [1])
|
||||
dnl check that -k requires an argument
|
||||
AT_CHECK([$CONFIG_SHELL ./k -k], [1], [], [ignore])
|
||||
|
@ -1,12 +1,14 @@
|
||||
Summary: A GNU tool for automatically configuring source code
|
||||
Name: autoconf
|
||||
Version: 2.62
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and GFDL
|
||||
Group: Development/Tools
|
||||
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
|
||||
Source1: filter-provides-automake.sh
|
||||
Source2: filter-requires-automake.sh
|
||||
# This one will be included in 2.63:
|
||||
Patch0: autoconf-2.62-449973.patch
|
||||
URL: http://www.gnu.org/software/autoconf/
|
||||
BuildRequires: m4 >= 1.4.7, emacs
|
||||
Requires: m4 >= 1.4.7, mktemp, imake, grep
|
||||
@ -38,6 +40,7 @@ their use.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# use ./configure here to avoid copying config.{sub,guess} with those from the
|
||||
@ -79,6 +82,10 @@ fi
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
||||
|
||||
%changelog
|
||||
* Fri Jun 06 2008 Karsten Hopp <karsten@redhat.com> 2.62-2
|
||||
- add upstream fix from Eric Blake for #449973,
|
||||
m4_if releated error message from autotest
|
||||
|
||||
* Tue May 13 2008 Karsten Hopp <karsten@redhat.com> 2.62-1
|
||||
- autoconf-2.62
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user