Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package backward-cpp for openSUSE:Factory checked in at 2022-10-04 20:38:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/backward-cpp (Old) and /work/SRC/openSUSE:Factory/.backward-cpp.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "backward-cpp" Tue Oct 4 20:38:13 2022 rev:5 rq:1007895 version:1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/backward-cpp/backward-cpp.changes 2022-09-29 18:12:16.599128593 +0200 +++ /work/SRC/openSUSE:Factory/.backward-cpp.new.2275/backward-cpp.changes 2022-10-04 20:38:17.528964600 +0200 @@ -1,0 +2,6 @@ +Tue Oct 4 08:18:56 UTC 2022 - Guillaume GARDET <[email protected]> + +- Add patch to fix test on aarch64: + * fix-test-on-aarch64.patch + +------------------------------------------------------------------- New: ---- fix-test-on-aarch64.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ backward-cpp.spec ++++++ --- /var/tmp/diff_new_pack.0qk6f3/_old 2022-10-04 20:38:17.956965208 +0200 +++ /var/tmp/diff_new_pack.0qk6f3/_new 2022-10-04 20:38:17.960965214 +0200 @@ -24,6 +24,8 @@ Group: Development/Libraries/C and C++ URL: https://github.com/bombela/backward-cpp Source: https://github.com/bombela/backward-cpp/archive/v%{version}.tar.gz#/backward-cpp-%{version}.tar.gz +# PATCH-FIX-UPSTREAM - https://github.com/bombela/backward-cpp/commit/84bc203529c8f355308f13defe1b86e862f0ce0d +Patch1: fix-test-on-aarch64.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -41,7 +43,7 @@ Development files for backward-cpp, a stack trace printer for C++. %prep -%autosetup -n backward-cpp-%{version} +%autosetup -p1 -n backward-cpp-%{version} %build # LIBDIR is only used for the CMake Config files, and ++++++ fix-test-on-aarch64.patch ++++++ >From 84bc203529c8f355308f13defe1b86e862f0ce0d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro <[email protected]> Date: Fri, 29 Oct 2021 12:51:55 +0200 Subject: [PATCH] Fix tests on aarch64 and mips architecture The divide_by_zero is meant to run if both __aarch64__ and __mips__ are not defined, meaning that the test is being compiled on any other architecture. --- test/suicide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suicide.cpp b/test/suicide.cpp index aa8022c..e694c6f 100644 --- a/test/suicide.cpp +++ b/test/suicide.cpp @@ -58,7 +58,7 @@ void abort_abort_I_repeat_abort_abort() { TEST_ABORT(calling_abort) { abort_abort_I_repeat_abort_abort(); } // aarch64 and mips does not trap Division by zero -#if !defined(__aarch64__) || !defined(__mips__) +#if !defined(__aarch64__) && !defined(__mips__) volatile int zero = 0; int divide_by_zero() {
