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, 03 Feb 2020 09:50:41
Message-Id: 1580723430.5326052334173df3a415108db673d79d5023812c.slyfox@gentoo
1 commit: 5326052334173df3a415108db673d79d5023812c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 3 09:50:03 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 3 09:50:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53260523
7
8 sys-devel/binutils: tweak for gcc-10
9
10 Package-Manager: Portage-2.3.87, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/binutils/binutils-2.33.1-r1.ebuild | 4 +++
14 sys-devel/binutils/binutils-2.34.ebuild | 4 +++
15 .../binutils/files/binutils-2.33-gcc-10.patch | 39 ++++++++++++++++++++++
16 3 files changed, 47 insertions(+)
17
18 diff --git a/sys-devel/binutils/binutils-2.33.1-r1.ebuild b/sys-devel/binutils/binutils-2.33.1-r1.ebuild
19 index b961ec55af1..c76f4471a2f 100644
20 --- a/sys-devel/binutils/binutils-2.33.1-r1.ebuild
21 +++ b/sys-devel/binutils/binutils-2.33.1-r1.ebuild
22 @@ -83,6 +83,10 @@ DEPEND="${RDEPEND}
23
24 RESTRICT="!test? ( test )"
25
26 +PATCHES=(
27 + "${FILESDIR}"/${PN}-2.33-gcc-10.patch
28 +)
29 +
30 MY_BUILDDIR=${WORKDIR}/build
31
32 src_unpack() {
33
34 diff --git a/sys-devel/binutils/binutils-2.34.ebuild b/sys-devel/binutils/binutils-2.34.ebuild
35 index 8dcfe353355..d2f3d447c2b 100644
36 --- a/sys-devel/binutils/binutils-2.34.ebuild
37 +++ b/sys-devel/binutils/binutils-2.34.ebuild
38 @@ -83,6 +83,10 @@ DEPEND="${RDEPEND}
39
40 RESTRICT="!test? ( test )"
41
42 +PATCHES=(
43 + "${FILESDIR}"/${PN}-2.33-gcc-10.patch
44 +)
45 +
46 MY_BUILDDIR=${WORKDIR}/build
47
48 src_unpack() {
49
50 diff --git a/sys-devel/binutils/files/binutils-2.33-gcc-10.patch b/sys-devel/binutils/files/binutils-2.33-gcc-10.patch
51 new file mode 100644
52 index 00000000000..9e1a999be9e
53 --- /dev/null
54 +++ b/sys-devel/binutils/files/binutils-2.33-gcc-10.patch
55 @@ -0,0 +1,39 @@
56 +binutils: drop redundant 'program_name' definition
57 +
58 +https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=0b398d69acde3377dfbbeb8a4cfe87ae8c8562fa
59 +--- a/binutils/coffdump.c
60 ++++ b/binutils/coffdump.c
61 +@@ -456,8 +456,6 @@ coff_dump (struct coff_ofile *ptr)
62 + dump_coff_section (ptr->sections + i);
63 + }
64 +
65 +-char * program_name;
66 +-
67 + static void
68 + show_usage (FILE *file, int status)
69 + {
70 +--- a/binutils/srconv.c
71 ++++ b/binutils/srconv.c
72 +@@ -1687,8 +1687,6 @@ prescan (struct coff_ofile *otree)
73 + }
74 + }
75 +
76 +-char *program_name;
77 +-
78 + ATTRIBUTE_NORETURN static void
79 + show_usage (FILE *ffile, int status)
80 + {
81 +--- a/binutils/sysdump.c
82 ++++ b/binutils/sysdump.c
83 +@@ -633,8 +633,6 @@ module (void)
84 + }
85 + }
86 +
87 +-char *program_name;
88 +-
89 + ATTRIBUTE_NORETURN static void
90 + show_usage (FILE *ffile, int status)
91 + {
92 +--
93 +2.25.0
94 +