From 4fa5ae827777f03617452f11494764d31be4b64e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 7 Aug 2026 05:56:55 +0000 Subject: [PATCH] perfetto: fix protobuf do_fetch failure, pin to 31.x maintenance branch The bundled protobuf dependency pins SRCREV 74211c0dfc2777318ab53c2cd2c317a2ef9012de ("Updating version.json and repo version numbers to: 31.1", i.e. protobuf v31.1), but the SRC_URI specified branch=main. That commit lives on the 31.x maintenance branch and is not an ancestor of main, so do_fetch fails: ERROR: perfetto-57.2-r0 do_fetch: Fetcher failure: Unable to find revision 74211c0dfc2777318ab53c2cd2c317a2ef9012de in branch main even from upstream Point the protobuf SRC_URI at branch=31.x, which contains the pinned commit. Verified via `bitbake -c fetch perfetto`: all sub-fetches, including protobuf, now succeed. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/perfetto/perfetto.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-devtools/perfetto/perfetto.bb b/meta-oe/recipes-devtools/perfetto/perfetto.bb index 9dc6b6035d..ea4f10cc05 100644 --- a/meta-oe/recipes-devtools/perfetto/perfetto.bb +++ b/meta-oe/recipes-devtools/perfetto/perfetto.bb @@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b06e43f2e368eb8663632d529232353 \ # Dependencies from perfetto/tools/install-build-deps SRC_URI:append = " \ - git://github.com/protocolbuffers/protobuf.git;branch=main;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/protobuf;name=protobuf \ + git://github.com/protocolbuffers/protobuf.git;branch=31.x;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/protobuf;name=protobuf \ git://github.com/abseil/abseil-cpp.git;branch=master;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/abseil-cpp;name=abseil \ git://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/libcxx;branch=main;name=libcxx \ git://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/buildtools/libcxxabi;branch=main;name=libcxxabi \