1 |
commit: 2912503476a06505e0575648bdc85e1238ed17fd |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Mon Feb 3 07:56:57 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 20 13:17:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29125034 |
7 |
|
8 |
net-p2p/amule: fix build with binutils-2.34 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707884 |
11 |
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
net-p2p/amule/amule-2.3.2-r4.ebuild | 1 + |
15 |
...le-2.3.2-Fixed-compilation-with-newer-bfd.patch | 33 ++++++++++++++++++++++ |
16 |
2 files changed, 34 insertions(+) |
17 |
|
18 |
diff --git a/net-p2p/amule/amule-2.3.2-r4.ebuild b/net-p2p/amule/amule-2.3.2-r4.ebuild |
19 |
index 8199a8471f0..eee88909130 100644 |
20 |
--- a/net-p2p/amule/amule-2.3.2-r4.ebuild |
21 |
+++ b/net-p2p/amule/amule-2.3.2-r4.ebuild |
22 |
@@ -45,6 +45,7 @@ PATCHES=( |
23 |
"${FILESDIR}/${PN}-2.3.2-fix-crash-when-shared-files-changed.patch" |
24 |
"${FILESDIR}/${PN}-2.3.2-libupnp-1.8.patch" |
25 |
"${FILESDIR}/${PN}-2.3.2-libupnp-1.6.patch" |
26 |
+ "${FILESDIR}/${PN}-2.3.2-Fixed-compilation-with-newer-bfd.patch" |
27 |
) |
28 |
|
29 |
pkg_setup() { |
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 00000000000..3ef8a21fa45 |
34 |
--- /dev/null |
35 |
+++ b/net-p2p/amule/files/amule-2.3.2-Fixed-compilation-with-newer-bfd.patch |
36 |
@@ -0,0 +1,33 @@ |
37 |
+From c0c28234a40b1b575ce51cdfe5ffa5dac3a7494c Mon Sep 17 00:00:00 2001 |
38 |
+From: Werner Mahr <werner@×××××××××××××××.de> |
39 |
+Date: Fri, 31 Jan 2020 17:55:24 +0100 |
40 |
+Subject: [PATCH] Fixed compilation with newer bfd. Fixes: #174 |
41 |
+ |
42 |
+--- |
43 |
+ src/libs/common/MuleDebug.cpp | 4 ++-- |
44 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
45 |
+ |
46 |
+diff --git a/src/libs/common/MuleDebug.cpp b/src/libs/common/MuleDebug.cpp |
47 |
+index 5d8d75890..0ebf2ab07 100644 |
48 |
+--- a/src/libs/common/MuleDebug.cpp |
49 |
++++ b/src/libs/common/MuleDebug.cpp |
50 |
+@@ -268,14 +268,14 @@ void get_file_line_info(bfd *abfd, asection *section, void* _address) |
51 |
+ return; |
52 |
+ } |
53 |
+ |
54 |
+- bfd_vma vma = bfd_get_section_vma(abfd, section); |
55 |
++ bfd_vma vma = section->vma; |
56 |
+ |
57 |
+ unsigned long address = (unsigned long)_address; |
58 |
+ if (address < vma) { |
59 |
+ return; |
60 |
+ } |
61 |
+ |
62 |
+- bfd_size_type size = bfd_section_size(abfd, section); |
63 |
++ bfd_size_type size = section->size; |
64 |
+ if (address > (vma + size)) { |
65 |
+ return; |
66 |
+ } |
67 |
+-- |
68 |
+2.24.1 |
69 |
+ |