From patchwork Mon Nov 30 08:46:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106437 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.28571.1796028470161927707 for ; Mon, 30 Nov 2026 00:47:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=xatrOyUy; spf=pass (domain: gmail.com, ip: 209.85.210.170, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-8a06e79e152so4843798b3a.0 for ; Mon, 30 Nov 2026 00:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796028469; x=1796633269; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6xMh2ZtBT0o3v5gToF6+thda2yjqQU7p3UrHjGvkpr8=; b=xatrOyUyVn9FrUuJMZa6L20Qias4drOItVccjaZDrw1jxOJz6HRqIg66jLQPeSvG6u +R6N2FykxvinwGGf1+ZQ33B8X9GDX4yoSCphH1pk62ex9Gx11p6n4LJUfjKgp2dylNZn 0CjS2MCRKZyIuOSwar+8TZwmvQeblyuqIto7eAj8W9EYIFQGvD/sy79nvXP1KkAyppEh yOfT+A+xPcD/Z3IZgOf5NOh8SBrQAGwtA9waXCMFUFnXnPbXYD3G+7uN51c4V1rWnSnJ MtKZfqmobK2Kbky6tz/wklBj10AnwPEJeiGbHC5yvidD5KGYIIURuWBx6d3XYCHJeM5r +luA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028469; x=1796633269; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=6xMh2ZtBT0o3v5gToF6+thda2yjqQU7p3UrHjGvkpr8=; b=cozTZFLjeJRoJRML1c9Rg+NnX9TIDspvONNNG28QkcLpsoHrqKPJNPhAa14JomAUJh fCX5CyLz44NHpXFfTd3LKtR5IJnQpXEaduSLxDBEEWV5OjreoOqZ/i2oA2tgGhC4/JNu 19rPlIpWpeDqkBdEKwclHumR9/yBp2aCnTU4q39EhWVlSLVILaD11Ib7zVLly90zUAd7 PuwXGFjmaSleorKator55ghLy2/GX6BPa4i7Rw2VBw63fpjrGE6cwZPhW8EJF6FiBuX7 AfK43+E2qPQm3XDYITpIaNYcf59WtHQii0TJWdUSukecMaIkVzYNIva+9JkJUr+9tmLT qb+w== X-Gm-Message-State: APuU4Z+hVPW9RNby1PY/A728v5MMGOlGBs3lIZe3ojQi9qkM4H7r1Dr+ zAsOMMoRuY5Ef2Yd5fcTPXEiSBAcCMtk7zxEb1vSGIMejE161tfugpwvVSj5UB7G X-Gm-Gg: AZFdTZeP2HfXao4fviu/19yQR24Gf+9qbscbN/nLt0jr1qhqe4aOP6JXoSjzAHxULx3 EF4npRfL9YfW5DhXKTlD7n7rgDcsRn5Eh0QFs8BhfDKxLaThtgkSpjLIFCuJEI/cuJ66CBvnrxq qfxq1U6IOnvLq75znt+B/a9NXPrgqtyJWJiekigrO5+AYBQ8rTogcz1jq3EcWORge8RTAEvT/09 iU/7mbmXKJ3cYsRQ3vtVP+aN2veWwMrh+YvJ024/Kxcgalb5pmaOHkpa75xzdnyWnERDyxNu0NP VxQLI33137HPLP4AhxoVBxzQxaEOGCVBdg2S+JQgnuLJtXJMVAiLjtJyhU451iV0CW8Wp9KtJk/ +oOaRnDXYqH1RvPwHJQp57KI2gcSfb7D7RCq3xiEiDmwLBISrmL2hsAxxvvbx3vmRZaRxHTMwBw 9bu9F0jXNwAGp2JRg2XoqHdcEb3y9jENdzexWT6OKOtO8b0h/sFLEqFhU96KlISQqON2MiYTGT2 tN/WJOq1eCSeVyLnikLUDd3eE8CuhyRGY9Hj6IhGkRWo5YIcrJGS5bJzyqDjPtI1dKCHDzQYM6K 0HrWMOQ2meiozo9DTQDmL5XO7okfPCGICWY15dkkfubAOEEBa4hz34eLDBj1qn3+VIFHZhObVNB 7K6Vy5iXJgM6hlmCyJau5pHadaPamt8HvKKMQf44sETaFuqDwA31RD9aHeBTRD+TNLNiZfbVOjl qJqwkbvPR70KdDWrkLH9yftHnBifQubr9Xq8tuOFFAHgkwl88XnoKpQcr3ZjowiG/p12OQJtoSY rPGoPkKw8cigVTRHRxzBjaHVLQyVQZenq0PVhcROunnWrEBUx+gM4JzLxlR83GbYbEKNYE+JtpZ HY/o X-Received: by 2002:a05:6a00:409b:b0:89e:7bfa:f86e with SMTP id d2e1a72fcca58-8c87bac50cfmr29187283b3a.13.1796028469454; Mon, 30 Nov 2026 00:47:49 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e45eccsm17553649b3a.31.2026.11.30.00.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 00:47:49 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 63/72] breakpad: Upgrade 2024.02.16 -> 2026.07.24 Date: Mon, 30 Nov 2026 00:46:34 -0800 Message-ID: <20261130084643.1500716-64-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> References: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 08:47:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133500 Two years of changes (112 commits), among them: - DWARF: DWARF 5 nested Objective-C declarations, vendor-defined content descriptions skipped, a stack buffer overflow fixed for split DWARF and better error messages. - minidump_stackwalk can dump stack pointers from the raw stack and print a single thread by index, and prints the crash argument again. - Linux: padding segments are skipped when merging mappings, a RISC-V gp fix in breakpad_getcontext, and misaligned-pointer and integer overflow fixes. - C++23 and C++ module build fixes; std::string is spelled out everywhere and common/using_std_string.h is gone, so stop installing it. Upstream replaced its DEPS file with git submodules and dropped the unused protobuf dependency. Drop the protobuf SRC_URI entry and move the googletest and lss entries to the submodule paths and revisions breakpad records: googletest v1.16.0 (6910c9d91658, on the v1.16.x branch) in src/testing and linux-syscall-support 29164a80da4d in src/third_party/lss. Refresh 0003-Dont-include-stab.h.patch (the includes gained an __APPLE__ block) and 0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch (the out-of-line definitions use std::string). Built for glibc (target and native) and musl. License-Update: LICENSE drops the libdisasm section and adds notices for src/common/md5.cc (public domain), the macOS mach headers and the autotools-generated files; the code stays BSD-3-Clause. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...ove-CreateModule-out-of-line-to-fix-.patch | 40 +++++++--------- .../breakpad/0003-Dont-include-stab.h.patch | 46 ++++++++++--------- ...d_2024.02.16.bb => breakpad_2026.07.24.bb} | 20 ++++---- 3 files changed, 51 insertions(+), 55 deletions(-) rename meta-oe/recipes-devtools/breakpad/{breakpad_2024.02.16.bb => breakpad_2026.07.24.bb} (89%) diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch index baa5ca2a58..f7d1bc9f7f 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch +++ b/meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch @@ -29,67 +29,61 @@ vtables. Upstream-Status: Submitted [https://github.com/google/breakpad] Signed-off-by: Khem Raj --- - src/processor/basic_source_line_resolver.cc | 5 +++++ - src/processor/fast_source_line_resolver.cc | 5 +++++ - src/processor/module_factory.h | 8 ++------ - 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/processor/basic_source_line_resolver.cc b/src/processor/basic_source_line_resolver.cc -index 1111111..2222222 100644 +index 2d527a5..5305b04 100644 --- a/src/processor/basic_source_line_resolver.cc +++ b/src/processor/basic_source_line_resolver.cc -@@ -108,6 +108,11 @@ static const char* kWhitespace = " \r\n"; +@@ -109,6 +109,11 @@ static const char* kWhitespace = " \r\n"; static const int kMaxErrorsPrinted = 5; static const int kMaxErrorsBeforeBailing = 100; - + +BasicSourceLineResolver::Module* BasicModuleFactory::CreateModule( -+ const string& name) const { ++ const std::string& name) const { + return new BasicSourceLineResolver::Module(name); +} + BasicSourceLineResolver::BasicSourceLineResolver() : SourceLineResolverBase(new BasicModuleFactory) { } - + diff --git a/src/processor/fast_source_line_resolver.cc b/src/processor/fast_source_line_resolver.cc -index 1111111..2222222 100644 +index 4506cd7..28676b5 100644 --- a/src/processor/fast_source_line_resolver.cc +++ b/src/processor/fast_source_line_resolver.cc @@ -60,6 +60,11 @@ using std::unique_ptr; - + namespace google_breakpad { - + +FastSourceLineResolver::Module* FastModuleFactory::CreateModule( -+ const string& name) const { ++ const std::string& name) const { + return new FastSourceLineResolver::Module(name); +} + FastSourceLineResolver::FastSourceLineResolver() : SourceLineResolverBase(new FastModuleFactory) { } - + diff --git a/src/processor/module_factory.h b/src/processor/module_factory.h -index 1111111..2222222 100644 +index 215b8d4..1a491d1 100644 --- a/src/processor/module_factory.h +++ b/src/processor/module_factory.h @@ -52,18 +52,14 @@ class BasicModuleFactory : public ModuleFactory { public: virtual ~BasicModuleFactory() { } virtual BasicSourceLineResolver::Module* CreateModule( -- const string& name) const { +- const std::string& name) const { - return new BasicSourceLineResolver::Module(name); - } -+ const string& name) const; ++ const std::string& name) const; }; - + class FastModuleFactory : public ModuleFactory { public: virtual ~FastModuleFactory() { } virtual FastSourceLineResolver::Module* CreateModule( -- const string& name) const { +- const std::string& name) const { - return new FastSourceLineResolver::Module(name); - } -+ const string& name) const; ++ const std::string& name) const; }; - + } // namespace google_breakpad --- -2.49.0 diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0003-Dont-include-stab.h.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0003-Dont-include-stab.h.patch index 81844d0d66..52fa215d37 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad/0003-Dont-include-stab.h.patch +++ b/meta-oe/recipes-devtools/breakpad/breakpad/0003-Dont-include-stab.h.patch @@ -7,11 +7,22 @@ Signed-off-by: Khem Raj --- Upstream-Status: Pending - src/common/stabs_reader.cc | 1 - - src/common/stabs_reader.h | 12 +++++++++++- - src/common/stabs_reader_unittest.cc | 1 - - 3 files changed, 11 insertions(+), 3 deletions(-) +diff --git a/configure.ac b/configure.ac +index 0258c11..0be1026 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -61,7 +61,7 @@ fi + + AC_SYS_LARGEFILE + AX_PTHREAD +-AC_CHECK_HEADERS([a.out.h sys/mman.h sys/random.h]) ++AC_CHECK_HEADERS([a.out.h stab.h sys/mman.h sys/random.h]) + AC_CHECK_FUNCS([arc4random getcontext getrandom memfd_create]) + AM_CONDITIONAL([HAVE_GETCONTEXT], [test "x$ac_cv_func_getcontext" = xyes]) + AM_CONDITIONAL([HAVE_MEMFD_CREATE], [test "x$ac_cv_func_memfd_create" = xyes]) +diff --git a/src/common/stabs_reader.cc b/src/common/stabs_reader.cc +index f1bbbea..7e79436 100644 --- a/src/common/stabs_reader.cc +++ b/src/common/stabs_reader.cc @@ -38,7 +38,9 @@ @@ -21,9 +32,11 @@ Upstream-Status: Pending +#ifdef HAVE_STAB_H #include +#endif - #include - - #include + #ifdef __APPLE__ + #include + #endif +diff --git a/src/common/stabs_reader.h b/src/common/stabs_reader.h +index c8b297b..3a52d38 100644 --- a/src/common/stabs_reader.h +++ b/src/common/stabs_reader.h @@ -54,6 +54,30 @@ @@ -57,6 +70,8 @@ Upstream-Status: Pending #include #include +diff --git a/src/common/stabs_reader_unittest.cc b/src/common/stabs_reader_unittest.cc +index 35953df..3c53d9b 100644 --- a/src/common/stabs_reader_unittest.cc +++ b/src/common/stabs_reader_unittest.cc @@ -36,7 +36,9 @@ @@ -66,17 +81,6 @@ Upstream-Status: Pending +#ifdef HAVE_STAB_H #include +#endif - #include - #include - #include ---- a/configure.ac -+++ b/configure.ac -@@ -61,7 +61,7 @@ fi - - AC_SYS_LARGEFILE - AX_PTHREAD --AC_CHECK_HEADERS([a.out.h sys/mman.h sys/random.h]) -+AC_CHECK_HEADERS([a.out.h stab.h sys/mman.h sys/random.h]) - AC_CHECK_FUNCS([arc4random getcontext getrandom memfd_create]) - AM_CONDITIONAL([HAVE_GETCONTEXT], [test "x$ac_cv_func_getcontext" = xyes]) - AM_CONDITIONAL([HAVE_MEMFD_CREATE], [test "x$ac_cv_func_memfd_create" = xyes]) + #ifdef __APPLE__ + #include + #endif diff --git a/meta-oe/recipes-devtools/breakpad/breakpad_2024.02.16.bb b/meta-oe/recipes-devtools/breakpad/breakpad_2026.07.24.bb similarity index 89% rename from meta-oe/recipes-devtools/breakpad/breakpad_2024.02.16.bb rename to meta-oe/recipes-devtools/breakpad/breakpad_2026.07.24.bb index cbf6e458dc..b8a8c2fff4 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad_2024.02.16.bb +++ b/meta-oe/recipes-devtools/breakpad/breakpad_2026.07.24.bb @@ -6,7 +6,7 @@ SUMMARY = "An open-source multi-platform crash reporting system" DESCRIPTION = "Breakpad is a library and tool suite that allows you to distribute an application to users with compiler-provided debugging information removed, record crashes in compact \"minidump\" files, send them back to your server, and produce C and C++ stack traces from these minidumps. " HOMEPAGE = "https://code.google.com/p/google-breakpad/" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=07aeb530115539d62cacf9942fa60cac" +LIC_FILES_CHKSUM = "file://LICENSE;md5=97b64ca2663586bce794ede173c0aa04" SECTION = "libs" inherit autotools @@ -18,20 +18,19 @@ BBCLASSEXTEND = "native" PE = "2" -SRCREV_FORMAT = "breakpad_gtest_protobuf_lss" +SRCREV_FORMAT = "breakpad_gtest_lss" -SRCREV_breakpad = "f80f2888031b0570783011476a5e862fb7d848a1" -#v1.11.0 -SRCREV_gtest = "e2239ee6043f73722e7aa812a459f54a28552929" -SRCREV_protobuf = "cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac" -SRCREV_lss = "9719c1e1e676814c456b55f5f070eabad6709d31" +# Submodules listed in .gitmodules, at the revisions breakpad pins +SRCREV_breakpad = "69e9aada412e81575a95d0d94f4592fe1b8dfc15" +# v1.16.0 +SRCREV_gtest = "6910c9d9165801d8827d628cb72eb7ea9dd538c5" +SRCREV_lss = "29164a80da4d41134950d76d55199ea33fbb9613" UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)" SRC_URI = "git://github.com/google/breakpad;name=breakpad;branch=main;protocol=https;tag=v${PV} \ - git://github.com/google/googletest.git;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/testing/gtest;name=gtest;branch=main;protocol=https \ - git://github.com/protocolbuffers/protobuf.git;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/protobuf/protobuf;name=protobuf;branch=main;protocol=https \ - git://chromium.googlesource.com/linux-syscall-support;protocol=https;branch=main;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/lss;name=lss \ + git://github.com/google/googletest.git;name=gtest;branch=v1.16.x;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/testing \ + git://chromium.googlesource.com/linux-syscall-support;name=lss;branch=main;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/third_party/lss \ file://0001-include-sys-reg.h-to-get-__WORDSIZE-on-musl-libc.patch \ file://0003-Fix-conflict-between-musl-libc-dirent.h-and-lss.patch \ file://0001-Turn-off-sign-compare-for-musl-libc.patch \ @@ -76,7 +75,6 @@ do_install:append() { install -d ${D}${includedir}/breakpad/common install -m 0644 ${S}/src/common/memory_allocator.h ${D}${includedir}/breakpad/common/memory_allocator.h install -m 0644 ${S}/src/common/scoped_ptr.h ${D}${includedir}/breakpad/common/scoped_ptr.h - install -m 0644 ${S}/src/common/using_std_string.h ${D}${includedir}/breakpad/common/using_std_string.h install -d ${D}${includedir}/breakpad/google_breakpad/common install -m 0644 ${S}/src/google_breakpad/common/breakpad_types.h ${D}${includedir}/breakpad/google_breakpad/common/breakpad_types.h