From: Dmitry V. Levin Date: Thu, 20 Jul 2017 22:03:31 +0000 (+0000) Subject: travis: add build environment information to the travis log X-Git-Tag: v4.19~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d523a339fdc7671402a8ebdec282eb3f1090a89d;p=strace travis: add build environment information to the travis log * travis-build.sh: Print build environment information. --- diff --git a/travis-build.sh b/travis-build.sh index ef609504..a06f99c9 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -37,7 +37,19 @@ case "${CHECK-}" in ;; esac -$CC --version +echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' +uname -a |head -1 +libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)" +$libc |head -1 +file -L /bin/sh +$CC --version |head -1 +make --version |head -1 +autoconf --version |head -1 +automake --version |head -1 +kver="$(printf '%s\n%s\n' '#include ' 'LINUX_VERSION_CODE' | $CC -E -P -)" +printf 'kernel-headers %s.%s.%s\n' $(($kver/65536)) $(($kver/256%256)) $(($kver%256)) +echo 'END OF BUILD ENVIRONMENT INFORMATION' + export CC_FOR_BUILD="$CC" [ -z "${DISTCHECK_CONFIGURE_FLAGS-}" ] ||