From 3c8d3416430803ff7ae48dae1b60dc284e6de5a1 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 18 Oct 2018 06:26:13 +0200 Subject: [PATCH] radare2: Update from 2.9.0 to 3.0.0 --- packages/radare2/build.sh | 4 ++-- packages/radare2/configure.patch | 11 +++++++++++ packages/radare2/libr-include-r_io.h.patch | 12 ++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 packages/radare2/configure.patch create mode 100644 packages/radare2/libr-include-r_io.h.patch diff --git a/packages/radare2/build.sh b/packages/radare2/build.sh index 3f430cdf2..5d866eefe 100644 --- a/packages/radare2/build.sh +++ b/packages/radare2/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://rada.re TERMUX_PKG_DESCRIPTION="Advanced Hexadecimal Editor" -TERMUX_PKG_VERSION=2.9.0 -TERMUX_PKG_SHA256=423ced52355daeaa12a6abbd6735f93c1eb19af728ecb359a6074f49abacc8a2 +TERMUX_PKG_VERSION=3.0.0 +TERMUX_PKG_SHA256=fb5db40c6ac143c7257c9f4044851c647eac8942d07421837335f9c520fed447 TERMUX_PKG_SRCURL=https://github.com/radare/radare2/archive/$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_BUILD_IN_SRC="yes" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-compiler=termux-host" diff --git a/packages/radare2/configure.patch b/packages/radare2/configure.patch new file mode 100644 index 000000000..33f34277b --- /dev/null +++ b/packages/radare2/configure.patch @@ -0,0 +1,11 @@ +diff -u -r ../radare2-3.0.0/configure ./configure +--- ../radare2-3.0.0/configure 2018-10-15 22:29:51.000000000 +0000 ++++ ./configure 2018-10-18 04:22:20.511836802 +0000 +@@ -593,6 +593,7 @@ + else + HAVE_PTRACE="1" + USE_PTRACE_WRAP="0"; fi; fi; fi ++USE_PTRACE_WRAP=0 + SEDFLAGS=" -e '" + COUNT=0 + for A in ${ENVWORDS} ; do diff --git a/packages/radare2/libr-include-r_io.h.patch b/packages/radare2/libr-include-r_io.h.patch new file mode 100644 index 000000000..14ba28609 --- /dev/null +++ b/packages/radare2/libr-include-r_io.h.patch @@ -0,0 +1,12 @@ +diff -u -r ../radare2-3.0.0/libr/include/r_io.h ./libr/include/r_io.h +--- ../radare2-3.0.0/libr/include/r_io.h 2018-10-15 22:29:51.000000000 +0000 ++++ ./libr/include/r_io.h 2018-10-18 04:14:28.601218194 +0000 +@@ -26,7 +26,7 @@ + #include + #endif + +-#if defined(__APPLE__) || __sun || __FreeBSD__ || __OpenBSD__ ++#if defined(__APPLE__) || __sun || __FreeBSD__ || __OpenBSD__ || defined(__ANDROID__) + typedef int r_ptrace_request_t; + typedef int r_ptrace_data_t; + #else