[rtems-source-builder commit] sb: Fix rtems-build-dep to handle various issues

Chris Johns chrisj at rtems.org
Wed Oct 24 10:46:04 UTC 2018


Module:    rtems-source-builder
Branch:    master
Commit:    e2209fa1531d4e413e0b9ee425acdf0ae7d8f7f4
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=e2209fa1531d4e413e0b9ee425acdf0ae7d8f7f4

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Oct 24 21:37:49 2018 +1100

sb: Fix rtems-build-dep to handle various issues

- Remove CR characters on Windows.
- Force the compiler to output English so the pattern
  matching works.

Updates #3537.

---

 source-builder/sb/rtems-build-dep | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source-builder/sb/rtems-build-dep b/source-builder/sb/rtems-build-dep
index 18359d7..0a49e70 100755
--- a/source-builder/sb/rtems-build-dep
+++ b/source-builder/sb/rtems-build-dep
@@ -121,7 +121,7 @@ fi
 # Header file.
 #
 if [ ${op} = "header" ]; then
-    inc_paths=$(echo | ${compiler} ${includes} -xc -E -v - 2>&1 | \
+    inc_paths=$(echo | LC_ALL=C ${compiler} ${includes} -xc -E -v - 2>&1 | tr -d '\r' | \
 	       awk 'BEGIN {flag=0;} /starts here/{flag=1;next}/End/{flag=0}flag')
     for p in ${inc_paths}
     do
@@ -146,7 +146,7 @@ if [ ${op} = "library" ]; then
     else
 	sep=':'
     fi
-    lib_paths_1=$(${compiler} -print-search-dirs 2>&1 | \
+    lib_paths_1=$(LC_ALL=C ${compiler} -print-search-dirs 2>&1 | tr -d '\r' | \
 		      grep libraries | \
 		      sed -e 's/libraries:.*=//' | \
 		      awk 'BEGIN {FS="'${sep}'"} {for (i=0;++i<=NF;) print $i;}')



More information about the vc mailing list