2 Commits

Author SHA256 Message Date
Petr Tesarik
46ed76b5d4 Update patch headers
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-05-29 10:57:11 +02:00
Petr Tesarik
efcbeda7bc Fix build for riscv64 and 32-bit arm
Add the missing definitions for two more supported targets.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-05-29 10:19:02 +02:00
5 changed files with 52 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
From: Petr Tesarik <ptesarik@suse.com>
Subject: Fix build for ppc64le and arm64
Upstream: submitted, https://github.com/fujitsu/crash-trace/pull/3
Upstream: merged
Git-commit: 17c35d075f067d80fee112ae18365b8defa2ca5a
Build fails for AArch64 and little-endian IBM POWER, because TARGET
is undefined, and the compiler complains like this:

21
crash-trace-fix-arm.patch Normal file
View File

@@ -0,0 +1,21 @@
From: Petr Tesarik <ptesarik@suse.com>
Subject: Fix build for 32-bit arm
Upstream: submitted, https://github.com/fujitsu/crash-trace/pull/5
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64)
TARGET=ARM64
TARGET_CFLAGS=
endif
+ifeq ($(patsubst arm%,arm,$(shell arch)), arm)
+ TARGET=ARM
+ TARGET_CFLAGS=
+endif
INCDIR=/usr/include/crash

View File

@@ -0,0 +1,21 @@
From: Petr Tesarik <ptesarik@suse.com>
Subject: Fix build for 32-bit arm
Upstream: submitted, https://github.com/fujitsu/crash-trace/pull/5
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,10 @@ ifeq ($(patsubst arm%,arm,$(shell arch))
TARGET=ARM
TARGET_CFLAGS=
endif
+ifeq ($(shell arch), riscv64)
+ TARGET=RISCV64
+ TARGET_CFLAGS=
+endif
INCDIR=/usr/include/crash

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 29 08:10:33 UTC 2025 - Petr Tesařík <ptesarik@suse.com>
- crash-trace-fix-arm.patch: Fix build for 32-bit Arm.
- crash-trace-fix-riscv64.patch: Fix build for RISCV64.
-------------------------------------------------------------------
Sat Nov 19 20:53:37 UTC 2022 - Petr Tesařík <ptesarik@suse.com>

View File

@@ -25,6 +25,8 @@ Group: Development/Tools/Debuggers
URL: https://github.com/fujitsu/crash-trace
Source: https://github.com/fujitsu/crash-trace/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: %{name}-fix-aarch64-ppc64le.patch
Patch2: %{name}-fix-arm.patch
Patch3: %{name}-fix-riscv64.patch
BuildRequires: crash-devel
Requires: trace-cmd