From 45747f0bbe2b4f81721fdd283809df0249a80951 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Nov 07 2018 13:22:10 +0000 Subject: Fix build on armhfp --- diff --git a/SOURCES/ARM32.patch b/SOURCES/ARM32.patch new file mode 100644 index 0000000..737aec6 --- /dev/null +++ b/SOURCES/ARM32.patch @@ -0,0 +1,13 @@ +--- crash-trace-command-2.0/Makefile.orig ++++ crash-trace-command-2.0/Makefile +@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64) + TARGET=ARM64 + TARGET_CFLAGS= + endif ++ifeq ($(shell arch), armv7l) ++ TARGET=ARM32 ++ TARGET_CFLAGS= ++endif + + INCDIR=/usr/include/crash + diff --git a/SPECS/crash-trace-command.spec b/SPECS/crash-trace-command.spec index d8cd934..df34281 100644 --- a/SPECS/crash-trace-command.spec +++ b/SPECS/crash-trace-command.spec @@ -12,7 +12,7 @@ URL: http://people.redhat.com/anderson/extensions/%{name}-%{version}.tar.gz # Vendor: Fujitsu Limited # Packager: Qiao Nuohan ExclusiveOS: Linux -ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 ppc64le +ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 %{arm} ppc64le Buildroot: %{_tmppath}/%{name}-root BuildRequires: zlib-devel lzo-devel snappy-devel BuildRequires: crash-devel >= 7.2.0-2 @@ -31,6 +31,8 @@ Patch9: big_endian_nr_pages.patch Patch10: ppc64_ring_buffer_read.patch Patch11: ftrace_event_call_rh_data.patch +Patch1001: ARM32.patch + %description Command for reading ftrace data from a dumpfile. @@ -49,6 +51,8 @@ Command for reading ftrace data from a dumpfile. %patch10 -p1 -b ppc64_ring_buffer_read.patch %patch11 -p1 -b ftrace_event_call_rh_data.patch +%patch1001 -p1 -b ARM32.patch + %build make @@ -65,6 +69,9 @@ rm -rf %{buildroot} %doc COPYING %changelog +* Wed Nov 7 2018 Pablo Greco - 2.0.14 +- Fix for armhfp + * Mon Aug 20 2018 Dave Anderson - 2.0-14 - Fix for ftrace_event_call data structure change Resolves: rhbz#1596549