diff options
author | Sam James <sam@gentoo.org> | 2024-11-06 11:18:47 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-06 11:18:47 +0000 |
commit | 1bf781b83fdfd96e662ec76a54ff5ca0b9aad5f6 (patch) | |
tree | 14bb0f5b20a7ff24fbe0c5b44ddc51b00ce099d3 /eclass | |
parent | dev-db/sqlite: fix build w/ non-bash (diff) | |
download | gentoo-1bf781b83fdfd96e662ec76a54ff5ca0b9aad5f6.tar.gz gentoo-1bf781b83fdfd96e662ec76a54ff5ca0b9aad5f6.tar.bz2 gentoo-1bf781b83fdfd96e662ec76a54ff5ca0b9aad5f6.zip |
toolchain.eclass: further death hook fixes
Fixes: d82f81cd65b9a668bd7940151e3fa876d4b0ce92
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index aa7134b23e8e..b25c5dcf0929 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2980,10 +2980,10 @@ toolchain_death_notice() { for dir in "${WORKDIR}"/build-jit "${WORKDIR}"/build ; do if [[ -e "${dir}" ]] ; then pushd "${WORKDIR}" >/dev/null - (echo '' | $(tc-getCC ${CTARGET}) ${CFLAGS} -v -E - 2>&1) > gccinfo.log - [[ -e "${T}"/build.log ]] && cp "${T}"/build.log . + (echo '' | $(tc-getCC ${CTARGET}) ${CFLAGS} -v -E - 2>&1) > "${dir}"/gccinfo.log + [[ -e "${T}"/build.log ]] && cp "${T}"/build.log "${dir}" tar -arf "${WORKDIR}"/gcc-build-logs.tar.xz \ - "${dir}"/gccinfo.log "${dir}"/build.log $(find -name "${dir}"/config.log) + "${dir#${WORKDIR}/}"/gccinfo.log "${dir#${WORKDIR}/}"/build.log $(find -name "${dir}"/config.log) rm "${dir}"/gccinfo.log "${dir}"/build.log eerror eerror "Please include ${WORKDIR}/gcc-build-logs.tar.xz in your bug report." |