Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 25 Sep 2017 23:18:10
Message-Id: 1506381480.cf3086b3e4f3fc319336a66abc7c8f63fdad41c5.slyfox@gentoo
1 commit: cf3086b3e4f3fc319336a66abc7c8f63fdad41c5
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 25 22:30:15 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 25 23:18:00 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf3086b3
7
8 toolchain-binutils.eclass: add PATCH_BINUTILS_VER handling
9
10 PATCH_BINUTILS_VER is handy when one wants to apply
11 patchset from a different binutils version. For example
12 to apply a 2.29 patchset on top of 2.29.1 version ebuild
13 will refer to it as:
14 PATCH_BINUTILS_VER="2.29"
15
16 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
17
18 eclass/toolchain-binutils.eclass | 5 +++--
19 1 file changed, 3 insertions(+), 2 deletions(-)
20
21 diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
22 index 8c366aa4a6b..3fbbc57e638 100644
23 --- a/eclass/toolchain-binutils.eclass
24 +++ b/eclass/toolchain-binutils.eclass
25 @@ -78,8 +78,9 @@ add_src_uri() {
26 set -- mirror://gentoo https://dev.gentoo.org/~vapier/dist https://dev.gentoo.org/~tamiko/distfiles
27 SRC_URI="${SRC_URI} ${@/%//${a}}"
28 }
29 -add_src_uri binutils-${BVER}-patches-${PATCHVER}.tar ${PATCHVER}
30 -add_src_uri binutils-${BVER}-uclibc-patches-${UCLIBC_PATCHVER}.tar ${UCLIBC_PATCHVER}
31 +PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${BVER}}
32 +add_src_uri binutils-${PATCH_BINUTILS_VER}-patches-${PATCHVER}.tar ${PATCHVER}
33 +add_src_uri binutils-${PATCH_BINUTILS_VER}-uclibc-patches-${UCLIBC_PATCHVER}.tar ${UCLIBC_PATCHVER}
34 add_src_uri elf2flt-${ELF2FLT_VER}.tar ${ELF2FLT_VER}
35
36 if version_is_at_least 2.18 ; then