diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-13 00:21:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-13 00:21:54 +0000 |
commit | 2f151d270911b57b16bbc435993267b2940574eb (patch) | |
tree | df0e10e1e6998d6a5b9a9ad5b674782357607df6 /eclass/toolchain.eclass | |
parent | Fix crash when building akonadi bindings, bug 392925 (diff) | |
download | gentoo-2-2f151d270911b57b16bbc435993267b2940574eb.tar.gz gentoo-2-2f151d270911b57b16bbc435993267b2940574eb.tar.bz2 gentoo-2-2f151d270911b57b16bbc435993267b2940574eb.zip |
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
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
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 <toolchain@gentoo.org> @@ -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 |