diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-26 21:47:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-08-26 21:47:56 +0000 |
commit | 90bd702b23896a164beac6f18d99030988aeea66 (patch) | |
tree | fc457e487acedd1350aab3702e6f1e2daebb2ad1 /eclass/toolchain-binutils.eclass | |
parent | Version bump #282449 by Jeroen Roovers. (diff) | |
download | gentoo-2-90bd702b23896a164beac6f18d99030988aeea66.tar.gz gentoo-2-90bd702b23896a164beac6f18d99030988aeea66.tar.bz2 gentoo-2-90bd702b23896a164beac6f18d99030988aeea66.zip |
unify duplicated user epatching code
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 834315f9c214..cc7b9c4f08ec 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.83 2009/05/23 23:07:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.84 2009/08/26 21:47:56 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> # @@ -138,19 +138,7 @@ tc-binutils_apply_patches() { die "sorry, but this binutils doesn't yet support uClibc :(" fi fi - local check base=${PORTAGE_CONFIGROOT}/etc/portage/patches - for check in {${CATEGORY}/${PF},${CATEGORY}/${P},${CATEGORY}/${PN}}; do - EPATCH_SOURCE=${base}/${CTARGET}/${check} - [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${CHOST}/${check} - [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${check} - if [[ -d ${EPATCH_SOURCE} ]] ; then - EPATCH_SUFFIX="patch" - EPATCH_FORCE="yes" \ - EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \ - epatch - break - fi - done + epatch_user fi # fix locale issues if possible #122216 |