From: Bruno Haible <bruno@clisp.org>
Date: Mon, 22 Oct 2018 18:32:41 +0000 (+0200)
Subject: Fix failure of 'gnulib-tool --create-testdir' with all modules.
X-Git-Tag: v1.0~5322
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=98993f9d1b2ed03007be9dbcdc6bd9fe2d49777b;p=gnulib.git

Fix failure of 'gnulib-tool --create-testdir' with all modules.

* gnulib-tool (func_create_testdir): Exclude 'timevar' module.
---

diff --git a/ChangeLog b/ChangeLog
index 09fe7da931..d812249a19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-22  Bruno Haible  <bruno@clisp.org>
+
+	Fix failure of 'gnulib-tool --create-testdir' with all modules.
+	* gnulib-tool (func_create_testdir): Exclude 'timevar' module.
+
 2018-10-21  Bruno Haible  <bruno@clisp.org>
 
 	locale: Ease integration with GNU libintl.
diff --git a/gnulib-tool b/gnulib-tool
index c639f5acea..3c27c8a289 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -5980,10 +5980,11 @@ func_create_testdir ()
     # Except config-h, which breaks all modules which use HAVE_CONFIG_H.
     # Except non-recursive-gnulib-prefix-hack, which represents a nonstandard
     # way of using Automake.
+    # Except timevar, which lacks the required file timevar.def.
     # Except ftruncate, mountlist, which abort the configuration on mingw. FIXME.
     # Except lib-ignore, which leads to link errors when Sun C++ is used. FIXME.
     modules=`func_all_modules`
-    modules=`for m in $modules; do case $m in config-h | non-recursive-gnulib-prefix-hack | ftruncate | mountlist | lib-ignore) ;; *) echo $m;; esac; done`
+    modules=`for m in $modules; do case $m in config-h | non-recursive-gnulib-prefix-hack | timevar | ftruncate | mountlist | lib-ignore) ;; *) echo $m;; esac; done`
   fi
   specified_modules="$modules"