From: Davide Pesavento Date: Sun, 22 Nov 2015 23:07:29 +0000 (+0100) Subject: qt5-build.eclass: add missing die when using cat with heredocs X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ad30d3bace6259482ccafd5e87021c367b77c544;p=gentoo.git qt5-build.eclass: add missing die when using cat with heredocs (cherry picked from proj/qt commit f3886df8a10a03548efb3941c84aefc51fb4b195) --- diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index c03daf331f90..6534f8106d2b 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -17,12 +17,9 @@ case ${EAPI} in *) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;; esac +[[ ${EAPI} == 5 ]] && inherit multilib inherit eutils flag-o-matic toolchain-funcs versionator virtualx -if [[ ${EAPI} == 5 ]]; then - inherit multilib -fi - HOMEPAGE="https://www.qt.io/" LICENSE="|| ( LGPL-2.1 LGPL-3 ) FDL-1.3" @@ -241,12 +238,12 @@ qt5-build_src_test() { # create a custom testrunner script that correctly sets # {,DY}LD_LIBRARY_PATH before executing the given test local testrunner=${QT5_BUILD_DIR}/gentoo-testrunner - cat <<-EOF > "${testrunner}" + cat > "${testrunner}" <<-_EOF_ || die #!/bin/sh export LD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}" export DYLD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}" "\$@" - EOF + _EOF_ chmod +x "${testrunner}" _qt5_test_runner() { @@ -291,7 +288,7 @@ qt5-build_src_install() { || die "sed failed (qconfig.h)" # install qtchooser configuration file - cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ + cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die ${QT5_BINDIR} ${QT5_LIBDIR} _EOF_