summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-05-11 11:10:31 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-05-11 11:10:31 +0000
commit0f8dd578f1665a49c447b9cfe4d83d2b0df33b7d (patch)
tree51f01dd3fa3d5c915d6e39085e8c51796553a707 /eclass/libtool.eclass
parentstable on amd64 wrt security bug #91862 (diff)
downloadgentoo-2-0f8dd578f1665a49c447b9cfe4d83d2b0df33b7d.tar.gz
gentoo-2-0f8dd578f1665a49c447b9cfe4d83d2b0df33b7d.tar.bz2
gentoo-2-0f8dd578f1665a49c447b9cfe4d83d2b0df33b7d.zip
Do not run libtoolize if portage patch already applied.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index a23e8ad76d58..680a5fb7de7c 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.44 2005/03/23 18:03:21 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.45 2005/05/11 11:10:31 azarah Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -227,8 +227,16 @@ elibtoolize() {
die "Portage patch requested, but failed to apply!"
fi
else
- ewarn " Could not apply portage.patch!"
- ewarn " Please verify that it is not needed."
+ if [[ -n $(grep 'We do not want portage' "${x}/ltmain.sh") ]] ; then
+ ewarn " Portage patch seems to be already applied."
+ ewarn " Please verify that it is not needed."
+ else
+ echo
+ eerror "Portage patch failed to apply!"
+ die "Portage patch failed to apply!"
+ fi
+ # We do not want to run libtoolize ...
+ ELT_APPLIED_PATCHES="portage"
fi
;;
esac