From 2912503476a06505e0575648bdc85e1238ed17fd Mon Sep 17 00:00:00 2001 From: Alexander Tsoy Date: Mon, 3 Feb 2020 10:56:57 +0300 Subject: [PATCH] net-p2p/amule: fix build with binutils-2.34 Closes: https://bugs.gentoo.org/707884 Signed-off-by: Alexander Tsoy Signed-off-by: Joonas Niilola --- net-p2p/amule/amule-2.3.2-r4.ebuild | 1 + ...3.2-Fixed-compilation-with-newer-bfd.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 net-p2p/amule/files/amule-2.3.2-Fixed-compilation-with-newer-bfd.patch diff --git a/net-p2p/amule/amule-2.3.2-r4.ebuild b/net-p2p/amule/amule-2.3.2-r4.ebuild index 8199a8471f05..eee88909130a 100644 --- a/net-p2p/amule/amule-2.3.2-r4.ebuild +++ b/net-p2p/amule/amule-2.3.2-r4.ebuild @@ -45,6 +45,7 @@ PATCHES=( "${FILESDIR}/${PN}-2.3.2-fix-crash-when-shared-files-changed.patch" "${FILESDIR}/${PN}-2.3.2-libupnp-1.8.patch" "${FILESDIR}/${PN}-2.3.2-libupnp-1.6.patch" + "${FILESDIR}/${PN}-2.3.2-Fixed-compilation-with-newer-bfd.patch" ) pkg_setup() { diff --git a/net-p2p/amule/files/amule-2.3.2-Fixed-compilation-with-newer-bfd.patch b/net-p2p/amule/files/amule-2.3.2-Fixed-compilation-with-newer-bfd.patch new file mode 100644 index 000000000000..3ef8a21fa45c --- /dev/null +++ b/net-p2p/amule/files/amule-2.3.2-Fixed-compilation-with-newer-bfd.patch @@ -0,0 +1,33 @@ +From c0c28234a40b1b575ce51cdfe5ffa5dac3a7494c Mon Sep 17 00:00:00 2001 +From: Werner Mahr +Date: Fri, 31 Jan 2020 17:55:24 +0100 +Subject: [PATCH] Fixed compilation with newer bfd. Fixes: #174 + +--- + src/libs/common/MuleDebug.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/libs/common/MuleDebug.cpp b/src/libs/common/MuleDebug.cpp +index 5d8d75890..0ebf2ab07 100644 +--- a/src/libs/common/MuleDebug.cpp ++++ b/src/libs/common/MuleDebug.cpp +@@ -268,14 +268,14 @@ void get_file_line_info(bfd *abfd, asection *section, void* _address) + return; + } + +- bfd_vma vma = bfd_get_section_vma(abfd, section); ++ bfd_vma vma = section->vma; + + unsigned long address = (unsigned long)_address; + if (address < vma) { + return; + } + +- bfd_size_type size = bfd_section_size(abfd, section); ++ bfd_size_type size = section->size; + if (address > (vma + size)) { + return; + } +-- +2.24.1 + -- 2.26.2