[packages/crash] - added x32 patch (builds now, not tested otherwise)
qboosh
qboosh at pld-linux.org
Sat Oct 24 15:11:34 CEST 2015
commit c94e3060b0f240690616f8e1b5a518ca181ada02
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 24 15:12:51 2015 +0200
- added x32 patch (builds now, not tested otherwise)
crash-x32.patch | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
crash.spec | 4 +++-
2 files changed, 73 insertions(+), 1 deletion(-)
---
diff --git a/crash.spec b/crash.spec
index 061cd1d..49b1b9a 100644
--- a/crash.spec
+++ b/crash.spec
@@ -34,6 +34,7 @@ Source0: http://people.redhat.com/anderson/%{pname}-%{version}.tar.gz
# git clone https://code.google.com/p/eppic
Source1: eppic.tar.xz
# Source1-md5: a9f80ad71de9d6f5b77534a7ebdbed8e
+Patch0: %{name}-x32.patch
URL: http://people.redhat.com/anderson/
BuildRequires: rpmbuild(macros) >= 1.701
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -43,7 +44,7 @@ BuildRequires: readline-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
%endif
-ExclusiveArch: %{ix86} %{x8664} alpha arm ia64 ppc64 s390 s390x
+ExclusiveArch: %{ix86} %{x8664} x32 alpha arm ia64 ppc64 s390 s390x
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -113,6 +114,7 @@ żywym systemie. Może być używany do analizy, kiedy /dev/mem i\
%prep
%setup -q -a1 -n %{pname}-%{version}
+%patch0 -p1
%{__mv} eppic extensions
diff --git a/crash-x32.patch b/crash-x32.patch
new file mode 100644
index 0000000..d44731d
--- /dev/null
+++ b/crash-x32.patch
@@ -0,0 +1,70 @@
+--- crash-7.1.3/unwind_x86_64.h.orig 2015-09-02 21:38:32.000000000 +0200
++++ crash-7.1.3/unwind_x86_64.h 2015-10-24 14:57:49.632888183 +0200
+@@ -10,10 +10,14 @@
+ * GNU General Public License for more details.
+ */
+
++#ifdef __LP64__
+ #define CONFIG_64BIT 1
++typedef unsigned long size_t;
++#else
++typedef unsigned int size_t;
++#endif
+ #define NULL ((void *)0)
+
+-typedef unsigned long size_t;
+ typedef unsigned char u8;
+ typedef signed short s16;
+ typedef unsigned short u16;
+@@ -22,30 +26,30 @@
+ typedef unsigned long long u64;
+
+ struct pt_regs {
+- unsigned long r15;
+- unsigned long r14;
+- unsigned long r13;
+- unsigned long r12;
+- unsigned long rbp;
+- unsigned long rbx;
++ u64 r15;
++ u64 r14;
++ u64 r13;
++ u64 r12;
++ u64 rbp;
++ u64 rbx;
+ /* arguments: non interrupts/non tracing syscalls only save upto here*/
+- unsigned long r11;
+- unsigned long r10;
+- unsigned long r9;
+- unsigned long r8;
+- unsigned long rax;
+- unsigned long rcx;
+- unsigned long rdx;
+- unsigned long rsi;
+- unsigned long rdi;
+- unsigned long orig_rax;
++ u64 r11;
++ u64 r10;
++ u64 r9;
++ u64 r8;
++ u64 rax;
++ u64 rcx;
++ u64 rdx;
++ u64 rsi;
++ u64 rdi;
++ u64 orig_rax;
+ /* end of arguments */
+ /* cpu exception frame or undefined */
+- unsigned long rip;
+- unsigned long cs;
+- unsigned long eflags;
+- unsigned long rsp;
+- unsigned long ss;
++ u64 rip;
++ u64 cs;
++ u64 eflags;
++ u64 rsp;
++ u64 ss;
+ /* top of stack page */
+ };
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crash.git/commitdiff/c94e3060b0f240690616f8e1b5a518ca181ada02
More information about the pld-cvs-commit
mailing list