update to radare2-4.0.0

ok edd@ (MAINTAINER)
This commit is contained in:
jasper 2019-11-01 15:54:57 +00:00
parent 69352e2755
commit 85cf566f5f
9 changed files with 163 additions and 16 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.7 2019/04/30 12:16:46 edd Exp $
# $OpenBSD: Makefile,v 1.8 2019/11/01 15:54:57 jasper Exp $
COMMENT = Vala bindings for Radare2
V = 3.4.1
V = 4.0.0
SUBST_VARS += V
BUILD_DEPENDS = devel/radare2/main>=${V}

View File

@ -1,2 +1,2 @@
SHA256 (radare2-bindings-3.4.1.tar.gz) = /xvoI0GCjfb64QkAxtLatHOGJ9un8kWkaGLh6eSFKZA=
SIZE (radare2-bindings-3.4.1.tar.gz) = 1232981
SHA256 (radare2-bindings-4.0.0.tar.gz) = iEpy4kW2cT9EiP/oVaOxWGj0dzdywGXVPvR6Q83d/tU=
SIZE (radare2-bindings-4.0.0.tar.gz) = 1243499

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-vapi_r_util_vapi,v 1.1 2019/11/01 15:54:57 jasper Exp $
r_util.vapi:87.3-87.31: warning: the modifier `static' is not applicable to constants
public static const string OS;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
r_util.vapi:89.3-89.33: warning: the modifier `static' is not applicable to constants
public static const string ARCH;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Index: vapi/r_util.vapi
--- vapi/r_util.vapi.orig
+++ vapi/r_util.vapi
@@ -84,9 +84,9 @@ namespace Radare {
/* not supported */
#else
[CCode (cname="R_SYS_OS")]
- public static const string OS;
+ public const string OS;
[CCode (cname="R_SYS_ARCH")]
- public static const string ARCH;
+ public const string ARCH;
#endif
public static int sleep (int secs);
public static int usleep (int usecs);

View File

@ -1,6 +1,6 @@
using Radare;
public static void main(string[] args) {
public void main(string[] args) {
uint8 buf[3] = {0x49, 0x89, 0xd9};
@ -10,5 +10,5 @@ public static void main(string[] args) {
RAsm.Op op;
st.disassemble(out op, buf, 3);
print("Disassemble: '%s'\n", (string) op.buf_asm);
print("Disassemble: '%s'\n", (string) op.get_asm());
}

View File

@ -1,16 +1,15 @@
# $OpenBSD: Makefile,v 1.15 2019/06/25 20:25:20 sthen Exp $
# $OpenBSD: Makefile,v 1.16 2019/11/01 15:54:58 jasper Exp $
COMMENT = reverse engineers disassembler and debugger
V = 3.4.1
REVISION = 0
V = 4.0.0
SUBST_VARS += V
GH_PROJECT = radare2
GH_TAGNAME = ${V}
# In radare, all libs have the same version
LIBV = 6.0 # 3.4.0
LIBV = 7.0 # 4.0.0
.for _lib in r_anal r_asm r_bin r_bp r_config r_cons r_core \
r_crypto r_debug r_egg r_flag r_fs r_hash r_io r_lang \
r_main r_magic r_parse r_reg r_search r_socket \

View File

@ -1,2 +1,2 @@
SHA256 (radare2-3.4.1.tar.gz) = PfH5p572T5ySBUU8c1rFop746I8zb9FsW7qmSx3AyXU=
SIZE (radare2-3.4.1.tar.gz) = 7034801
SHA256 (radare2-4.0.0.tar.gz) = diHjhViRfcS0aazyqjPXyrZBRCCgodIFxVuclkI+nO4=
SIZE (radare2-4.0.0.tar.gz) = 7558070

View File

@ -1,4 +1,5 @@
$OpenBSD: patch-binr_rules_mk,v 1.2 2018/11/05 21:55:41 edd Exp $
$OpenBSD: patch-binr_rules_mk,v 1.3 2019/11/01 15:54:58 jasper Exp $
don't add -pie, that's automatic on OpenBSD when needed,
and this interferes badly with lld

View File

@ -1,11 +1,11 @@
$OpenBSD: patch-libr_Makefile,v 1.5 2018/12/10 17:06:01 edd Exp $
$OpenBSD: patch-libr_Makefile,v 1.6 2019/11/01 15:54:58 jasper Exp $
Remove library symlinks
Index: libr/Makefile
--- libr/Makefile.orig
+++ libr/Makefile
@@ -213,7 +213,6 @@ install: install-includes install-pkgconfig
@@ -218,7 +218,6 @@ install: install-includes install-pkgconfig
echo " ${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \
rm -f "${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \
${INSTALL_LIB} "$(lib)" "${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \

View File

@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.11 2019/04/30 12:16:46 edd Exp $
@comment $OpenBSD: PLIST,v 1.12 2019/11/01 15:54:58 jasper Exp $
bin/r2
@bin bin/r2agent
bin/r2p
bin/r2pm
@bin bin/rabin2
@bin bin/radare2
@ -13,6 +14,7 @@ bin/r2pm
@bin bin/rax2
include/libr/
include/libr/r2naked.h
include/libr/r_agraph.h
include/libr/r_anal.h
include/libr/r_anal_ex.h
include/libr/r_asm.h
@ -30,6 +32,7 @@ include/libr/r_crypto.h
include/libr/r_crypto/r_des.h
include/libr/r_debug.h
include/libr/r_diff.h
include/libr/r_drx.h
include/libr/r_egg.h
include/libr/r_endian.h
include/libr/r_flag.h
@ -99,10 +102,12 @@ include/libr/r_util/r_signal.h
include/libr/r_util/r_spaces.h
include/libr/r_util/r_stack.h
include/libr/r_util/r_str.h
include/libr/r_util/r_str_constpool.h
include/libr/r_util/r_str_util.h
include/libr/r_util/r_strbuf.h
include/libr/r_util/r_strpool.h
include/libr/r_util/r_sys.h
include/libr/r_util/r_table.h
include/libr/r_util/r_time.h
include/libr/r_util/r_tree.h
include/libr/r_util/r_uleb128.h
@ -127,6 +132,7 @@ include/libr/sdb/ls.h
include/libr/sdb/sdb.h
include/libr/sdb/sdb_version.h
include/libr/sdb/sdbht.h
include/libr/sdb/set.h
include/libr/sdb/types.h
include/libr/sflib/
include/libr/sflib/common/
@ -232,6 +238,7 @@ share/doc/radare2/bash_autocompletion.sh
share/doc/radare2/brainfuck.md
share/doc/radare2/calling-conventions.md
share/doc/radare2/capstone.md
share/doc/radare2/cows128.data
share/doc/radare2/crosscompile
share/doc/radare2/debug-internals.md
share/doc/radare2/debug.md
@ -271,6 +278,7 @@ share/doc/radare2/plugins.md
share/doc/radare2/portscan.r2
share/doc/radare2/qnx.md
share/doc/radare2/r2ascii.txt
share/doc/radare2/r2pipe.html
share/doc/radare2/rap.md
share/doc/radare2/rapatch.md
share/doc/radare2/releases.md
@ -286,6 +294,7 @@ share/doc/radare2/termux.md
share/doc/radare2/uncrustify.cfg
share/doc/radare2/vim
share/doc/radare2/vim2r2.js
share/doc/radare2/vlang-example.v
share/doc/radare2/windbg.md
share/doc/radare2/windows.md
share/doc/radare2/yara.md
@ -296,6 +305,7 @@ share/radare2/${V}/cons/ayu
share/radare2/${V}/cons/basic
share/radare2/${V}/cons/behelit
share/radare2/${V}/cons/bold
share/radare2/${V}/cons/bright
share/radare2/${V}/cons/cga
share/radare2/${V}/cons/consonance
share/radare2/${V}/cons/cutter
@ -303,6 +313,8 @@ share/radare2/${V}/cons/dark
share/radare2/${V}/cons/darkda
share/radare2/${V}/cons/defragger
share/radare2/${V}/cons/focus
share/radare2/${V}/cons/gb
share/radare2/${V}/cons/gentoo
share/radare2/${V}/cons/lima
share/radare2/${V}/cons/matrix
share/radare2/${V}/cons/monokai
@ -320,9 +332,11 @@ share/radare2/${V}/cons/white2
share/radare2/${V}/cons/xvilka
share/radare2/${V}/cons/zenburn
share/radare2/${V}/fcnsign/
share/radare2/${V}/fcnsign/cc-arm-16.sdb
share/radare2/${V}/fcnsign/cc-arm-32.sdb
share/radare2/${V}/fcnsign/cc-arm-64.sdb
share/radare2/${V}/fcnsign/cc-avr-8.sdb
share/radare2/${V}/fcnsign/cc-hexagon-32.sdb
share/radare2/${V}/fcnsign/cc-m68k-32.sdb
share/radare2/${V}/fcnsign/cc-mips-32.sdb
share/radare2/${V}/fcnsign/cc-mips-64.sdb
@ -330,6 +344,7 @@ share/radare2/${V}/fcnsign/cc-powerpc-32.sdb
share/radare2/${V}/fcnsign/cc-powerpc-64.sdb
share/radare2/${V}/fcnsign/cc-riscv-64.sdb
share/radare2/${V}/fcnsign/cc-sparc-32.sdb
share/radare2/${V}/fcnsign/cc-x86-16.sdb
share/radare2/${V}/fcnsign/cc-x86-32.sdb
share/radare2/${V}/fcnsign/cc-x86-64.sdb
share/radare2/${V}/fcnsign/cc-xtensa-32.sdb
@ -337,6 +352,7 @@ share/radare2/${V}/fcnsign/spec.sdb
share/radare2/${V}/fcnsign/types-16.sdb
share/radare2/${V}/fcnsign/types-32.sdb
share/radare2/${V}/fcnsign/types-64.sdb
share/radare2/${V}/fcnsign/types-android.sdb
share/radare2/${V}/fcnsign/types-arm-ios-16.sdb
share/radare2/${V}/fcnsign/types-arm-ios-32.sdb
share/radare2/${V}/fcnsign/types-arm-ios-64.sdb
@ -352,6 +368,112 @@ share/radare2/${V}/flag/tags.r2
share/radare2/${V}/format/
share/radare2/${V}/format/dex
share/radare2/${V}/format/dll/
share/radare2/${V}/format/dll/AVICAP.sdb
share/radare2/${V}/format/dll/AVIFILE.sdb
share/radare2/${V}/format/dll/AWDEVL16.sdb
share/radare2/${V}/format/dll/CARDS.sdb
share/radare2/${V}/format/dll/CMC.sdb
share/radare2/${V}/format/dll/COMM.sdb
share/radare2/${V}/format/dll/COMMCTRL.sdb
share/radare2/${V}/format/dll/COMMDLG.sdb
share/radare2/${V}/format/dll/COMPOBJ.sdb
share/radare2/${V}/format/dll/CSPMAN.sdb
share/radare2/${V}/format/dll/DCIMAN.sdb
share/radare2/${V}/format/dll/DDEML.sdb
share/radare2/${V}/format/dll/DESKCP16.sdb
share/radare2/${V}/format/dll/DIBENG.sdb
share/radare2/${V}/format/dll/DISPDIB.sdb
share/radare2/${V}/format/dll/DISPLAY.sdb
share/radare2/${V}/format/dll/DSKMAINT.sdb
share/radare2/${V}/format/dll/ENABLE3.sdb
share/radare2/${V}/format/dll/FAXCODEC.sdb
share/radare2/${V}/format/dll/GDI.sdb
share/radare2/${V}/format/dll/INET16.sdb
share/radare2/${V}/format/dll/IOSCLASS.sdb
share/radare2/${V}/format/dll/KERNEL.sdb
share/radare2/${V}/format/dll/KEYBOARD.sdb
share/radare2/${V}/format/dll/LZEXPAND.sdb
share/radare2/${V}/format/dll/MAINCP16.sdb
share/radare2/${V}/format/dll/MAPI.sdb
share/radare2/${V}/format/dll/MAPIU.sdb
share/radare2/${V}/format/dll/MAPIX.sdb
share/radare2/${V}/format/dll/MCIAVI.sdb
share/radare2/${V}/format/dll/MCICDA.sdb
share/radare2/${V}/format/dll/MCIMIDI.sdb
share/radare2/${V}/format/dll/MCIOLE.sdb
share/radare2/${V}/format/dll/MCIWAVE.sdb
share/radare2/${V}/format/dll/MIDIMAP.sdb
share/radare2/${V}/format/dll/ML3XEC16.sdb
share/radare2/${V}/format/dll/MMCI.sdb
share/radare2/${V}/format/dll/MMSYSTEM.sdb
share/radare2/${V}/format/dll/MODEM.sdb
share/radare2/${V}/format/dll/MODEMUI.sdb
share/radare2/${V}/format/dll/MOUSE.sdb
share/radare2/${V}/format/dll/MSACM.sdb
share/radare2/${V}/format/dll/MSACMMAP.sdb
share/radare2/${V}/format/dll/MSDOS.sdb
share/radare2/${V}/format/dll/MSDOSD.sdb
share/radare2/${V}/format/dll/MSGSRV32.sdb
share/radare2/${V}/format/dll/MSJSTICK.sdb
share/radare2/${V}/format/dll/MSMIXMGR.sdb
share/radare2/${V}/format/dll/MSPCIC.sdb
share/radare2/${V}/format/dll/MSPRINT.sdb
share/radare2/${V}/format/dll/MSTCP.sdb
share/radare2/${V}/format/dll/MSVIDEO.sdb
share/radare2/${V}/format/dll/NETAPI.sdb
share/radare2/${V}/format/dll/NETCPL.sdb
share/radare2/${V}/format/dll/NETDI.sdb
share/radare2/${V}/format/dll/NETOS.sdb
share/radare2/${V}/format/dll/NETWARE.sdb
share/radare2/${V}/format/dll/NW16.sdb
share/radare2/${V}/format/dll/OLE2.sdb
share/radare2/${V}/format/dll/OLE2CONV.sdb
share/radare2/${V}/format/dll/OLE2DISP.sdb
share/radare2/${V}/format/dll/OLE2NLS.sdb
share/radare2/${V}/format/dll/OLECLI.sdb
share/radare2/${V}/format/dll/OLESVR.sdb
share/radare2/${V}/format/dll/PIFMGR.sdb
share/radare2/${V}/format/dll/PKPD.sdb
share/radare2/${V}/format/dll/PMSPL.sdb
share/radare2/${V}/format/dll/POWER.sdb
share/radare2/${V}/format/dll/RASAPI16.sdb
share/radare2/${V}/format/dll/RNASETUP.sdb
share/radare2/${V}/format/dll/RSRC16.sdb
share/radare2/${V}/format/dll/SB16SND.sdb
share/radare2/${V}/format/dll/SBFM.sdb
share/radare2/${V}/format/dll/SETUP4.sdb
share/radare2/${V}/format/dll/SETUPX.sdb
share/radare2/${V}/format/dll/SHELL.sdb
share/radare2/${V}/format/dll/SOUND.sdb
share/radare2/${V}/format/dll/SPOOLER.sdb
share/radare2/${V}/format/dll/STORAGE.sdb
share/radare2/${V}/format/dll/SYSCLASS.sdb
share/radare2/${V}/format/dll/SYSDETMG.sdb
share/radare2/${V}/format/dll/SYSDM.sdb
share/radare2/${V}/format/dll/SYSEDIT.sdb
share/radare2/${V}/format/dll/SYSTEM.sdb
share/radare2/${V}/format/dll/SYSTHUNK.sdb
share/radare2/${V}/format/dll/TAPI.sdb
share/radare2/${V}/format/dll/TAPIADDR.sdb
share/radare2/${V}/format/dll/TAPIEXE.sdb
share/radare2/${V}/format/dll/TAPIINI.sdb
share/radare2/${V}/format/dll/TOOLHELP.sdb
share/radare2/${V}/format/dll/TYPELIB.sdb
share/radare2/${V}/format/dll/UMDM16.sdb
share/radare2/${V}/format/dll/USER.sdb
share/radare2/${V}/format/dll/VER.sdb
share/radare2/${V}/format/dll/WHLP16T.sdb
share/radare2/${V}/format/dll/WIN32S16.sdb
share/radare2/${V}/format/dll/WIN87EM.sdb
share/radare2/${V}/format/dll/WINASPI.sdb
share/radare2/${V}/format/dll/WINNET16.sdb
share/radare2/${V}/format/dll/WINOLDAP.sdb
share/radare2/${V}/format/dll/WINSOCK.sdb
share/radare2/${V}/format/dll/WINSPL16.sdb
share/radare2/${V}/format/dll/WPSAPD.sdb
share/radare2/${V}/format/dll/WPSUNI.sdb
share/radare2/${V}/format/dll/WPSUNIRE.sdb
share/radare2/${V}/format/dll/WSASRV.sdb
share/radare2/${V}/format/dll/aclui.sdb
share/radare2/${V}/format/dll/activeds.sdb
share/radare2/${V}/format/dll/atl.sdb
@ -366,6 +488,7 @@ share/radare2/${V}/format/dll/dsound.sdb
share/radare2/${V}/format/dll/gsprop32.sdb
share/radare2/${V}/format/dll/iertutil.sdb
share/radare2/${V}/format/dll/kernel32.sdb
share/radare2/${V}/format/dll/mfc100u.sdb
share/radare2/${V}/format/dll/mfc120.sdb
share/radare2/${V}/format/dll/mfc140u.sdb
share/radare2/${V}/format/dll/mfc30.sdb