diff options
-rw-r--r-- | dev-util/android-tools/android-tools-31.0.3_p1.ebuild | 4 | ||||
-rw-r--r-- | dev-util/android-tools/files/android-tools-31.0.3_p1-gcc12.patch | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/dev-util/android-tools/android-tools-31.0.3_p1.ebuild b/dev-util/android-tools/android-tools-31.0.3_p1.ebuild index ba179d04c56f..0f1abac32b14 100644 --- a/dev-util/android-tools/android-tools-31.0.3_p1.ebuild +++ b/dev-util/android-tools/android-tools-31.0.3_p1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -54,6 +54,8 @@ src_prepare() { eapply "${DISTDIR}/${PN}-31.0.3-disable-werror-boringssl.patch" cd "${S}/vendor/boringssl" || die eapply "${S}/patches/boringssl/0011-Disable-Werror.patch" + cd "${S}/vendor/adb" || die + eapply "${FILESDIR}/${PN}-31.0.3_p1-gcc12.patch" cd "${S}" eapply "${DISTDIR}/${PN}-31.0.3_p1-install-e2fsdroid-ext2simg.patch" rm -r patches || die diff --git a/dev-util/android-tools/files/android-tools-31.0.3_p1-gcc12.patch b/dev-util/android-tools/files/android-tools-31.0.3_p1-gcc12.patch new file mode 100644 index 000000000000..aa313daf9042 --- /dev/null +++ b/dev-util/android-tools/files/android-tools-31.0.3_p1-gcc12.patch @@ -0,0 +1,15 @@ +From 752fc3bd9a971858dbb7b51a0ef0289232e67e58 Mon Sep 17 00:00:00 2001 +From: Mike Lothian <mike@fireburn.co.uk> +Date: Sat, 14 May 2022 02:01:18 +0100 +Subject: [PATCH] Add functional include + +--- a/tls/include/adb/tls/tls_connection.h ++++ b/tls/include/adb/tls/tls_connection.h +@@ -19,6 +19,7 @@ + #include <stddef.h> + #include <stdint.h> + ++#include <functional> + #include <string_view> + #include <vector> + |