sys-devel/binutils: tweak for gcc-10
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 09:50:03 +0000 (09:50 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 09:50:30 +0000 (09:50 +0000)
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-devel/binutils/binutils-2.33.1-r1.ebuild
sys-devel/binutils/binutils-2.34.ebuild
sys-devel/binutils/files/binutils-2.33-gcc-10.patch [new file with mode: 0644]

index b961ec55af152f5471a4c4bac532088246b78934..c76f4471a2f4a39d3dec1a20a8d1cbea12de0ff1 100644 (file)
@@ -83,6 +83,10 @@ DEPEND="${RDEPEND}
 
 RESTRICT="!test? ( test )"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.33-gcc-10.patch
+)
+
 MY_BUILDDIR=${WORKDIR}/build
 
 src_unpack() {
index 8dcfe353355092fff7f711f46399758dba04cb85..d2f3d447c2b8428e652eec783a3635c3070cb50e 100644 (file)
@@ -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 (file)
index 0000000..9e1a999
--- /dev/null
@@ -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
+