Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils/files/, sys-devel/binutils/
Date: Mon, 09 Mar 2020 20:07:53
Message-Id: 1583784464.31ea5c5ef16889c000670d48d769294823fa1cd4.slyfox@gentoo
1 commit: 31ea5c5ef16889c000670d48d769294823fa1cd4
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 9 20:07:11 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 9 20:07:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31ea5c5e
7
8 sys-devel/binutils: tweak 2.32 for gcc-10
9
10 Package-Manager: Portage-2.3.93, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/binutils/binutils-2.32-r2.ebuild | 9 +++++++--
14 sys-devel/binutils/files/binutils-2.32-gcc-10.patch | 16 ++++++++++++++++
15 2 files changed, 23 insertions(+), 2 deletions(-)
16
17 diff --git a/sys-devel/binutils/binutils-2.32-r2.ebuild b/sys-devel/binutils/binutils-2.32-r2.ebuild
18 index 3e54336e168..0242f709569 100644
19 --- a/sys-devel/binutils/binutils-2.32-r2.ebuild
20 +++ b/sys-devel/binutils/binutils-2.32-r2.ebuild
21 @@ -55,8 +55,13 @@ PATCH_DEV=${PATCH_DEV:-slyfox}
22 [[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
23 https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
24
25 -# Disable gold testsuite since it always fails.
26 -PATCHES=( "${FILESDIR}/${PN}-2.29.1-nogoldtest.patch" )
27 +PATCHES=(
28 + # Disable gold testsuite since it always fails.
29 + "${FILESDIR}/${PN}-2.29.1-nogoldtest.patch"
30 +
31 + "${FILESDIR}"/${PN}-2.32-gcc-10.patch
32 + "${FILESDIR}"/${PN}-2.33-gcc-10.patch
33 +)
34
35 #
36 # The cross-compile logic
37
38 diff --git a/sys-devel/binutils/files/binutils-2.32-gcc-10.patch b/sys-devel/binutils/files/binutils-2.32-gcc-10.patch
39 new file mode 100644
40 index 00000000000..fa7069456cd
41 --- /dev/null
42 +++ b/sys-devel/binutils/files/binutils-2.32-gcc-10.patch
43 @@ -0,0 +1,16 @@
44 +commit a3972330f49f81b3bea64af0970d22f42ae56ec3
45 +Author: Martin Liska <mliska@××××.cz>
46 +Date: Fri Jun 7 07:36:52 2019 +0200
47 +
48 + Fix a missing include of <string>
49 +
50 +--- a/gold/errors.h
51 ++++ b/gold/errors.h
52 +@@ -24,6 +24,7 @@
53 + #define GOLD_ERRORS_H
54 +
55 + #include <cstdarg>
56 ++#include <string>
57 +
58 + #include "gold-threads.h"
59 +