Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135024 - inheriting gnome2.eclass injects bogus debug flag to ebuilds
Summary: inheriting gnome2.eclass injects bogus debug flag to ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-31 04:20 UTC by Jakub Moc (RETIRED)
Modified: 2006-06-07 14:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2006-05-31 04:20:53 UTC
I did hit this when creating a patch for www-client/opera. The below patch would make it possible to set GCONF_DEBUG="no" in ebuilds to avoid this behaviour. Intentionally using double negation here, so that only affected ebuilds can be changed, instead of requiring to set GCONF_DEBUG="yes" in all ebuilds that actually have debug feature.

Comments?

--- gnome2.eclass.orig	2006-04-23 17:36:06.000000000 +0200
+++ gnome2.eclass	2006-05-31 13:10:34.000000000 +0200
@@ -26,7 +26,9 @@
 # Path to gconftool-2
 GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"}
 
-IUSE="debug"
+if [[ ${GCONF_DEBUG} != "no" ]]; then
+        IUSE="debug"
+fi
 
 DEPEND=">=sys-apps/sed-4"
 
@@ -40,8 +42,10 @@
 
 gnome2_src_configure() {
 	# Update the GNOME configuration options
-	use debug && G2CONF="${G2CONF} --enable-debug=yes"
-	G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
+	if [[ ${GCONF_DEBUG} != 'no' ]] || use debug ; then
+	    G2CONF="${G2CONF} --enable-debug=yes"
+	    G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
+	fi
 
 	# Run libtoolize
 	elibtoolize ${ELTCONF}
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 04:24:45 UTC
And there's of course an error, thanks Mr. Murphy... :P Obviously, I meant:

<snip>
    if [[ ${GCONF_DEBUG} != 'no' ]] || use debug ; then
        G2CONF="${G2CONF} --enable-debug=yes"
    fi
    G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
</snip>

Sorry.
Comment 2 John N. Laliberte (RETIRED) gentoo-dev 2006-05-31 04:53:14 UTC
i don't have any problem with the idea, probably best to do IUSE="${IUSE} debug" just to be safe.
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2006-06-07 14:13:30 UTC
thanks, in cvs.