diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-08-25 00:16:22 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-08-25 00:21:33 -0700 |
commit | a0878db1c9b17cf2500b2f8ad434562042cbb1d9 (patch) | |
tree | 7ff9b72f80f61c74fbc271f561b63b1824c57940 /dev-util/android-tools | |
parent | net-im/zoom: Update Qt version for warning message (diff) | |
download | gentoo-a0878db1c9b17cf2500b2f8ad434562042cbb1d9.tar.gz gentoo-a0878db1c9b17cf2500b2f8ad434562042cbb1d9.tar.bz2 gentoo-a0878db1c9b17cf2500b2f8ad434562042cbb1d9.zip |
dev-util/android-tools: Re-apply LTO-unsafe fix
Re-apply the LTO-unsafe fix from commit
0c03b34a1057b2859947e5c1f8c592ff412babf3.
Fixes: https://github.com/gentoo/gentoo/pull/38069
Closes: https://bugs.gentoo.org/937769
Reported-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-util/android-tools')
-rw-r--r-- | dev-util/android-tools/android-tools-35.0.1.ebuild | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/dev-util/android-tools/android-tools-35.0.1.ebuild b/dev-util/android-tools/android-tools-35.0.1.ebuild index 0ff6f3bbb94f..9dacbecf215d 100644 --- a/dev-util/android-tools/android-tools-35.0.1.ebuild +++ b/dev-util/android-tools/android-tools-35.0.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake python-r1 +inherit cmake flag-o-matic python-r1 DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)" HOMEPAGE="https://github.com/nmeum/android-tools/ https://developer.android.com/" @@ -54,11 +54,26 @@ src_prepare() { eapply "${S}/patches/libziparchive/0004-Remove-the-useless-dependency-on-gtest.patch" cd "${S}" || die + + # why do we depend on libandroidfw? It is never linked to or used. + # https://github.com/nmeum/android-tools/issues/148 + sed -i '/libandroidfw/d' vendor/CMakeLists.txt || die + rm -r vendor/base || die + rm -r patches || die cmake_src_prepare } src_configure() { + # -Werror=odr, -Werror=lto-type-mismatch + # + # https://bugs.gentoo.org/858311 + # https://issuetracker.google.com/issues/347247969 + # + # and in vendored f2fs-tools copy: + # https://bugs.gentoo.org/863896 + filter-lto + local mycmakeargs=( # Statically link the bundled boringssl -DCMAKE_BUILD_TYPE=Release \ |