1 |
commit: 19aa48d782721210f4e33e79eb21b8b232799ab1 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 18:33:42 2021 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 18:33:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19aa48d7 |
7 |
|
8 |
dev-libs/libfilezilla: fix compilation with gcc 11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786849 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch | 10 ++++++++++ |
15 |
dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild | 2 ++ |
16 |
2 files changed, 12 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch b/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..68f2c7ec9f7 |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch |
23 |
@@ -0,0 +1,10 @@ |
24 |
+--- libfilezilla/lib/buffer.cpp 2020/12/09 13:33:18 10031 |
25 |
++++ libfilezilla/lib/buffer.cpp 2021/04/27 07:39:32 10225 |
26 |
+@@ -2,6 +2,7 @@ |
27 |
+ |
28 |
+ #include <algorithm> |
29 |
+ #include <cstdlib> |
30 |
++#include <limits> |
31 |
+ |
32 |
+ #include <string.h> |
33 |
+ |
34 |
|
35 |
diff --git a/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild b/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild |
36 |
index 0aafaec9757..bdbb4d9e2d8 100644 |
37 |
--- a/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild |
38 |
+++ b/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild |
39 |
@@ -22,6 +22,8 @@ RDEPEND=" |
40 |
DEPEND="${RDEPEND} |
41 |
test? ( dev-util/cppunit )" |
42 |
|
43 |
+PATCHES=( "${FILESDIR}"/${P}-gcc11.patch ) |
44 |
+ |
45 |
pkg_pretend() { |
46 |
if [[ ${MERGE_TYPE} != binary ]]; then |
47 |
if ! test-flag-CXX -std=c++14; then |