summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-14 17:08:49 +0000
committerMike Frysinger <vapier@gentoo.org>2011-11-14 17:08:49 +0000
commitd83ff6e746503ee52b7718517ffa4e9b19ae9abd (patch)
treea5b6ae975b67e1f21819480b578c1418f5c6d3c1 /eclass/libtool.eclass
parentRemove obsolete lightning dep (diff)
downloadhistorical-d83ff6e746503ee52b7718517ffa4e9b19ae9abd.tar.gz
historical-d83ff6e746503ee52b7718517ffa4e9b19ae9abd.tar.bz2
historical-d83ff6e746503ee52b7718517ffa4e9b19ae9abd.zip
add a --force flag to elibtoolize so that eautoreconf can make sure it runs even in face of poor interactions with earlier ebuilds/eclasses code #232820
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index c6a06b99e6b4..b36e7e388387 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.94 2011/10/03 04:04:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.95 2011/11/14 17:08:49 vapier Exp $
# @ECLASS: libtool.eclass
# @MAINTAINER:
@@ -119,6 +119,7 @@ elibtoolize() {
local do_uclibc="yes"
local deptoremove=
local do_shallow="no"
+ local force="false"
local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed"
for x in "$@" ; do
@@ -153,6 +154,9 @@ elibtoolize() {
--no-uclibc)
do_uclibc="no"
;;
+ --force)
+ force="true"
+ ;;
*)
eerror "Invalid elibtoolize option: ${x}"
die "elibtoolize called with ${x} ??"
@@ -186,9 +190,15 @@ elibtoolize() {
for d in "$@" ; do
export ELT_APPLIED_PATCHES=
- [[ -f ${d}/.elibtoolized ]] && continue
+ if [[ -f ${d}/.elibtoolized ]] ; then
+ ${force} || continue
+ fi
einfo "Running elibtoolize in: ${d#${WORKDIR}/}/"
+ if [[ -f ${d}/.elibtoolized ]] ; then
+ ewarn " We've already been run in this tree; you should"
+ ewarn " avoid this if possible (perhaps by filing a bug)"
+ fi
for p in ${elt_patches} ; do
local ret=0