Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michał Górny <mgorny@g.o>
Subject: [PATCH autotools-utils] Deprecate implicit IUSE=debug.
Date: Wed, 14 Sep 2011 18:44:14 +0200
---
 eclass/autotools-utils.eclass |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index 495244b..9217d00 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -88,7 +88,7 @@ case ${EAPI:-0} in
 	*) die "EAPI=${EAPI} is not supported" ;;
 esac
 
-inherit autotools base
+inherit autotools base eutils
 
 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test
 
@@ -220,8 +220,6 @@ autotools-utils_src_prepare() {
 # in myeconfargs are passed here to econf. Additionally following USE
 # flags are known:
 #
-# IUSE="debug" passes --disable-debug/--enable-debug to econf respectively.
-#
 # IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static
 # to econf respectively.
 autotools-utils_src_configure() {
@@ -232,7 +230,12 @@ autotools-utils_src_configure() {
 
 	# Handle debug found in IUSE
 	if has debug ${IUSE//+}; then
-		econfargs+=($(use_enable debug))
+		local debugarg=$(use_enable debug)
+		if ! has "${debugarg}" "${myeconfargs[@]}"; then
+			eqawarn 'Implicit $(use_enable debug) for IUSE="debug" is no longer supported.'
+			eqawarn 'Please add the necessary arg to myeconfargs if requested.'
+			eqawarn 'The autotools-utils eclass will stop warning about it on Oct 15th.'
+		fi
 	fi
 
 	# Handle static-libs found in IUSE, disable them by default
-- 
1.7.6.1



References:
Re: Re: [PATCH autotools-utils] Deprecate implicit IUSE=debug.
-- Diego Elio Pettenò
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: [PATCH autotools-utils] Deprecate implicit IUSE=debug.
Next by thread:
Re: Re: Fixing eclass code relying on ${IUSE} greps?
Previous by date:
Re: Re: [PATCH autotools-utils] Deprecate implicit IUSE=debug.
Next by date:
Re: Re: Fixing eclass code relying on ${IUSE} greps?


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.