diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-02-03 09:50:03 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-02-03 09:50:30 +0000 |
commit | 5326052334173df3a415108db673d79d5023812c (patch) | |
tree | 44b3844236e8ccb7bb865a7d90353de36ca604e1 /sys-devel/binutils | |
parent | sys-apps/portage: replace epydoc with sphinx-apidoc (diff) | |
download | gentoo-5326052334173df3a415108db673d79d5023812c.tar.gz gentoo-5326052334173df3a415108db673d79d5023812c.tar.bz2 gentoo-5326052334173df3a415108db673d79d5023812c.zip |
sys-devel/binutils: tweak for gcc-10
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-devel/binutils')
-rw-r--r-- | sys-devel/binutils/binutils-2.33.1-r1.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/binutils/binutils-2.34.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/binutils/files/binutils-2.33-gcc-10.patch | 39 |
3 files changed, 47 insertions, 0 deletions
diff --git a/sys-devel/binutils/binutils-2.33.1-r1.ebuild b/sys-devel/binutils/binutils-2.33.1-r1.ebuild index b961ec55af15..c76f4471a2f4 100644 --- a/sys-devel/binutils/binutils-2.33.1-r1.ebuild +++ b/sys-devel/binutils/binutils-2.33.1-r1.ebuild @@ -83,6 +83,10 @@ DEPEND="${RDEPEND} RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${PN}-2.33-gcc-10.patch +) + MY_BUILDDIR=${WORKDIR}/build src_unpack() { diff --git a/sys-devel/binutils/binutils-2.34.ebuild b/sys-devel/binutils/binutils-2.34.ebuild index 8dcfe3533550..d2f3d447c2b8 100644 --- a/sys-devel/binutils/binutils-2.34.ebuild +++ b/sys-devel/binutils/binutils-2.34.ebuild @@ -83,6 +83,10 @@ DEPEND="${RDEPEND} RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${PN}-2.33-gcc-10.patch +) + MY_BUILDDIR=${WORKDIR}/build src_unpack() { diff --git a/sys-devel/binutils/files/binutils-2.33-gcc-10.patch b/sys-devel/binutils/files/binutils-2.33-gcc-10.patch new file mode 100644 index 000000000000..9e1a999be9ef --- /dev/null +++ b/sys-devel/binutils/files/binutils-2.33-gcc-10.patch @@ -0,0 +1,39 @@ +binutils: drop redundant 'program_name' definition + +https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=0b398d69acde3377dfbbeb8a4cfe87ae8c8562fa +--- a/binutils/coffdump.c ++++ b/binutils/coffdump.c +@@ -456,8 +456,6 @@ coff_dump (struct coff_ofile *ptr) + dump_coff_section (ptr->sections + i); + } + +-char * program_name; +- + static void + show_usage (FILE *file, int status) + { +--- a/binutils/srconv.c ++++ b/binutils/srconv.c +@@ -1687,8 +1687,6 @@ prescan (struct coff_ofile *otree) + } + } + +-char *program_name; +- + ATTRIBUTE_NORETURN static void + show_usage (FILE *ffile, int status) + { +--- a/binutils/sysdump.c ++++ b/binutils/sysdump.c +@@ -633,8 +633,6 @@ module (void) + } + } + +-char *program_name; +- + ATTRIBUTE_NORETURN static void + show_usage (FILE *ffile, int status) + { +-- +2.25.0 + |