]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix regression in command-line length computation.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 22 Sep 2010 18:18:54 +0000 (20:18 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 22 Sep 2010 18:18:54 +0000 (20:18 +0200)
* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): Use `env echo' rather
than possibly-undefined func_fallback_echo, to ensure we fork
and exec for this test.
* NEWS: Update.
Regression introduced in v2.2.6-39-g9c3d4d8.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
libltdl/m4/libtool.m4

index 566b74efae0833ef51cc343f43200c9e7c246b1d..647c15197ba369c600689c1d7188b45378740fbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix regression in command-line length computation.
+       * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): Use `env echo' rather
+       than possibly-undefined func_fallback_echo, to ensure we fork
+       and exec for this test.
+       * NEWS: Update.
+       Regression introduced in v2.2.6-39-g9c3d4d8.
+
 2010-09-22  Gary V. Vaughan  <gary@gnu.org>
 
        Post-release administrivia.
diff --git a/NEWS b/NEWS
index 6e8e0fe4d8365d6a3c07301d02c31a5431feee87..90e33f7dcdfc07fac1d50b46505d8c9fe371bb8c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,8 @@ New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
 
 * Bug fixes:
 
-  - None yet!
+  - The generic approximation of the command line length limit (when getconf is
+    not available) works again.  Regression introduced in v2.2.6-39-g9c3d4d8.
 
 New in 2.4 2010-09-22: git version 2.2.11a, Libtool team:
 
index d8125842f0a8a5e3a7d2d30a08f8909befa9aeca..6aebb63b5881af01778193e6f67f9bf1b5ab9e76 100644 (file)
@@ -1639,7 +1639,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
       # If test is not a shell built-in, we'll probably end up computing a
       # maximum length that is only half of the actual maximum length, but
       # we can't tell.
-      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
+      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
              test $i != 17 # 1/2 MB should be enough
       do