aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radare2
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-31 08:30:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-31 08:31:39 +0000
commit8b8b05f71cc4937d4206f353b4111e9406742bde (patch)
tree1fa8d077ec180a45767eb12d15c73e4b3e879f20 /testing/radare2
parent1ce5844ceba090e81485b1556391e36dcd9e1a5a (diff)
downloadaports-8b8b05f71cc4937d4206f353b4111e9406742bde.tar.bz2
aports-8b8b05f71cc4937d4206f353b4111e9406742bde.tar.xz
testing/radare2: fix build on arm
Diffstat (limited to 'testing/radare2')
-rw-r--r--testing/radare2/APKBUILD13
-rw-r--r--testing/radare2/fix-arm-build.patch25
2 files changed, 34 insertions, 4 deletions
diff --git a/testing/radare2/APKBUILD b/testing/radare2/APKBUILD
index c8f9f21c47..dd4e41d444 100644
--- a/testing/radare2/APKBUILD
+++ b/testing/radare2/APKBUILD
@@ -15,7 +15,9 @@ makedepends="$depends_dev libzip-dev openssl-dev capstone-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/radare/radare2/archive/${pkgver}.tar.gz
- anal_arm_cs_shift.patch"
+ anal_arm_cs_shift.patch
+ fix-arm-build.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
@@ -48,8 +50,11 @@ package() {
#TODO: build packages from R2PM package manager (src/radare2-*/binr/r2pm/d/*)
md5sums="197614fd78af6ee01dcfc7adbac1a6e0 radare2-0.10.3.tar.gz
-664640d326fe15894891b98b629e0513 anal_arm_cs_shift.patch"
+664640d326fe15894891b98b629e0513 anal_arm_cs_shift.patch
+4d8e4b35ee0a514bc9b1aebdf739049b fix-arm-build.patch"
sha256sums="e64176357c34f957960e34102c6b89a7c9d1ed1dd879c419b6d1619bec6a5949 radare2-0.10.3.tar.gz
-e45f8104bb4b3be17a2eda3028cf51fcfd99f346261ba6eddf6d90d160224a09 anal_arm_cs_shift.patch"
+e45f8104bb4b3be17a2eda3028cf51fcfd99f346261ba6eddf6d90d160224a09 anal_arm_cs_shift.patch
+bceafc55ec54dc048fcb6ce1c1253c6991116acfbf1955027a6ca9d7102a1810 fix-arm-build.patch"
sha512sums="8868b5a4533d232b4e97978a1178a341126d2732a27cb9b3bdaa4893c8928e9d50efa3e96b249b04eebcf8dfb3911ba15ae237d2437adb0bbed496ce8ce34e08 radare2-0.10.3.tar.gz
-ab016177a1173ad647a0028f398c9daa8ef3f71fcc4c6c2cedd8ee9a60873dd68a5c825722b2d5916408c965a89a5a3099f5582a09457c9183c9dd14b20ee880 anal_arm_cs_shift.patch"
+ab016177a1173ad647a0028f398c9daa8ef3f71fcc4c6c2cedd8ee9a60873dd68a5c825722b2d5916408c965a89a5a3099f5582a09457c9183c9dd14b20ee880 anal_arm_cs_shift.patch
+6c6742896682f23926c9b9403bf33507d30270c3ecfe4148494b12a3a8b3efd0bc9f9bb153ec9ccb844df19a29b18b57f0db75eba1a576f120660d1a1cbeda79 fix-arm-build.patch"
diff --git a/testing/radare2/fix-arm-build.patch b/testing/radare2/fix-arm-build.patch
new file mode 100644
index 0000000000..3586751f76
--- /dev/null
+++ b/testing/radare2/fix-arm-build.patch
@@ -0,0 +1,25 @@
+From 2d3a69b7a04ee56edaddb7963c02df4b31aae498 Mon Sep 17 00:00:00 2001
+From: pancake <pancake@nopcode.org>
+Date: Thu, 26 May 2016 12:29:24 +0200
+Subject: [PATCH] Fix linux-arm build
+
+---
+ libr/debug/p/native/linux/linux_coredump.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libr/debug/p/native/linux/linux_coredump.c b/libr/debug/p/native/linux/linux_coredump.c
+index b364072..8d65851 100644
+--- a/libr/debug/p/native/linux/linux_coredump.c
++++ b/libr/debug/p/native/linux/linux_coredump.c
+@@ -1,5 +1,6 @@
+ /* radare - LGPL - Copyright 2016 - Oscar Salvador */
+
++#if __x86_64__
+ #include <r_debug.h>
+ #include <sys/uio.h>
+ #include <sys/ptrace.h>
+@@ -1242,3 +1243,4 @@ bool linux_generate_corefile (RDebug *dbg, RBuffer *dest) {
+ free (shdr_pxnum);
+ return !error;
+ }
++#endif