summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2021-05-04 20:33:42 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2021-05-04 20:33:42 +0200
commit19aa48d782721210f4e33e79eb21b8b232799ab1 (patch)
tree555d3af334e163a12b53a0bb578ec91a71847d32 /dev-libs/libfilezilla
parentpackage.mask: dev-python/quex ported to py39 (diff)
downloadgentoo-19aa48d782721210f4e33e79eb21b8b232799ab1.tar.gz
gentoo-19aa48d782721210f4e33e79eb21b8b232799ab1.tar.bz2
gentoo-19aa48d782721210f4e33e79eb21b8b232799ab1.zip
dev-libs/libfilezilla: fix compilation with gcc 11
Closes: https://bugs.gentoo.org/786849 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'dev-libs/libfilezilla')
-rw-r--r--dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch10
-rw-r--r--dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild2
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch b/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch
new file mode 100644
index 000000000000..68f2c7ec9f7b
--- /dev/null
+++ b/dev-libs/libfilezilla/files/libfilezilla-0.27.1-gcc11.patch
@@ -0,0 +1,10 @@
+--- libfilezilla/lib/buffer.cpp 2020/12/09 13:33:18 10031
++++ libfilezilla/lib/buffer.cpp 2021/04/27 07:39:32 10225
+@@ -2,6 +2,7 @@
+
+ #include <algorithm>
+ #include <cstdlib>
++#include <limits>
+
+ #include <string.h>
+
diff --git a/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild b/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild
index 0aafaec97579..bdbb4d9e2d84 100644
--- a/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild
+++ b/dev-libs/libfilezilla/libfilezilla-0.27.1.ebuild
@@ -22,6 +22,8 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( dev-util/cppunit )"
+PATCHES=( "${FILESDIR}"/${P}-gcc11.patch )
+
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
if ! test-flag-CXX -std=c++14; then