summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-04 23:31:14 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-04 23:31:14 +0000
commite8fef002c6b333d12dee1c269986a0ccf8b6a379 (patch)
treee351dc3e4fbea65aad3e24194d3d1c1c4ba3f379 /eclass/debug.eclass
parentadd ~amd64, bug 153151 (diff)
downloadhistorical-e8fef002c6b333d12dee1c269986a0ccf8b6a379.tar.gz
historical-e8fef002c6b333d12dee1c269986a0ccf8b6a379.tar.bz2
historical-e8fef002c6b333d12dee1c269986a0ccf8b6a379.zip
Make debug.eclass a dummy eclass, so that it stops breaking QA as per bug #55708.
Diffstat (limited to 'eclass/debug.eclass')
-rw-r--r--eclass/debug.eclass26
1 files changed, 7 insertions, 19 deletions
diff --git a/eclass/debug.eclass b/eclass/debug.eclass
index c1cba25c9c2d..b391ed62a8dc 100644
--- a/eclass/debug.eclass
+++ b/eclass/debug.eclass
@@ -1,22 +1,10 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.27 2005/08/01 23:58:44 foser Exp $
-#
-# Author: Spider
-#
-# A general DEBUG eclass to ease inclusion of debugging information
-# and to remove "bad" flags from CFLAGS
+# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.28 2007/01/04 23:31:14 flameeyes Exp $
-# Debug ECLASS
-IUSE="debug"
-
-if useq debug; then
- # Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+
- DEBUG="yes"
- RESTRICT="${RESTRICT} nostrip"
- # Remove omit-frame-pointer as some useless folks define that all over the place. they should be shot with a 16 gauge slingshot at least :)
- # force debug information
- export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g"
- export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g"
- # einfo "CFLAGS and CXXFLAGS redefined"
-fi
+# STOP USING THIS ECLASS
+# It was broken, and debug useflag should _not_ touch CFLAGS to start with.
+# See http://bugs.gentoo.org/show_bug.cgi?id=55708 for info about this
+# and http://www.gentoo.org/proj/en/qa/backtraces.xml to learn how to get
+# a debug build.
+ewarn "The package ${PF} still uses the broken debug.eclass"