public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perfetto] rawhide: Update to 59.1 (fedora#2561537).
@ 2026-10-31 19:05 Jonathan Steffan
0 siblings, 0 replies; only message in thread
From: Jonathan Steffan @ 2026-10-31 19:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perfetto
Branch : rawhide
Commit : f21e6637912917ebeeb524d11fee8eece6fe3f73
Author : Jonathan Steffan <jsteffan@fedoraproject.org>
Date : 2026-10-31T12:49:57-06:00
Stats : +24/-72 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/perfetto/c/f21e6637912917ebeeb524d11fee8eece6fe3f73?branch=rawhide
Log:
Update to 59.1 (fedora#2561537).
---
diff --git a/.gitignore b/.gitignore
index 37b22ed..11a5c57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
/perfetto-v49.0.tar.gz
/perfetto-57.2.tar.gz
/perfetto-cpp-sdk-src-v57.2.zip
+/perfetto-59.1.tar.gz
+/perfetto-cpp-sdk-src-v59.1.zip
diff --git a/perfetto-system-gtest.patch b/perfetto-system-gtest.patch
index 95ffe64..dac0695 100644
--- a/perfetto-system-gtest.patch
+++ b/perfetto-system-gtest.patch
@@ -1,7 +1,7 @@
From: Fedora
Subject: [PATCH] gn: allow linking the unit tests against the system GoogleTest
-Same rationale as the system RE2 patch: GoogleTest is only available as a
+GoogleTest is only available as a
hermetic buildtools/googletest checkout fetched by tools/install-build-deps,
so distributions building from a release tarball cannot build the unit tests
at all and have to ship with enable_perfetto_unittests=false.
@@ -11,17 +11,17 @@ Add a perfetto_use_system_gtest argument resolving //gn:gtest_and_gmock and
--- a/gn/perfetto.gni
+++ b/gn/perfetto.gni
-@@ -475,6 +475,10 @@
- # one. Combine with perfetto_use_pkgconfig to pick up the abseil deps.
+@@ -489,6 +489,10 @@
+ # from pkg-config instead of the hermetic one.
perfetto_use_system_re2 = false
+ # Uses the system version of GoogleTest/GoogleMock instead of the hermetic
+ # one, for building the unit tests.
+ perfetto_use_system_gtest = false
+
- perfetto_use_system_zlib = false
-
- # Set by the amalgamated SDK build. Defaults the optional zlib/re2 features
+ # Used by CrOS system builds. Uses the system version of sqlite
+ # from /usr/include instead of the hermetic one.
+ perfetto_use_system_sqlite = false
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -199,10 +199,44 @@
diff --git a/perfetto-system-re2.patch b/perfetto-system-re2.patch
deleted file mode 100644
index b750142..0000000
--- a/perfetto-system-re2.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From: Fedora
-Subject: [PATCH] gn: allow linking against the system RE2
-
-Perfetto only knows how to build RE2 from the hermetic buildtools/re2
-checkout, which is fetched by tools/install-build-deps and is therefore
-absent from the release tarballs. Distributions that ship their own RE2
-have to disable enable_perfetto_re2 entirely and fall back to std::regex.
-
-Add a perfetto_use_system_re2 argument that resolves //gn:re2 to the
-system library, mirroring what perfetto_use_system_protobuf already does
-for protobuf. When perfetto_use_pkgconfig is set the flags come from
-pkg-config, which also pulls in the abseil that modern RE2 requires.
-
---- a/gn/perfetto.gni
-+++ b/gn/perfetto.gni
-@@ -471,6 +471,10 @@
- # from /usr/include instead of the hermetic one.
- perfetto_use_system_sqlite = false
-
-+ # Uses the system version of RE2 from /usr/include instead of the hermetic
-+ # one. Combine with perfetto_use_pkgconfig to pick up the abseil deps.
-+ perfetto_use_system_re2 = false
-+
- perfetto_use_system_zlib = false
-
- # Set by the amalgamated SDK build. Defaults the optional zlib/re2 features
---- a/gn/BUILD.gn
-+++ b/gn/BUILD.gn
-@@ -516,9 +516,27 @@
- }
- }
-
-+# pkg_deps selects the appropriate pkg-config based on current_toolchain and
-+# this is a no-op if |perfetto_use_pkgconfig| is false.
-+pkg_config("pkgconfig_re2") {
-+ pkg_deps = [ "re2" ]
-+}
-+
-+config("system_re2") {
-+ if (perfetto_use_pkgconfig) {
-+ configs = [ ":pkgconfig_re2" ]
-+ } else {
-+ # Fallback if pkg-config isn't enabled.
-+ libs = [ "re2" ]
-+ }
-+ defines = [ "RE2_USE_ABSL" ]
-+}
-+
- if (enable_perfetto_re2) {
- group("re2") {
-- if (perfetto_root_path == "//") {
-+ if (perfetto_use_system_re2) {
-+ public_configs = [ ":system_re2" ]
-+ } else if (perfetto_root_path == "//") {
- public_deps = [ "//buildtools:re2" ]
- } else {
- # This part will be overridden by the various build generators (Android.bp,
diff --git a/perfetto-versioned-soname.patch b/perfetto-versioned-soname.patch
index 6c9f44a..7074a55 100644
--- a/perfetto-versioned-soname.patch
+++ b/perfetto-versioned-soname.patch
@@ -13,9 +13,9 @@ produce both the versioned file name and the matching SONAME.
--- a/gn/perfetto.gni
+++ b/gn/perfetto.gni
-@@ -479,6 +479,11 @@
- # one, for building the unit tests.
- perfetto_use_system_gtest = false
+@@ -497,6 +497,11 @@
+ # from /usr/include instead of the hermetic one.
+ perfetto_use_system_sqlite = false
+ # Suffix appended to the "so" output extension of libperfetto.so, e.g.
+ # "0.1" produces libperfetto.so.0.1 with a matching SONAME. Empty (the
@@ -24,7 +24,7 @@ produce both the versioned file name and the matching SONAME.
+
perfetto_use_system_zlib = false
- # Set by the amalgamated SDK build. Defaults the optional zlib/re2 features
+ # Used by NixOS system builds. Uses the system version of zstd
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -250,6 +250,10 @@
diff --git a/perfetto.spec b/perfetto.spec
index a1aa629..14e00ca 100644
--- a/perfetto.spec
+++ b/perfetto.spec
@@ -10,7 +10,7 @@ library for analyzing traces using SQL and a web-based UI to visualize and
explore multi-GB traces.}
Name: perfetto
-Version: 57.2
+Version: 59.1
Release: %autorelease
Summary: System profiling, app tracing and trace analysis
@@ -24,18 +24,18 @@ Source3: %{forgeurl}/releases/download/%{tag}/perfetto-cpp-sdk-src.zip#/%
Source4: perfetto-traced.service
Source5: perfetto-traced-probes.service
-# system re2
-Patch0: perfetto-system-re2.patch
# system gtest
Patch1: perfetto-system-gtest.patch
# versioned SONAME; bump it when abi-compliance-checker reports a break.
Patch2: perfetto-versioned-soname.patch
BuildRequires: chrpath
+BuildRequires: expat-devel
BuildRequires: gcc-c++
BuildRequires: gmock-devel
BuildRequires: gn
BuildRequires: gtest-devel
+BuildRequires: libzstd-devel
BuildRequires: ninja-build
BuildRequires: pandoc
BuildRequires: pkgconf-pkg-config
@@ -86,10 +86,13 @@ gn gen build --args="\
skip_buildtools_check=true \
enable_perfetto_integration_tests=false \
perfetto_use_pkgconfig=true \
+ enable_perfetto_trace_processor_linenoise=false \
+ perfetto_use_system_expat=true \
perfetto_use_system_gtest=true \
perfetto_use_system_protobuf=true \
perfetto_use_system_re2=true \
perfetto_use_system_zlib=true \
+ perfetto_use_system_zstd=true \
perfetto_enable_git_rev_version_header=false \
perfetto_shared_lib_soname_suffix=\"%{soname_suffix}\" \
extra_cflags=\"${CFLAGS}\" \
@@ -99,6 +102,10 @@ gn gen build --args="\
cxx=\"${CXX}\" \
"
+# Some targets (e.g. //src/ipc:common) lack an ordering dependency on the
+# generated protobuf headers, so generate them all up front.
+%ninja_build -C build $(ninja -C build -t targets all | sed -n 's/^\(gen\/.*\.h\):.*/\1/p')
+
%ninja_build -C build perfetto traced traced_probes tracebox \
perfetto_base_unittests perfetto_tracing_unittests
pandoc docs/reference/perfetto-cli.md -s -t man --shift-heading-level-by=-1 \
diff --git a/sources b/sources
index 0cca8f4..bfd1fbe 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (perfetto-57.2.tar.gz) = f1e46d72512b9f006357699e8d3e405fece0cf3f7be84504509618fb6b8a1eceb9e9e48eaae5ee1f45d6f461ead88a575e0b3f0ce8091d2c9567a8bd8bafe2b6
-SHA512 (perfetto-cpp-sdk-src-v57.2.zip) = 38abe1c89e075bd1d1f37396f7c5ba0af55c253747e79be7856e902e437a53e146a1bba4965bf0f3bd5d10aead7f9adada050fcb182010cf5fc15712ace1f5f4
+SHA512 (perfetto-59.1.tar.gz) = 9223d446fddf83ebf0bf2a9553a77493939dca651ea70d58cebe2b9b57026e24ac9e2d5af0b12689dfeaf6bd01e3f6e411305b3b2158d043e2377bdbaf3b5b42
+SHA512 (perfetto-cpp-sdk-src-v59.1.zip) = 0c1cd02f83ebbd7790fe06dfe891121ecdbf0d9a09cfbb5c0ef5d434babbaafefaee2d2cf6b40c61ebe6df5764480ff231826a82e11850b3cd79ed7eab648eee
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-31 19:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31 19:05 [rpms/perfetto] rawhide: Update to 59.1 (fedora#2561537) Jonathan Steffan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox