From 8d3ebe32fd0f7286066ef1c010775fc09bcf44e3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 13 Dec 2011 00:21:54 +0000 Subject: [PATCH] automatically create a tarball of all config.log files when we fail, and tell the user to attach those so hopefully we can stop having to request these ourselves in bugzilla --- eclass/toolchain.eclass | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 7a44ae84b998..33649d1bdf92 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.510 2011/12/10 08:55:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.511 2011/12/13 00:21:54 vapier Exp $ # # Maintainer: Toolchain Ninjas @@ -1216,6 +1216,16 @@ gcc_do_configure() { popd > /dev/null } +has toolchain_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" toolchain_death_notice" +toolchain_death_notice() { + pushd "${WORKDIR}"/build >/dev/null + tar jcf gcc-build-logs.tar.bz2 $(find -name config.log) + eerror + eerror "Please include ${PWD}/gcc-build-logs.tar.bz2 in your bug report" + eerror + popd >/dev/null +} + # This function accepts one optional argument, the make target to be used. # If ommitted, gcc_do_make will try to guess whether it should use all, # profiledbootstrap, or bootstrap-lean depending on CTARGET and arch. An -- 2.26.2