summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-09-02 10:02:50 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-09-02 10:02:50 +0000
commit1d0119d2f46cbab5a73facb04bf500061ad204c9 (patch)
treec8c56ddcfb1e7e9ae9d9d2ed74370c218b1965f8 /eclass
parentRevision bump; fix cron job to use mktemp. Keeping keywords. Tidy old ebuilds (diff)
downloadhistorical-1d0119d2f46cbab5a73facb04bf500061ad204c9.tar.gz
historical-1d0119d2f46cbab5a73facb04bf500061ad204c9.tar.bz2
historical-1d0119d2f46cbab5a73facb04bf500061ad204c9.zip
Do not run elibtoolize again if already run. The check for no patches applied was in the wrong for loop.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/libtool.eclass54
1 files changed, 28 insertions, 26 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index da075ad6adf9..aa7c86fec026 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.51 2005/09/02 09:35:17 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.52 2005/09/02 10:02:50 azarah Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -177,6 +177,8 @@ elibtoolize() {
local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||")
export ELT_APPLIED_PATCHES=
+ [[ -f ${x}/.elibtoolized ]] && continue
+
cd ${x}
einfo "Running elibtoolize in: $(echo "/${tmp}" | sed -e 's|//|/|g; s|^/||')"
@@ -246,37 +248,37 @@ elibtoolize() {
;;
esac
fi
+ done
- if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then
- if [[ ${do_portage} == "no" && \
- ${do_reversedeps} == "no" && \
- ${do_only_patches} == "no" && \
- ${deptoremove} == "" ]]
- then
- ewarn "Cannot apply any patches, please file a bug about this"
- break
-
- # Sometimes ltmain.sh is in a subdirectory ...
- if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then
- if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then
- cd "${x}"/../
- fi
+ if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then
+ if [[ ${do_portage} == "no" && \
+ ${do_reversedeps} == "no" && \
+ ${do_only_patches} == "no" && \
+ ${deptoremove} == "" ]]
+ then
+ ewarn "Cannot apply any patches, please file a bug about this"
+ break
+
+ # Sometimes ltmain.sh is in a subdirectory ...
+ if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then
+ if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then
+ cd "${x}"/../
fi
+ fi
- if type -p libtoolize &> /dev/null ; then
- ewarn "Cannot apply any patches, running libtoolize..."
- libtoolize --copy --force
- fi
- cd "${x}"
- break
+ if type -p libtoolize &> /dev/null ; then
+ ewarn "Cannot apply any patches, running libtoolize..."
+ libtoolize --copy --force
fi
+ cd "${x}"
+ break
fi
- done
- done
+ fi
- if [[ -f libtool ]] ; then
- rm -f libtool
- fi
+ [[ -f ${x}/libtool ]] && rm -f "${x}/libtool"
+
+ touch "${x}/.elibtoolized"
+ done
cd "${start_dir}"