Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2026 15:21:51 +0000
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1d95d8eda76d - main - devel/perfetto: fix build on powerpc*
Message-ID:  <6a70b20f.3c981.76911ee7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by pkubaj:

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

commit 1d95d8eda76dd709b26b031b6357afc7577ace50
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-08-03 08:22:27 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
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 = ""
+   }
+ }


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a70b20f.3c981.76911ee7>