[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-
From: |
Ralf Wildenhues |
Subject: |
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-245-gd21e702 |
Date: |
Sun, 21 Dec 2008 16:36:04 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=d21e702200d11cf226d611733df5a1917422acbb
The branch, master has been updated
via d21e702200d11cf226d611733df5a1917422acbb (commit)
from 243da1ec4a23bfe8f69d22ffbc037740cbfb683d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d21e702200d11cf226d611733df5a1917422acbb
Author: Ralf Wildenhues <address@hidden>
Date: Sun Dec 21 17:33:17 2008 +0100
Fix config.status depfiles failure.
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Commands are
again a single shell brace group, so they are correctly skipped
when dependencies are turned off. The failure is noisy with
ksh only.
* tests/depend6.test: New test.
* tests/Makefile.am: Adjust.
* THANKS: Update.
Report and different suggested patch by Markus Duft.
Signed-off-by: Ralf Wildenhues <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 12 +++++
THANKS | 1 +
m4/depout.m4 | 98 +++++++++++++++++++------------------
tests/Makefile.am | 1 +
tests/Makefile.in | 1 +
tests/{man3.test => depend6.test} | 29 ++++++-----
6 files changed, 80 insertions(+), 62 deletions(-)
copy tests/{man3.test => depend6.test} (67%)
diff --git a/ChangeLog b/ChangeLog
index 4b5809b..94b4476 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-12-21 Ralf Wildenhues <address@hidden>
+
+ Fix config.status depfiles failure.
+ * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Commands are
+ again a single shell brace group, so they are correctly skipped
+ when dependencies are turned off. The failure is noisy with
+ ksh only.
+ * tests/depend6.test: New test.
+ * tests/Makefile.am: Adjust.
+ * THANKS: Update.
+ Report and different suggested patch by Markus Duft.
+
2008-12-21 Zoltan Rado <address@hidden> (tiny change)
* doc/automake.texi (DESTDIR): Fix a couple of typos.
diff --git a/THANKS b/THANKS
index 10d4ddc..f617d1f 100644
--- a/THANKS
+++ b/THANKS
@@ -190,6 +190,7 @@ Mark Galassi address@hidden
Mark Mitchell address@hidden
Mark Phillips address@hidden
Markku Rossi address@hidden
+Markus Duft address@hidden
Markus F.X.J. Oberhumer address@hidden
Martin Bravenboer address@hidden
Martin Frydl address@hidden
diff --git a/m4/depout.m4 b/m4/depout.m4
index 3f5d6cf..80a3926 100644
--- a/m4/depout.m4
+++ b/m4/depout.m4
@@ -7,59 +7,61 @@
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
-#serial 4
+#serial 5
# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[# Autoconf 2.62 quotes --file arguments for eval, but not when files
-# are listed without --file. Let's play safe and only enable the eval
-# if we detect the quoting.
-case $CONFIG_FILES in
-*\'*) eval set x "$CONFIG_FILES" ;;
-*) set x $CONFIG_FILES ;;
-esac
-shift
-for mf
-do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named `Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null
2>&1; then
- dirpart=`AS_DIRNAME("$mf")`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running `make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n 's/^U = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`AS_DIRNAME(["$file"])`
- AS_MKDIR_P([$dirpart/$fdir])
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
+[{
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null
2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`AS_DIRNAME(["$file"])`
+ AS_MKDIR_P([$dirpart/$fdir])
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
done
-done
+}
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cac16a1..c2ace78 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -223,6 +223,7 @@ depend2.test \
depend3.test \
depend4.test \
depend5.test \
+depend6.test \
destdir.test \
dirforbid.test \
dirlist.test \
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 993dd7c..f71bb7c 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -377,6 +377,7 @@ depend2.test \
depend3.test \
depend4.test \
depend5.test \
+depend6.test \
destdir.test \
dirforbid.test \
dirlist.test \
diff --git a/tests/man3.test b/tests/depend6.test
similarity index 67%
copy from tests/man3.test
copy to tests/depend6.test
index 436e2c2..6a1595c 100755
--- a/tests/man3.test
+++ b/tests/depend6.test
@@ -14,31 +14,32 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# PR 516: Prefer generated manpages to distributed ones.
+# Check for _AM_OUTPUT_DEPENDENCY_COMMANDS grouping bug,
+# reported by Markus Duft.
. ./defs || Exit 1
set -e
-cat > Makefile.am << 'END'
-dist_man_MANS = foo.1
-installcheck-local:
- grep bar "$(mandir)/man1/foo.1"
+cat >>configure.in << END
+AC_PROG_CC
+AC_OUTPUT
END
-cat >>configure.in <<'END'
-: ${foo=foo}
-AC_SUBST([foo])
-AC_CONFIG_FILES([foo.1])
-AC_OUTPUT
+cat > Makefile.am << END
+bin_PROGRAMS = foo
+foo_SOURCES = foo.c foo.h
END
-cat > foo.1.in <<'END'
address@hidden@
+cat >foo.c << END
+#include "foo.h"
END
+: >foo.h
$ACLOCAL
$AUTOMAKE
$AUTOCONF
-./configure
-DISTCHECK_CONFIGURE_FLAGS=foo=bar $MAKE -e distcheck
+./configure --disable-dependency-tracking 2>stderr || { cat stderr >&2; Exit
1; }
+cat stderr >&2
+grep shift stderr && Exit 1
+:
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-245-gd21e702,
Ralf Wildenhues <=