]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: avoid localization failure due to unstable compiler messages.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Sep 2010 20:02:50 +0000 (22:02 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Sep 2010 20:02:50 +0000 (22:02 +0200)
* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT):
Attempt to normalize temporary file names in error messages.
Fixes 'localized compiler messages' test failure on Darwin when
creating fat (multi-ABI) libraries.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/testsuite.at

index 1697a1b6d4fa07a65d10700c5c28e76a2e92764d..37f6c8462443aabbe2bf30c4b4377a38118a74bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       tests: avoid localization failure due to unstable compiler messages.
+       * tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT):
+       Attempt to normalize temporary file names in error messages.
+       Fixes 'localized compiler messages' test failure on Darwin when
+       creating fat (multi-ABI) libraries.
+
 2010-09-13  Peter Rosin  <peda@lysator.liu.se>
 
        Prefer $NM @file when the toolchain isn't native to $build.
index ea13ec9516855215c648733adb7d275cc90abb23..c450e100b7ff7bad342ede5e7dcb03d762f453b0 100644 (file)
@@ -240,10 +240,13 @@ esac])
 # - distcc process numbers,
 # - ccache file location,
 # - newline encoding,
-# - location of the libtool script.
+# - location of the libtool script,
+# - error messages involving unstable temporary file names.
 m4_define([LT_AT_NORMALIZE_COMPILER_OUTPUT],
 [_ltbase=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
-[sed "/^distcc\[[0-9]*\]/d; /^$_ltbase: compile/d" < $1 > $1.t]
+[sed "/^distcc\[[0-9]*\]/d
+      /^$_ltbase: compile/d
+      s/\(tmp\/\{1,\}cc\)\([a-zA-Z0-9_]\{1,\}\)/\1-normalized-tmpname/g" < $1 > $1.t]
 LT_AT_UNIFY_NL([$1.t], [m4_default([$2], [$1])])[]dnl
 ])