Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog toolchain.eclass
Date: Sat, 09 Nov 2013 10:05:17
Message-Id: 20131109100513.173842004B@flycatcher.gentoo.org
1 dirtyepic 13/11/09 10:05:12
2
3 Modified: ChangeLog toolchain.eclass
4 Log:
5 Revert previous and instead include the build log and some other info. Don't
6 pollute the build dir.
7
8 Revision Changes Path
9 1.1052 eclass/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1052&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1052&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1051&r2=1.1052
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
18 retrieving revision 1.1051
19 retrieving revision 1.1052
20 diff -u -r1.1051 -r1.1052
21 --- ChangeLog 9 Nov 2013 07:49:50 -0000 1.1051
22 +++ ChangeLog 9 Nov 2013 10:05:12 -0000 1.1052
23 @@ -1,6 +1,10 @@
24 # ChangeLog for eclass directory
25 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1051 2013/11/09 07:49:50 dirtyepic Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1052 2013/11/09 10:05:12 dirtyepic Exp $
28 +
29 + 09 Nov 2013; Ryan Hill <dirtyepic@g.o> toolchain.eclass:
30 + Revert previous and instead include the build log and some other info. Don't
31 + pollute the build dir.
32
33 09 Nov 2013; Ryan Hill <dirtyepic@g.o> toolchain.eclass:
34 Rename config.log tarball in the hope that people will stop attaching it to
35
36
37
38 1.605 eclass/toolchain.eclass
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.605&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.605&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.604&r2=1.605
43
44 Index: toolchain.eclass
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
47 retrieving revision 1.604
48 retrieving revision 1.605
49 diff -u -r1.604 -r1.605
50 --- toolchain.eclass 9 Nov 2013 07:49:50 -0000 1.604
51 +++ toolchain.eclass 9 Nov 2013 10:05:12 -0000 1.605
52 @@ -1,6 +1,6 @@
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.604 2013/11/09 07:49:50 dirtyepic Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.605 2013/11/09 10:05:12 dirtyepic Exp $
57
58 # Maintainer: Toolchain Ninjas <toolchain@g.o>
59
60 @@ -1284,13 +1284,18 @@
61
62 has toolchain_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" toolchain_death_notice"
63 toolchain_death_notice() {
64 - pushd "${WORKDIR}"/build >/dev/null
65 - tar jcf gcc-config-logs.tar.bz2 $(find -name config.log)
66 - eerror
67 - eerror "Please include ${PWD}/gcc-config-logs.tar.bz2"
68 - eerror "in your bug report if the error occurred during configure."
69 - eerror
70 - popd >/dev/null
71 + if [[ -e "${WORKDIR}"/build ]] ; then
72 + pushd "${WORKDIR}"/build >/dev/null
73 + (echo '' | $(tc-getCC ${CTARGET}) ${CFLAGS} -v -E - 2>&1) > gccinfo.log
74 + [[ -e "${T}"/build.log ]] && cp "${T}"/build.log .
75 + tar jcf "${WORKDIR}"/gcc-build-logs.tar.bz2 \
76 + gccinfo.log build.log $(find -name config.log)
77 + rm gccinfo.log build.log
78 + eerror
79 + eerror "Please include ${WORKDIR}/gcc-build-logs.tar.bz2 in your bug report."
80 + eerror
81 + popd >/dev/null
82 + fi
83 }
84
85 # This function accepts one optional argument, the make target to be used.