Skip to content

Commit

Permalink
Revert "radare2: update from 4.5.1 to 5.4.0 (#6149)"
Browse files Browse the repository at this point in the history
This reverts commit e80c863.
  • Loading branch information
korli committed Aug 26, 2021
1 parent e80c863 commit 7157913
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
22 changes: 22 additions & 0 deletions dev-util/radare2/patches/radare2-4.5.1.patchset
@@ -0,0 +1,22 @@
From 6f963691d4cb1ac0458212160ceebda35944e7c3 Mon Sep 17 00:00:00 2001
From: devnexen <devnexen@gmail.com>
Date: Mon, 23 Nov 2020 09:28:36 +0000
Subject: Merge upstream patch for using proper team_id/pid_t


diff --git a/libr/util/sys.c b/libr/util/sys.c
index f2dc348..6dbdc67 100644
--- a/libr/util/sys.c
+++ b/libr/util/sys.c
@@ -1212,7 +1212,7 @@ R_API char *r_sys_pid_to_path(int pid) {
int32_t group = 0;
image_info ii;

- while (get_next_image_info (0, &group, &ii) == B_OK) {
+ while (get_next_image_info ((team_id)pid, &group, &ii) == B_OK) {
if (ii.type == B_APP_IMAGE) {
break;
}
--
2.28.0

Expand Up @@ -4,7 +4,7 @@ able to open disk files, analyzing binaries in several common and less common \
formats, disassemble code for several CPU architectures, debug programs, \
attach to remote GDB servers, and much more."
HOMEPAGE="https://radare.org/"
COPYRIGHT="2007-2021 pancake
COPYRIGHT="2007-2020 pancake
2007-2015 Skia
2012-2015 pof
2008-2015 nibble
Expand Down Expand Up @@ -96,9 +96,9 @@ COPYRIGHT="2007-2021 pancake
2010-2016 Sebastian Reichel"
LICENSE="GNU GPL v3
GNU LGPL v3"
REVISION="1"
REVISION="3"
SOURCE_URI="https://github.com/radare/radare2/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="21ddae80a18d5ceef4bcd3a7cae1ba09d14b510d68ac9134681e1e9967123b23"
CHECKSUM_SHA256="4e85b35987bd2ca5881ad9585970b970fe7374814bd383bd1cd62e961a0c228b"
PATCHES="radare2-$portVersion.patchset"

ARCHITECTURES="!x86_gcc2 x86_64"
Expand Down Expand Up @@ -232,7 +232,6 @@ defineDebugInfoPackage radare2$secondaryArchSuffix \
"$commandBinDir"/rahash2 \
"$commandBinDir"/rarun2 \
"$commandBinDir"/rasm2 \
"$commandBinDir"/ravc2\
"$commandBinDir"/rax2 \
"$libDir"/libr_anal.so.$libVersion \
"$libDir"/libr_asm.so.$libVersion \
Expand Down

0 comments on commit 7157913

Please sign in to comment.