From a6b815785f4dfc62d48f4bc8e3e704ef376485f6 Mon Sep 17 00:00:00 2001 From: Willow Date: Fri, 2 Jan 2026 15:51:27 -0700 Subject: [PATCH] add: breakpad (#8851) --- anda/lib/breakpad/anda.hcl | 5 +++ anda/lib/breakpad/breakpad.spec | 62 +++++++++++++++++++++++++++++++++ anda/lib/breakpad/update.rhai | 1 + 3 files changed, 68 insertions(+) create mode 100644 anda/lib/breakpad/anda.hcl create mode 100644 anda/lib/breakpad/breakpad.spec create mode 100644 anda/lib/breakpad/update.rhai diff --git a/anda/lib/breakpad/anda.hcl b/anda/lib/breakpad/anda.hcl new file mode 100644 index 0000000000..9242fd816b --- /dev/null +++ b/anda/lib/breakpad/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "breakpad.spec" + } +} diff --git a/anda/lib/breakpad/breakpad.spec b/anda/lib/breakpad/breakpad.spec new file mode 100644 index 0000000000..8438611cab --- /dev/null +++ b/anda/lib/breakpad/breakpad.spec @@ -0,0 +1,62 @@ +Name: breakpad +Version: 2024.02.16 +Release: 1%?dist +Summary: Google Breakpad crash-reporting system +License: BSD-3-Clause +Group: System +URL: https://github.com/google/breakpad +Source0: https://github.com/google/breakpad/archive/refs/tags/v%{version}.tar.gz +Source1: https://chromium.googlesource.com/linux-syscall-support/+archive/refs/heads/main.tar.gz#/lss.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(gmock) +BuildRequires: pkgconfig(gtest) +BuildRequires: pkgconfig(zlib) +BuildRequires: anda-srpm-macros + +Packager: Willow Reed (willow@willowidk.dev) + +%description +A set of client and server components which implement a crash-reporting system. + +%package devel +Requires: %{name} = %{evr} +%pkg_devel_files +%{_libdir}/libbreakpad.a +%{_libdir}/libbreakpad_client.a + +%prep +%autosetup -n breakpad-%{version} +mkdir -p src/third_party/lss +cd src/third_party/lss +tar -xzf %{SOURCE1} --strip-components=0 + +%build +export CFLAGS="$CFLAGS -Wno-error" +export CXXFLAGS="$CXXFLAGS -Wno-error" + +%configure +%make_build + +%install +%make_install + +rm -rf %{buildroot}%{_docdir}/breakpad-0.1 + +%files +%license LICENSE +%doc README.md AUTHORS ChangeLog INSTALL NEWS +%{_bindir}/core2md +%{_bindir}/dump_sym* +%{_bindir}/microdump_stackwalk +%{_bindir}/minidump-2-core +%{_bindir}/minidump_dump +%{_bindir}/minidump_stackwalk +%{_bindir}/minidump_upload +%{_bindir}/pid2md +%{_bindir}/sym_upload +%{_libexecdir}/core_handler + +%changelog +* Fri Jan 02 2026 Willow Reed +- Initial commit \ No newline at end of file diff --git a/anda/lib/breakpad/update.rhai b/anda/lib/breakpad/update.rhai new file mode 100644 index 0000000000..df846a57b8 --- /dev/null +++ b/anda/lib/breakpad/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("https://github.com/google/breakpad")); \ No newline at end of file