radare2: update to 4.2.1
This commit is contained in:
parent
7f7e90a6c5
commit
c249abdaa1
2 changed files with 3 additions and 45 deletions
|
@ -1,42 +0,0 @@
|
||||||
backported from master
|
|
||||||
|
|
||||||
From 0e34303648430dfcb3f0b9947233d897883e1484 Mon Sep 17 00:00:00 2001
|
|
||||||
From: pancake <pancake@nopcode.org>
|
|
||||||
Date: Fri, 10 Jan 2020 03:50:30 +0100
|
|
||||||
Subject: [PATCH] Third fix attepmt for musl builds
|
|
||||||
|
|
||||||
--- libr/debug/p/native/linux/linux_debug.c 2019-12-20 13:22:09.000000000 +0100
|
|
||||||
+++ libr/debug/p/native/linux/linux_debug.c 2020-01-11 21:23:23.359825810 +0100
|
|
||||||
@@ -18,6 +18,12 @@
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <elf.h>
|
|
||||||
|
|
||||||
+#ifdef __GLIBC__
|
|
||||||
+#define HAVE_YMM 1
|
|
||||||
+#else
|
|
||||||
+#define HAVE_YMM 0
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
char *linux_reg_profile (RDebug *dbg) {
|
|
||||||
#if __arm__
|
|
||||||
#include "reg/linux-arm.h"
|
|
||||||
@@ -40,7 +46,9 @@
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
#include "reg/linux-x64.h"
|
|
||||||
-#include <bits/sigcontext.h>
|
|
||||||
+#if HAVE_YMM
|
|
||||||
+# include <bits/sigcontext.h>
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
#elif __powerpc__
|
|
||||||
if (dbg->bits & R_SYS_BITS_32) {
|
|
||||||
@@ -1043,7 +1051,7 @@
|
|
||||||
break;
|
|
||||||
case R_REG_TYPE_YMM:
|
|
||||||
{
|
|
||||||
-#if __x86_64__
|
|
||||||
+#if HAVE_YMM && __x86_64__
|
|
||||||
ut32 ymm_space[128]; // full ymm registers
|
|
||||||
struct _xstate xstate;
|
|
||||||
struct iovec iov;
|
|
|
@ -1,18 +1,18 @@
|
||||||
# Template file for 'radare2'
|
# Template file for 'radare2'
|
||||||
# cutter needs to be bumped when radare2 is updated
|
# cutter needs to be bumped when radare2 is updated
|
||||||
pkgname=radare2
|
pkgname=radare2
|
||||||
version=4.1.1
|
version=4.2.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-syscapstone"
|
configure_args="--with-syscapstone"
|
||||||
hostmakedepends="pkg-config git"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="capstone-devel"
|
makedepends="capstone-devel"
|
||||||
short_desc="Advanced command line debugger and hexadecimal editor"
|
short_desc="Advanced command line debugger and hexadecimal editor"
|
||||||
maintainer="Johannes <johannes.brechtmann@gmail.com>"
|
maintainer="Johannes <johannes.brechtmann@gmail.com>"
|
||||||
license="LGPL-3.0-only"
|
license="LGPL-3.0-only"
|
||||||
homepage="http://www.radare.org"
|
homepage="http://www.radare.org"
|
||||||
distfiles="https://github.com/radare/radare2/archive/${version}.tar.gz"
|
distfiles="https://github.com/radare/radare2/archive/${version}.tar.gz"
|
||||||
checksum=b62472601cdd20356b838d6f91738159e30ac1d7b4d0c0cb158575b1ef969e69
|
checksum=70426b7a482f233058b2f161063d55f4a6ff26019e4b4f35a96c74057796009a
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
mips*) CFLAGS="-Os";;
|
mips*) CFLAGS="-Os";;
|
||||||
|
|
Loading…
Reference in a new issue