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 automagic $(use_enable static-libs static).
Date: Sun, 18 Sep 2011 23:19:57 +0200
---
 eclass/autotools-utils.eclass |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index 76ad6fc..489efd9 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -28,7 +28,7 @@
 # LICENSE="LGPL-2.1"
 # KEYWORDS=""
 # SLOT="0"
-# IUSE="debug doc examples qt4 static-libs tiff"
+# IUSE="debug doc examples qt4 tiff"
 #
 # CDEPEND="
 # 	media-libs/libpng:0
@@ -220,9 +220,6 @@ autotools-utils_src_prepare() {
 # directory and runs econf there. Configuration parameters defined
 # in myeconfargs are passed here to econf. Additionally following USE
 # flags are known:
-#
-# IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static
-# to econf respectively.
 autotools-utils_src_configure() {
 	debug-print-function ${FUNCNAME} "$@"
 
@@ -244,10 +241,21 @@ autotools-utils_src_configure() {
 
 	# Handle static-libs found in IUSE, disable them by default
 	if has static-libs ${IUSE//+}; then
-		econfargs+=(
-			--enable-shared
-			$(use_enable static-libs static)
-		)
+		local staticarg=$(use_enable static-libs static)
+		if ! has "${staticarg}" "${myeconfargs[@]}"; then
+			eqawarn 'Implicit $(use_enable static-libs static) for IUSE="static-libs"'
+			eqawarn 'is no longer supported. Please add the necessary args to myeconfargs'
+			eqawarn 'if requested or simply drop IUSE=static-libs if unnecessary.'
+			eqawarn
+			eqawarn 'For details, please see:'
+			eqawarn 'http://archives.gentoo.org/gentoo-dev/msg_f67ae0e7733869ef7cc35dd8542871d4.xml'
+			eqawarn 'The autotools-utils eclass will stop supporting this on Nov 1st.'
+
+			econfargs+=(
+				--enable-shared
+				$(use_enable static-libs static)
+			)
+		fi
 	fi
 
 	# Append user args
-- 
1.7.6.1



References:
Please don't use IUSE=static-libs unless really necessary
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Please don't use IUSE=static-libs unless really necessary
Next by thread:
Re: Please don't use IUSE=static-libs unless really necessary
Previous by date:
Please don't use IUSE=static-libs unless really necessary
Next by date:
Re: Please don't use IUSE=static-libs unless really necessary


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.