git: 1d95d8eda76d - main - devel/perfetto: fix build on powerpc*

Piotr Kubaj <[email protected]> Mon, 03 Aug 2026 15:21:51 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d95d8eda76dd709b26b031b6357afc7577ace50

commit 1d95d8eda76dd709b26b031b6357afc7577ace50
Author:     Piotr Kubaj <[email protected]>
AuthorDate: 2026-08-03 08:22:27 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2026-08-03 15:21:24 +0000

    devel/perfetto: fix build on powerpc*
    
    Currently build requires the target architecture to be
    Android-supported. That doesn't make sense, since the tools
    this port builds are to run on the target system, not Android.
---
 .../perfetto/files/patch-gn_standalone_android.gni | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/devel/perfetto/files/patch-gn_standalone_android.gni b/devel/perfetto/files/patch-gn_standalone_android.gni
new file mode 100644
index 000000000000..006ec69878e4
--- /dev/null
+++ b/devel/perfetto/files/patch-gn_standalone_android.gni
@@ -0,0 +1,25 @@
+--- gn/standalone/android.gni.orig	2026-08-03 07:54:19 UTC
++++ gn/standalone/android.gni
+@@ -44,7 +44,12 @@ declare_args() {
+     android_abi_target = "aarch64-linux-android"
+     android_llvm_arch = "aarch64"
+   } else {
+-    assert(false, "Need android libgcc support for this arch.")
++    # This file is imported unconditionally (for android_api_level), so a CPU
++    # that Android does not target must not break non-Android builds. These
++    # values are unused unless is_android.
++    assert(!is_android, "Need android libgcc support for this arch.")
++    android_abi_target = ""
++    android_llvm_arch = ""
+   }
+ 
+   if (current_cpu == "x86") {
+@@ -56,6 +61,7 @@ declare_args() {
+   } else if (current_cpu == "arm64") {
+     android_app_abi = "arm64-v8a"
+   } else {
+-    assert(false, "Unknown ABI: " + current_cpu)
++    assert(!is_android, "Unknown ABI: " + current_cpu)
++    android_app_abi = ""
+   }
+ }