summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-02-12 13:17:32 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-02-12 13:17:43 +0000
commit8997323e5e0645fc993041d623ccc270e3fe74dc (patch)
tree0db42f7b66a76497ef1e44a13c0ac03879cd1766 /dev-util/android-tools
parentmedia-plugins/vdr-pin: fixed | vs || in sed line (diff)
downloadgentoo-8997323e5e0645fc993041d623ccc270e3fe74dc.tar.gz
gentoo-8997323e5e0645fc993041d623ccc270e3fe74dc.tar.bz2
gentoo-8997323e5e0645fc993041d623ccc270e3fe74dc.zip
dev-util/android-tools: tweak for gcc-11
Fixed-by: andy Closes: https://bugs.gentoo.org/764071 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/android-tools')
-rw-r--r--dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild4
-rw-r--r--dev-util/android-tools/files/android-tools-9.0.0-limits-gcc11.patch11
2 files changed, 14 insertions, 1 deletions
diff --git a/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild b/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild
index 3c4e5ba6b302..d5ba3b863325 100644
--- a/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild
+++ b/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
@@ -44,6 +44,8 @@ RDEPEND="${DEPEND}
DEPEND+="
dev-lang/go"
+PATCHES=("${FILESDIR}"/${PN}-9.0.0-limits-gcc11.patch)
+
S=${WORKDIR}
CMAKE_USE_DIR="${S}/boringssl"
diff --git a/dev-util/android-tools/files/android-tools-9.0.0-limits-gcc11.patch b/dev-util/android-tools/files/android-tools-9.0.0-limits-gcc11.patch
new file mode 100644
index 000000000000..ced85fc8306e
--- /dev/null
+++ b/dev-util/android-tools/files/android-tools-9.0.0-limits-gcc11.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/764071
+--- a/core/fastboot/protocol.cpp 2018-06-21 02:58:42.000000000 +0200
++++ b/core/fastboot/protocol.cpp 2021-01-06 10:11:52.806586912 +0100
+@@ -37,6 +37,7 @@
+
+ #include <algorithm>
+ #include <vector>
++#include <limits>
+
+ #include <android-base/file.h>
+ #include <android-base/stringprintf.h>