forked from pool/crash-trace
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
46ed76b5d4
|
||
|
|
efcbeda7bc
|
@@ -1,6 +1,7 @@
|
|||||||
From: Petr Tesarik <ptesarik@suse.com>
|
From: Petr Tesarik <ptesarik@suse.com>
|
||||||
Subject: Fix build for ppc64le and arm64
|
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
|
Build fails for AArch64 and little-endian IBM POWER, because TARGET
|
||||||
is undefined, and the compiler complains like this:
|
is undefined, and the compiler complains like this:
|
||||||
|
|||||||
21
crash-trace-fix-arm.patch
Normal file
21
crash-trace-fix-arm.patch
Normal 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
|
||||||
|
|
||||||
21
crash-trace-fix-riscv64.patch
Normal file
21
crash-trace-fix-riscv64.patch
Normal 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
|
||||||
|
|
||||||
@@ -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>
|
Sat Nov 19 20:53:37 UTC 2022 - Petr Tesařík <ptesarik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ Group: Development/Tools/Debuggers
|
|||||||
URL: https://github.com/fujitsu/crash-trace
|
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
|
Source: https://github.com/fujitsu/crash-trace/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch1: %{name}-fix-aarch64-ppc64le.patch
|
Patch1: %{name}-fix-aarch64-ppc64le.patch
|
||||||
|
Patch2: %{name}-fix-arm.patch
|
||||||
|
Patch3: %{name}-fix-riscv64.patch
|
||||||
BuildRequires: crash-devel
|
BuildRequires: crash-devel
|
||||||
Requires: trace-cmd
|
Requires: trace-cmd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user