Wed Dec 28 04:36:55 2022 UTC ()
radare2: update to 5.8.0

Changes:

  abi

  * RAnalOp.srcs,dsts are not pointers

  anal

  * Working apt and add apl to list function preludes
  * Rename axj to axlj, because axj is for jmp refs
  * Introduce anal.tailcall.delta and use flags for better metrics
  * Improve the tailcall detection logic
  * Improve warning that only seems to happen when anal.nopskip is set
  * Always show all the archinfo, even when not provided by the plug
  * Dont show analysis progress on non-interactive shells
  * Add esil.dfg.mapinfo and esil.dfg.maps config vars
  * Some more improvements to esil_dfg
  * Fix size returned from r_anal_op
  * Fix warning in aflj when parsing vargarg signatures
  * Add register computed const pointer support for esil dfg
  * Add memory computed const pointer support for esil dfg
  * Introduce R_ANAL_ESIL_DFG_TAG_{REG,MEM}
  * Use treebuf io plugin as memory access backed for esil_dfg
  * Fix pickle asm rejecting empty strings
  * Do not recurse noreturn inspection when !addr or -1
  * Generalize vector instruction types instead of following intel-specific
  * Add /au to search for unknown destination jmp/call
  * Add anal.noret and refactor anal.noret.refs
  * Fix #20827 - Show srcs/dsts in aoj
  * Fix aae argument parsing regression in and improve help
  * Add support for stack-computed const pointers in esil_dfg
  * Fix anal.a2f in aac
  * Increase default anal.depth from 64 to 128
  * Clarify which commands are used on each aaaa line
  * Fix anal.depth usage when analyzing one basic block
  * Loongarch analysis bug fixes (bl, race condition)
  * Implement aflxv and aflx? commands
  * Run /azq in aaaa
  * Fix long1,long4 pickle opcodes
  * Fix #20798 - Fix bx after add lr,pc,0 in arm32
  * Fix null pointer in aflxj
  * Implement aflxj
  * Add noreturn column in afll
  * Use RPVector in RAnalOp src/dst to support ldm/stm/simd
  * Fix pickle arch thinking 0 is 64 bit
  * Don't show the linearsize in the afl output
  * Add anal.vars.newstack - configurable improved stack-relative var

  analysis

  * Working apt and add apl to list function preludes
  * Rename axj to axlj, because axj is for jmp refs
  * Introduce anal.tailcall.delta and use flags for better metrics
  * Improve the tailcall detection logic
  * Improve warning that only seems to happen when anal.nopskip is set
  * Always show all the archinfo, even when not provided by the plug
  * Dont show analysis progress on non-interactive shells
  * Do not recurse noreturn inspection when !addr or -1
  * Generalize vector instruction types instead of following intel-specific
  * Add /au to search for unknown destination jmp/call
  * Add anal.noret and refactor anal.noret.refs
  * Fix #20827 - Show srcs/dsts in aoj
  * Fix aae argument parsing regression in and improve help
  * Fix anal.a2f in aac
  * Increase default anal.depth from 64 to 128
  * Clarify which commands are used on each aaaa line
  * Loongarch analysis bug fixes (bl, race condition)
  * Implement aflxv and aflx? commands
  * Run /azq in aaaa
  * Add noreturn column in afll
  * Add anal.vars.newstack - configurable improved stack-relative var

  api

  * Make RReg refcounted
  * Implement {ctz|clz}{32|64} RNum
  * Define RPluginMeta and RPluginStatus
  * Add new RCore.cmdCallf() helper function
  * Merge RParse into RAsm
  * Refactor RLang api to use the new design
  * Fix null deref on wrong api usage for RCore.cmdStr
  * Moving more logic between asm, arch, parse and anal
  * RAnalEsil -> REsil api refactor
  * Deprecate reil and sysarch defines
  * More refactorings and api redesigns in r_arch
  * Remove eprintf calls in favor of R_LOG
  * Implement RReg.clone()
  * Deprecate r_str_dup() - related to #20959
  * Rename RVector.len to RVector.length for consistency
  * Remove the unnecessary RThread.CpuAffinity()
  * Add portable NaN and INF defines for different float sizes
  * Deprecate r_cons_eprintf and use R_LOG instead
  * Rename RStr.home() to RFile.home() as part of the Plan
  * Rename r_mem_memzero to r_mem_zero
  * Prefer _tostring() instead of _to_string()
  * Improve r_ref implementation with debugging support
  * R_BIN_NM -> R_BIN_LANG
  * Implement thread-safe refcounting - but disabled by default
  * Deprecate the unused RFList
  * Implement r_str_ntrim() and speedup r_str_trim() with it
  * Initial implementation of RString (30% faster than RStrBuf)
  * Implement r_sys_getenv_asint
  * Add r_cons_is_initialized
  * Boolify r_core_yank_file_all() and fix shadow var bug
  * Add r_file_is_executable and r_file_extension apis
  * Fix UB bug when using r_vector random access
  * Change R_LOG_INFO to R_LOG_TODO where suitable
  * Merge rhash into rcrypto and improve apis
  * Fix memory leak in r_str_list_join()
  * Boolify and rename some methods and fields from RFS
  * Add .author field in all the RLang plugins
  * Add a public api for the yank-unset action
  * Constify the help

  arch

  * Add the arch.preludes() callback and new RSearchKeyword constructor
  * Move anal.v850 to arch
  * Fix counted string bug in pickle
  * Fix negative unsigned cast in the xtensa disassembler
  * Add RAnalOp.weakbytes() and move more analop apis to arch
  * Move anal.xap into the arch
  * Update tests and better arch.patch/modify callback
  * Move anal.{6502,snes} into arch
  * Kill RAsmOp, we can reuse RAnalOp in here
  * Improve pickle disasm on invalid instructions
  * Remove RAsmPlugin struct and add the 'aia' command to show archinfo
  * Move the remaining asm plugins into the arch
  * Minor plugin selection improvements
  * Move asm.nasm into the arch
  * Move asm.vasm into arch.any_vasm
  * Assemble large pickle instructions
  * Fix and move failing tests, reorder lib build
  * Move the arm assembler plugin from asm to arch
  * Temporary add RAnal as dependency for REgg
  * Improve x86.nz assembler parsing and other bugs in rnum
  * Initial implementation of the arch.any.as plugin
  * Better handle of RNum errors for egg and arch.x86.nz
  * Support reg+idx and idx+reg in x86.nz assembler
  * Move the x86.nz plugin
  * Fix asm.acur supporting arch, anal and asm plugins
  * Fix asm.acur supporting arch, anal and asm plugins
  * Move anal_riscv to arch_riscv
  * Fix rasm2 -LLL using the new multi-bits macros
  * Introduce RSysBits and its packing/checking macros
  * Implement archinfo() in RAnal.Plugin.tms320
  * Deprecate the unused RArchPlugin.esil field
  * Use PJ to return the list of mnemonics aoml in arm.v35
  * Move anal.rsp to the new home
  * Move anal.v810 into arch.v810
  * Move pickle from anal to arch and add it to meson
  * Remove anal.malbolge and fix CI r_esil issues
  * Move the 'sh' plugin to the new home
  * Honor plugin name in rate matching for RArch.use
  * Move jdh8 from asm/anal to arch
  * Unify RArchOp into RAnalOp using common include files
  * Fix RArchOp.refptr from bool to int
  * Bump cs5 to support FNOP on m68k
  * Wire-up RArch into RAnalOp
  * Fix arm64 plugin to work well with latest arm64 changes in capstone
  * Use the latest capstone5-next with updated aarch64 support
  * Copy anal_amd29k.c to rarch
  * Change arch plugin definition
  * Add some more arch config vars
  * Introduce arch.endian config var
  * Instantiate RArch in anal
  * Introduce RArchConfig->decoder
  * Add R_LIB_TYPE_ARCH and i4004 arch-plugin
  * First arch plugin (arch.null), implement basic lib api
  * Start moving EVM analysis from extras to core
  * First implementation of r_arch decoder api
  * Introduce the new r_arch library, just the skeleton
  * Add some r_arch api declarations
  * Initial commit on RArch structs

  asm

  * Deprecate more unused fields from RAsmPlugin
  * Fix the parse.z80.pseudo plugin and add a test
  * Remove the unused RAsm.binb
  * Internal cleanup of asm.c, deprecate the disassembly callback
  * Load cpu descriptions for multiarch plugins
  * Fix rasm2 x86.nz for "xchg eax,eax" and add tests

  bin

  * Fix JSON encoding of section addresses
  * Add test for cwd source listing, CLL and list
  * Add warning when loading DWARF5 files (not supported)
  * Add test for the obm with CL, support noncwd paths
  * Use obm when spotting a companion dwarf file on macOS
  * Implement RBinFile.merge() and obm command to use it
  * Initial implementation of the ob-- command to close the last binobj
  * Autoload the dwarf companion file on macOS systems if available
  * Use rabin2 -rO for raw dump operations
  * Use glob expressions to specify section name to dump
  * Fix #14540 - klass->super must be an RList instead of char*
  * Support for Xbox 360 PE32 architecture (PPC BE)
  * Fix wrong detection of main in elf-arm32
  * Fix rabin2 -gj and add tests
  * Add bin.types and disable by default for CI reasons
  * Support loading Plan 9 kernels
  * Use API instead of commands to autoload a pdb
  * Fix #21020 - fix json format for rabin2 -jM when no main is found
  * Expose section type for coff, elf and macho formats
  * Fix #18375 - Only patch arm64 relocs when not initialized
  * Add experimental bin.str.nofp config for less false positives
  * Parse the PT_DYNAMIC elf section for the preinit pointers
  * Fix validation check in xnu
  * Initialize macho header pf definitions
  * Speedup class bin loading with bin.filter=false
  * Implement 'ic.' command
  * Fix initial seek for Rosetta2 aot binaries
  * Silent noisy warning in dwarfprocess
  * Expose klass->super details for objc categories
  * Include fields in the ic output
  * Enable the swift metadata parser by default and import classinfo
  * Add lang field for classes, symbols and methods, expose it via ic
  * Warn about unpatched relocs when no bin.cache is set for macho fixups
  * Add support for 32bit Mach-O fixups
  * Expose the macho reloc fixups and use internal buffer for parsing
  * Fix obf and add tests for it
  * Fix Cd4[ invalid syntax used in macho _const section
  * Expose the id_dylib macho command info into the bin kv
  * Enlarge the c++ demangler stack limit to solve a warning
  * Implement Dwarf.register identifier mapping for v850
  * Infuse asm.cpu from the elf flags for v850 ELFs
  * Remove asm.features, improve RBinInfo with flags and abi details
  * Improve brainfuck detection to reduce false positives
  * Implement dwarf.regName() for arm64
  * Import the free pascal symbol demangler from rizin

  build

  * Double lowerdash defines should be defined only by the compiler
  * Fix and improve static build, faster libr.a with libtool if available
  * Improve libr.a creation with ar -rcT instead of ar -x
  * Speedup tcc builds by not using -g
  * Move esil one level up in libs.mk
  * Update sdb to remove double include paths
  * Fix compilation with -lcrypto
  * Do not use macos-latest (macos-11 is fine for LTS)
  * Update the capstone4 support to 4.0.2
  * Fix zig's @Cinclude of r_th.h
  * Add crosscompiling support with sys/zig.sh
  * Do not install the v35 archives (-50MB) in make install
  * Fix capstone dynamic memory allocation setup issue
  * Support sys/debian.sh crossbuilds
  * Remove unused lc-printscan-long-double wasi flag
  * Check if CWD contain spaces in sys/install.sh
  * Add the acr --enable-threadsafety flag and the same for meson
  * Fix meson infinite loop
  * Disable libuv by default on meson and acr
  * Change build order as long as now bin depends on fs

  ci

  * Test r2 build with all sysdependencies enabled
  * Upgrade al-cheb/configure-pagefile-action to the v1.3
  * Run unit tests in parallel
  * Upgrade github actions/checkout from v2 to v3
  * Upgrade actions/upload-artifact from v2 to v3

  cmd

  * Fix bugs in aeg command parser

  config

  * Deprecate the use of comma in e: as stated in the r2580 prophecy
  * Deprecate graph.web eval config var
  * Remove the file.offset unused config variable

  cons

  * Fix static themes listing
  * Add support for statically compiled themes
  * Fix Ctrl+Arrow dietline shortcut for word cursor
  * Fix console history log path regression

  core

  * Enable cmd.undo by default
  * Rename many bin.str evars into bin.str.
  * Use XDG instead of R2_HOME_CACHEDIR and R2_HOME_HISTORY
  * Initial support for XDG env vars and paths
  * Fix RConfig.setB when the key doesnt exist
  * Deprecate scr.seek configuration variable
  * Initial implementation of R_LOG_TODO

  crash

  * Fix segfault in poa 1
  * Fix integer overflow in fuzzed dwarf rendering in graphs
  * Fix use-after-free after @@@e spotted by meme
  * Fix UAF in aaft when the BB is removed during the loop
  * Fix UAF on quit exposed by r2frida

  crypto

  * Initial abi breaking changes in RCrypto/RHash
  * Fix rahash2 -L listing full hash
  * Initial work on the way RCrypto handles plugins
  * Separate SM4 algorithm from plugin
  * Implement the SIP hash algorithm

  debug

  * Bring back the 'dms' command
  * Fixed incorrect thread arena output
  * IO uses PID to read from child, tid is just for regs
  * Fix r2 -d foo\bar.exe and r2 -d bar.exe on windows
  * Make RDebug.regRead() and regWrite() return bool

  decompiler

  * Improve the outpuf of pdc by trimming the addresses of inline nops and colorize numbers
  * Add colorization support to pdc output

  disasm

  * Implement asm.bytes.align to justify them to the right
  * Fix char auto-comment in cmp instructions
  * Improve pseudodisasm for arm64
  * Improve arm.pseudo when no function information is available
  * Fix mips.pseudo shortpath when function is null
  * Fix x86.pseudo shortpath when function is null
  * Fix NULL function xrefs in pd
  * Implement asm.flags.right option
  * Add dummy parse.evm plugin to fix portability of test
  * Add a dummy bpf pseudo plugin
  * Add RParse.justify() to easily fix commas and spaces
  * Better spacing in arm.pseudo parse plugin

  esil

  * Initial support for threads in esil
  * Fix #21052 - wrong emulation for pop rsp
  * Move anal.esil into the new esil
  * Add aegb command as an alias for 'aeg pieq $Fi'
  * Add aegn command to combine N esil instructions into one dfg
  * Use a function instead for the spaguetti code in all cmp esil opcodes -30LOC

  globals

  * Remove one global variable in RCore.cmdEval()
  * Remove two globals from RCons.cpipe
  * Remove the 3 globals in anal.xtensa
  * Remove 3 globals from anal.tricore
  * Remove the 3 globals from anal.vax
  * Remove 3 globals from anal.nios2
  * Remove 3 globals from anal.arc
  * Remove 3 globals from anal.sparc.gnu
  * Remove 3 globals from anal.sh
  * Remove 3 globals from anal.alpha
  * Remove 3 globals from anal.lanai.gnu
  * Remove 3 more globals from anal.pdp11
  * Remove 3 globals from anal.hppa
  * Remove 3 globals from anal.m68k.gnu
  * Remove the 3 globals in anal.ppc.gnu
  * Remove 3 globals from anal.cris
  * Remove 4 globals from anal.mips.gnu
  * Deglob 4 vars in the arm.gnu disassembler
  * Remove 3 globals in s390.gnu
  * Remove 10 more globals from analysis and capstone
  * Remove 3 globals in ccarg analysis
  * Remove all global variables from RCrypto
  * Move colortable global into the RConsContext
  * Remove global from utf8
  * Remove the last global variable in libmagic
  * Remove in_log_process global
  * Remove global in bin.obj.reloc_patch
  * Remove global variable in esil loop

  graph

  * Initial work in graph.bubble for custom bg color in nodes
  * Honor graph.layout in aegv too, instead of harcoding horizontal one
  * Deprecate aegi and aggi, those were dupes for aegv and aggv
  * Fix null deref in agg and avoid destructive manners of 'V ,'

  help

  * Make the anal.depth warning more useful

  indent

  * Balance spacings in braces

  io

  * Initial implementation of the generic io-stream api
  * Fix UAF in streaming io plugins when used with io.va=1
  * Remove invocation of v layer cache in r_io_desc_read
  * Start rewriting io_cache.c
  * Kill r_io_read_at_mapped
  * Initial import of the serial plugin
  * Kill io->buffer
  * Remove unused fcn declarations
  * omfg runs omm if no map is set
  * New o++ command to create and open a new file
  * Add "reset" system command to treebuf io plugin
  * Minor bugfix in treebuf io plugin
  * Add treebuf io plugin
  * Fix free-before-use on r_io_reopen of a rbuf:// fd/desc
  * Handle reloc maps properly in r_io_map_remap and r_io_map_resize
  * Fix reloc map memleak
  * Add rio reloc maps
  * [5.8.0] Disable the default io.basemap

  json

  * Fix tj ttj tfj outputs
  * Fix invalid json in tj command
  * Fix #20772 - ihj rendering an invalid json because of pfj

  lang

  * Make r2 -j work as a hashbang handler for qjs
  * Enable BigNum in qjs
  * Use r2papi 0.0.4 with base64 and R2Api is now known as R2Papi
  * Add requirejs, simplify compilation and add js_ prefix to all the c files
  * Add typescript support
  * Minor improvements for js: with r2.call() and r2.cmdj
  * Enable Bignum support to the QJS interpreter
  * Import the alpha r2papi 0.0.2 api for qjs
  * Integrate the qjs repl into the js: command
  * Initial import of the interactive QJS repl
  * Import the quickjs rlang plugin
  * Implement py command and add stdin slurp support for js- too
  * Add 'js' and 'js:' commands, as well as improve help for #!?
  * Fix null deref in rlang
  * Add "lua" as an alias for "#!lua"

  leaks

  * Fix leaks in pdc
  * Fix more memory leaks in rbin and ranal for arm64
  * Patch more leaks in the analysis and rbin
  * Some safe memleaks related to analysis and registers refcounting
  * Fix memory leak in dietline

  lint

  * Enable the leading spaces linter rule and fix them all
  * Use more tabs and add a (disabled for now) linter for it

  logs

  * Redirect RLog messages into the Corelog
  * Add base64 support to the T and T* commands

  panels

  * Add ve command to set fg/bg colors for current panel

  print

  * New RPrint.spinBar() API used from scr.demo for now
  * Fix pcc trifids confussion issue
  * New command CLL (aka list) show function source using addrline (dwarf) info
  * Fix #21080 - Add cfg.codevar to change the buffer varname from pc
  * ASN.1 and x509: correct OCTET_STRING and Public key info parsing
  * Add ASN1 Algorithm Identifiers for Edwards curves
  * Fix #20993 - Correct ASN.1 BIT_STRING parsing
  * Implement pcn command to print bytes as space separated numbers
  * Add support for the swatch dot-beat internet time
  * Workaround for "too large buffer" in formats
  * px* is an alias for pc*
  * Implement pFoj command
  * Implement pFaj for asn1 json decoding
  * Initial refactoring/cleanup of ASN1 parser api
  * Add pFxj command to print x509 certificates in JSON format
  * Add pFpj command to print PKCS7 files as JSON
  * Fix issue in 'pdc' that was showing empty orphan nodes
  * Implement new 'pcq' command, like pc, but inline-include-friendly
  * Implement the new pieb command as an alias for pie $Fi
  * Fix read buffer overflow in pxq -272
  * Implement pFbJ command with quiet and verbose json formats
  * Implemen pFbj for json printing of protobuf
  * Set hex.hdroff=true by default
  * Implement pFAj to render android xml in JSON (abi break)
  * Implement TSV output format for RTable

  projects

  * Fix some problems when renaming projects
  * Fix some bugs in projects
  * Quote commit message to avoid git error when saving project
  * @radare Do changes in Px->Pc, Pc->PS* as planned

  r2pipe

  * Check magic header before assuming an interpreted file is executable

  r2pm

  * Fix assert in Str.Trim() when r2 is not installed
  * Add support for tarball and zip packages
  * Honor EDITOR in r2pm -e
  * Remove all the references to the old r2pm.sh
  * Implement R2PM_FAIL and mark it as deprecation for r2-5.9.x
  * Implement r2pm -cp like it was in r2pm.sh
  * Fix clean installations with r2pm -c
  * Expose R2PM_SUDO and list R2PM_PREFIX in -H
  * Handle -HH in r2pm for verbose env listing and remove unused R2PM_GITSKIP
  * Fixes pull/install/uninstall on windows
  * r2pm -Ui can be combined now and fix extras package building
  * Honor R2PM_DBDIR env var
  * Honor -f in r2pm -U to force clean the r2pm db
  * Support XDG on r2pm and expose the PKG_CONFIG_PATH
  * Expose R2_LIBEXT for r2pm packages
  * Update r2pm manpage and add -q and -a flags
  * Show package source with r2pm -d
  * Implement r2pm -H to make more packages build
  * Fixes parsing the GIT URL on some packages
  * Test the new default native r2pm fix flushing and using RLOG
  * Make R2PM_NATIVE the default and provide R2PM_LEGACY

  r2r

  * Fix rvector assert when indexing empty ones

  refactor

  * Move the RParse.cparse into RAnal.cparse
  * Stop aeg from abusing agg
  * Rename R_ANAL_ESIL_DFG_BLOCK_ to R_ANAL_ESIL_DFG_TAG_
  * Rename EsilDFGRegVar to EsilDFGVar and introduce EsilDFGVarType
  * Avoid using RArchConfig->big_endian
  * Add addr_bits to RArchPlugins and make info and decode cbs cfg aware
  * Add archcond api to rarch, some small cleanup in anal
  * Make bitness, endianess and esil-support fields of RArchPlugin again
  * Copy value.c and op.c from anal to arch
  * Copy switch.c from anal to arch
  * Add some more typedefs and enums to r_arch
  * Rename r_arch_set_ to r_arch_config_set_
  * Rename R_ASM_SYNTAX to R_ARCH_SYNTAX
  * Simplify x86_cs BSR and BSF esil
  * Use r_strbuf_replacef in anal_mips_gnu esil generation
  * Use r_strbuf_replacef in anal_mips_cs esil generation

  rvc

  * Initial refactoring of the version control api
  * Move rvc from core to util
  * Fix rvc.commit when non-interactive with a default message

  scan

  * Fix crash in the swift metadata parser spotted by coverity

  search

  * Fix JSON encoding of unsigned search values
  * Fix /au after aeim
  * Fix /w and /wi, add tests, minor code cleanup
  * Add r_anal_optype_index to make /atl and /at use full listings of optypes
  * Support space separated instruction types and family in /at and /af
  * Improve json output for /asj and /atj
  * Fix calling /re twice after ^C
  * /az uses anal.in instead of search.in to improve scan results
  * Make /az faster after aeim, skipping unrelated regions
  * Fix last char bug in swift strings found with /az
  * Add x86-64 support to /az
  * Add flags under the asm.str flag prefix when doing /az
  * Honor bin.minsz in /az is no argument is provided
  * Implement /azq to search for assembly strings and add tests
  * Implement the new /az command to find assembly constructed strings
  * Superseed #20447 - remove some magic globals

  shell

  * Fix ?vi:123 and ?v:123 commands
  * Print whatever is taken from io_system to rcons
  * Fix runtime warning after leaving an rlang session
  * Add "" command to run RCore.cmdCall()
  * Fix #21136 - o <tab> autocompletion not working
  * Show help when using invalid subcommand of afi
  * Implement abo and afbo commands to list opcode offsets in function or bb
  * Implement o-. command, add help for future o-$
  * Expose RCore.cmdCall() and fix b64: command + add tests
  * Show number conversion error messages in ?v command
  * Fixes for the line editor using live save/load with new RFile apis
  * Implement oe command to open a file using cfg.editor
  * Add quiet and table listing for lang plugins
  * Implement Ll, Llq and #!?q commands for better rlang listing
  * Fix r2 /directory behaviour
  * Support $r:REGNAME syntax and document it
  * Implement cmd.usr1 and cmd.usr2 to handle signals on unix
  * Add #!qjs and #!tiny for autocompletion
  * Fix behaviour of -a and -b flags (no arg= show current, append? for help)
  * Rename the drm command to drv for consistency
  * Add -s -i -f r2 commands
  * Implement -a, -b, -c and -e commands in r2
  * Add tabhelp exception for pf.
  * Add r2 -LL to list core plugins
  * Improve help message for f subcommands
  * Take into account static themes when listing
  * Add ot command as an alias for touch
  * Implement the ji: command as an alternative to ~{} without cons filtering
  * Also handle (j) and (*), more syntax-consistent and add a test
  * Implement (j for json output of macro commands
  * Initial implementation of ?ie
  * Add missing help for the '?i?' command
  * Use RCoreHelp for /ca?
  * Fix #20760 - Implement native gron via ~{=}
  * Remove RPrintRowlog and use R_LOG isntead
  * Allow changing number of saved input lines
  * Implement log.source and log.origin
  * Add the new ucu and ucd commands using the new core-undo apis
  * Rename asm.{off} variables to asm.offset

  syntax

  * Move the preincrement and void arg from tests to lint.sh

  threads

  * Initial ref-counted RRegItems, needed for threadsafety
  * Move the readahead logic to a local variable
  * Guard more critical sections in cons and core
  * Analysis now waits in background for the bin parsing to finish
  * Add some RThreadLocks and start to use the critical sections

  thready

  * Dont call RCore.seek() and read a new buffer in disasm

  tools

  * rax2: corrects base64 encoding for null bytes
  * Fix r2 -2
  * Fix broken tests for long number conversion
  * Fix base64 null byte decoding bug in rax2
  * Implement rasm2 -LLL to list arch plugins
  * Add Ls to list assemblers, and LA to list analysis plugins
  * Bring back the r2 -t for parsing bin and analysing in background
  * rarun2 supports multiple preload directives

  util

  * Fix the XML parser
  * shlr/yxml -> libr/util/rxml - fork the abandoned yxml parser and expose it
  * Add RStr.ansiStrip() and RStr.insert()
  * Improve internal RBuffer API checks
  * Add log error when pj depth limit reached
  * Add R_SYS_BITS_12
  * Introduce R_SYS_BITS_4
  * Add :header and :noheader in RTable
  * Fix crash in r_vector_shrink
  * Minor COV fix in r_str_char_count
  * Fix return type of r_str_char_count
  * Add new RStr.replaceAll() api
  * Use R_PRINTF_CHECK for r_strbuf_replacef
  * Add r_strbuf_replace{f}

  vc

  * Initial rvc refactoring and cleanup of the api
  * Move rvc apis into callbacks
  * Make ravc2 accessible via blob and r2 shell

  visual

  * Use RAnalOp instead of RAsmOp in r_core_visual_bit_editor
  * Fix issue with cursor disappearing towards the bottom of the screen
  * Don't draw two cursors when too many bytes are on disasm panels
  * Make j/k movement in panels' cursor mode more consistent with it's visual counterpart
  * Don't skip byte when moving left/right in cursor mode (disassembly panel)
  * Fix pdc glitching in panels
  * Handle arrow keys in VT
  * Handle JK0 keys in VT
  * Honor cmd.vprompt and scr.notch in VT
  * RStr.wrap() supports ansi and use it in VT
  * Implement Tv command and use it from VT
  * Fix the cache and other bugs in panels
  * Override scr.maxpage in panels to avoid undesired prompts

  wasm

  * Upgrade to the latest wasi16 sdk


(khorben)
diff -r1.37 -r1.38 pkgsrc/devel/radare2/Makefile
diff -r1.10 -r1.11 pkgsrc/devel/radare2/PLIST
diff -r1.16 -r1.17 pkgsrc/devel/radare2/distinfo
diff -r1.1 -r1.2 pkgsrc/devel/radare2/patches/patch-shlr-sdb-src-Makefile
diff -r0 -r1.1 pkgsrc/devel/radare2/patches/patch-shlr_qjs_src_cutils.h

cvs diff -r1.37 -r1.38 pkgsrc/devel/radare2/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/radare2/Makefile 2022/10/26 10:31:02 1.37
+++ pkgsrc/devel/radare2/Makefile 2022/12/28 04:36:55 1.38
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.37 2022/10/26 10:31:02 wiz Exp $ 1# $NetBSD: Makefile,v 1.38 2022/12/28 04:36:55 khorben Exp $
2 2
3DISTNAME= radare2-5.7.8 3DISTNAME= radare2-5.8.0
4PKGREVISION= 1 
5CATEGORIES= devel 4CATEGORIES= devel
6MASTER_SITES= ${MASTER_SITE_GITHUB:=radareorg/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=radareorg/}
7 6
8MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.radare.org/ 8HOMEPAGE= https://www.radare.org/
10COMMENT= Reverse engineering framework 9COMMENT= Reverse engineering framework
11LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 10LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
12 11
13TOOL_DEPENDS+= git-base-[0-9]*:../../devel/git-base 12TOOL_DEPENDS+= git-base-[0-9]*:../../devel/git-base
14 13
15HAS_CONFIGURE= YES 14HAS_CONFIGURE= YES
16CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} 15CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
17CONFIGURE_ARGS+= --with-sysmagic 16CONFIGURE_ARGS+= --with-sysmagic

cvs diff -r1.10 -r1.11 pkgsrc/devel/radare2/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/radare2/PLIST 2022/09/21 13:49:39 1.10
+++ pkgsrc/devel/radare2/PLIST 2022/12/28 04:36:55 1.11
@@ -1,55 +1,57 @@ @@ -1,55 +1,57 @@
1@comment $NetBSD: PLIST,v 1.10 2022/09/21 13:49:39 ast Exp $ 1@comment $NetBSD: PLIST,v 1.11 2022/12/28 04:36:55 khorben Exp $
2bin/r2 2bin/r2
3bin/r2agent 3bin/r2agent
4bin/r2p 4bin/r2p
5bin/r2pm 5bin/r2pm
6bin/r2pm.sh 
7bin/r2r 6bin/r2r
8bin/rabin2 7bin/rabin2
9bin/radare2 8bin/radare2
10bin/radiff2 9bin/radiff2
11bin/rafind2 10bin/rafind2
12bin/ragg2 11bin/ragg2
13bin/rahash2 12bin/rahash2
14bin/rarun2 13bin/rarun2
15bin/rasign2 14bin/rasign2
16bin/rasm2 15bin/rasm2
17bin/ravc2 16bin/ravc2
18bin/rax2 17bin/rax2
19include/libr/ptrace_wrap.h 18include/libr/ptrace_wrap.h
20include/libr/r2naked.h 19include/libr/r2naked.h
21include/libr/r_agraph.h 20include/libr/r_agraph.h
22include/libr/r_anal.h 21include/libr/r_anal.h
 22include/libr/r_anal/hint.h
 23include/libr/r_anal/op.h
23include/libr/r_arch.h 24include/libr/r_arch.h
24include/libr/r_asm.h 25include/libr/r_asm.h
25include/libr/r_bin.h 26include/libr/r_bin.h
26include/libr/r_bin_dwarf.h 27include/libr/r_bin_dwarf.h
27include/libr/r_bind.h 28include/libr/r_bind.h
28include/libr/r_bp.h 29include/libr/r_bp.h
29include/libr/r_cmd.h 30include/libr/r_cmd.h
30include/libr/r_codemeta.h 31include/libr/r_codemeta.h
31include/libr/r_config.h 32include/libr/r_config.h
32include/libr/r_cons.h 33include/libr/r_cons.h
33include/libr/r_core.h 34include/libr/r_core.h
34include/libr/r_crypto.h 35include/libr/r_crypto.h
35include/libr/r_crypto/r_aes.h 36include/libr/r_crypto/r_aes.h
36include/libr/r_crypto/r_des.h 37include/libr/r_crypto/r_des.h
 38include/libr/r_crypto/r_sm4.h
37include/libr/r_debug.h 39include/libr/r_debug.h
38include/libr/r_drx.h 40include/libr/r_drx.h
39include/libr/r_egg.h 41include/libr/r_egg.h
40include/libr/r_endian.h 42include/libr/r_endian.h
 43include/libr/r_esil.h
41include/libr/r_flag.h 44include/libr/r_flag.h
42include/libr/r_flist.h 
43include/libr/r_fs.h 45include/libr/r_fs.h
44include/libr/r_getopt.h 46include/libr/r_getopt.h
45include/libr/r_hash.h 47include/libr/r_hash.h
46include/libr/r_heap_glibc.h 48include/libr/r_heap_glibc.h
47include/libr/r_heap_jemalloc.h 49include/libr/r_heap_jemalloc.h
48include/libr/r_io.h 50include/libr/r_io.h
49include/libr/r_lang.h 51include/libr/r_lang.h
50include/libr/r_lib.h 52include/libr/r_lib.h
51include/libr/r_list.h 53include/libr/r_list.h
52include/libr/r_magic.h 54include/libr/r_magic.h
53include/libr/r_main.h 55include/libr/r_main.h
54include/libr/r_parse.h 56include/libr/r_parse.h
55include/libr/r_pdb.h 57include/libr/r_pdb.h
@@ -97,180 +99,182 @@ include/libr/r_util/r_log.h @@ -97,180 +99,182 @@ include/libr/r_util/r_log.h
97include/libr/r_util/r_mem.h 99include/libr/r_util/r_mem.h
98include/libr/r_util/r_name.h 100include/libr/r_util/r_name.h
99include/libr/r_util/r_new_rbtree.h 101include/libr/r_util/r_new_rbtree.h
100include/libr/r_util/r_num.h 102include/libr/r_util/r_num.h
101include/libr/r_util/r_panels.h 103include/libr/r_util/r_panels.h
102include/libr/r_util/r_pkcs7.h 104include/libr/r_util/r_pkcs7.h
103include/libr/r_util/r_pool.h 105include/libr/r_util/r_pool.h
104include/libr/r_util/r_print.h 106include/libr/r_util/r_print.h
105include/libr/r_util/r_protobuf.h 107include/libr/r_util/r_protobuf.h
106include/libr/r_util/r_punycode.h 108include/libr/r_util/r_punycode.h
107include/libr/r_util/r_queue.h 109include/libr/r_util/r_queue.h
108include/libr/r_util/r_range.h 110include/libr/r_util/r_range.h
109include/libr/r_util/r_rbtree.h 111include/libr/r_util/r_rbtree.h
 112include/libr/r_util/r_ref.h
110include/libr/r_util/r_sandbox.h 113include/libr/r_util/r_sandbox.h
111include/libr/r_util/r_signal.h 114include/libr/r_util/r_signal.h
112include/libr/r_util/r_spaces.h 115include/libr/r_util/r_spaces.h
113include/libr/r_util/r_stack.h 116include/libr/r_util/r_stack.h
114include/libr/r_util/r_str.h 117include/libr/r_util/r_str.h
115include/libr/r_util/r_str_constpool.h 118include/libr/r_util/r_str_constpool.h
116include/libr/r_util/r_str_util.h 119include/libr/r_util/r_str_util.h
117include/libr/r_util/r_strbuf.h 120include/libr/r_util/r_strbuf.h
118include/libr/r_util/r_strpool.h 121include/libr/r_util/r_strpool.h
119include/libr/r_util/r_sys.h 122include/libr/r_util/r_sys.h
120include/libr/r_util/r_table.h 123include/libr/r_util/r_table.h
121include/libr/r_util/r_time.h 124include/libr/r_util/r_time.h
122include/libr/r_util/r_token.h 125include/libr/r_util/r_token.h
123include/libr/r_util/r_tree.h 126include/libr/r_util/r_tree.h
124include/libr/r_util/r_uleb128.h 127include/libr/r_util/r_uleb128.h
125include/libr/r_util/r_utf16.h 128include/libr/r_util/r_utf16.h
126include/libr/r_util/r_utf32.h 129include/libr/r_util/r_utf32.h
127include/libr/r_util/r_utf8.h 130include/libr/r_util/r_utf8.h
128include/libr/r_util/r_w32.h 131include/libr/r_util/r_w32.h
129include/libr/r_util/r_w32dw.h 132include/libr/r_util/r_w32dw.h
130include/libr/r_util/r_x509.h 133include/libr/r_util/r_x509.h
 134include/libr/r_util/r_xml.h
131include/libr/r_vector.h 135include/libr/r_vector.h
132include/libr/r_version.h 136include/libr/r_version.h
133include/libr/rvc.h 137include/libr/rvc.h
134include/libr/sdb/buffer.h 138include/libr/sdb/buffer.h
135include/libr/sdb/cdb.h 139include/libr/sdb/cdb.h
136include/libr/sdb/cdb_make.h 140include/libr/sdb/cdb_make.h
137include/libr/sdb/config.h 141include/libr/sdb/config.h
138include/libr/sdb/dict.h 142include/libr/sdb/dict.h
 143include/libr/sdb/heap.h
 144include/libr/sdb/ht.h
139include/libr/sdb/ht_inc.h 145include/libr/sdb/ht_inc.h
140include/libr/sdb/ht_pp.h 146include/libr/sdb/ht_pp.h
141include/libr/sdb/ht_pu.h 147include/libr/sdb/ht_pu.h
142include/libr/sdb/ht_up.h 148include/libr/sdb/ht_up.h
143include/libr/sdb/ht_uu.h 149include/libr/sdb/ht_uu.h
144include/libr/sdb/ls.h 150include/libr/sdb/ls.h
 151include/libr/sdb/rangstr.h
145include/libr/sdb/sdb.h 152include/libr/sdb/sdb.h
146include/libr/sdb/sdb_version.h 
147include/libr/sdb/sdbht.h 
148include/libr/sdb/set.h 153include/libr/sdb/set.h
149include/libr/sdb/types.h 154include/libr/sdb/types.h
 155include/libr/sdb/version.h
150include/libr/sflib/common/sfsocketcall.h 156include/libr/sflib/common/sfsocketcall.h
151include/libr/sflib/common/sftypes.h 157include/libr/sflib/common/sftypes.h
152include/libr/sflib/darwin-arm-64/sflib.h 158include/libr/sflib/darwin-arm-64/sflib.h
153include/libr/sflib/darwin-arm-64/sfsyscall.h 159include/libr/sflib/darwin-arm-64/sfsyscall.h
154include/libr/sflib/darwin-arm-64/sfsysnr.h 160include/libr/sflib/darwin-arm-64/sfsysnr.h
155include/libr/sflib/darwin-x86-32/sflib.h 161include/libr/sflib/darwin-x86-32/sflib.h
156include/libr/sflib/darwin-x86-32/sfsyscall.h 162include/libr/sflib/darwin-x86-32/sfsyscall.h
157include/libr/sflib/darwin-x86-32/sfsysnr.h 163include/libr/sflib/darwin-x86-32/sfsysnr.h
158include/libr/sflib/darwin-x86-64/sflib.h 164include/libr/sflib/darwin-x86-64/sflib.h
159include/libr/sflib/darwin-x86-64/sfsyscall.h 165include/libr/sflib/darwin-x86-64/sfsyscall.h
160include/libr/sflib/darwin-x86-64/sfsysnr.h 166include/libr/sflib/darwin-x86-64/sfsysnr.h
161include/libr/sflib/freebsd-x86-32/sflib.h 167include/libr/sflib/freebsd-x86-32/sflib.h
162include/libr/sflib/freebsd-x86-32/sfsyscall.h 168include/libr/sflib/freebsd-x86-32/sfsyscall.h
163include/libr/sflib/freebsd-x86-32/sfsysnr.h 169include/libr/sflib/freebsd-x86-32/sfsysnr.h
164include/libr/sflib/linux-arm-32/sflib.h 170include/libr/sflib/linux-arm-32/sflib.h
165include/libr/sflib/linux-arm-32/sfsyscall.h 171include/libr/sflib/linux-arm-32/sfsyscall.h
166include/libr/sflib/linux-arm-32/sfsysnr.h 172include/libr/sflib/linux-arm-32/sfsysnr.h
167include/libr/sflib/linux-arm-64/sflib.h 173include/libr/sflib/linux-arm-64/sflib.h
168include/libr/sflib/linux-arm-64/sfsyscall.h 174include/libr/sflib/linux-arm-64/sfsyscall.h
169include/libr/sflib/linux-arm-64/sfsysnr.h 175include/libr/sflib/linux-arm-64/sfsysnr.h
170include/libr/sflib/linux-x86-32/sflib.h 176include/libr/sflib/linux-x86-32/sflib.h
171include/libr/sflib/linux-x86-32/sfsyscall.h 177include/libr/sflib/linux-x86-32/sfsyscall.h
172include/libr/sflib/linux-x86-32/sfsysnr.h 178include/libr/sflib/linux-x86-32/sfsysnr.h
173include/libr/sflib/linux-x86-64/sflib.h 179include/libr/sflib/linux-x86-64/sflib.h
174include/libr/sflib/linux-x86-64/sfsyscall.h 180include/libr/sflib/linux-x86-64/sfsyscall.h
175include/libr/sflib/linux-x86-64/sfsysnr.h 181include/libr/sflib/linux-x86-64/sfsysnr.h
176lib/arm64dis.a 
177lib/armv7dis.a 
178lib/libr_anal.so 182lib/libr_anal.so
179lib/libr_anal.so.${R2VERSION} 
180lib/libr_anal.so.${R2VERSION_MN} 183lib/libr_anal.so.${R2VERSION_MN}
 184lib/libr_anal.so.${R2VERSION}
 185lib/libr_arch.so
 186lib/libr_arch.so.${R2VERSION_MN}
 187lib/libr_arch.so.${R2VERSION}
181lib/libr_asm.so 188lib/libr_asm.so
182lib/libr_asm.so.${R2VERSION} 
183lib/libr_asm.so.${R2VERSION_MN} 189lib/libr_asm.so.${R2VERSION_MN}
 190lib/libr_asm.so.${R2VERSION}
184lib/libr_bin.so 191lib/libr_bin.so
185lib/libr_bin.so.${R2VERSION} 
186lib/libr_bin.so.${R2VERSION_MN} 192lib/libr_bin.so.${R2VERSION_MN}
 193lib/libr_bin.so.${R2VERSION}
187lib/libr_bp.so 194lib/libr_bp.so
188lib/libr_bp.so.${R2VERSION} 
189lib/libr_bp.so.${R2VERSION_MN} 195lib/libr_bp.so.${R2VERSION_MN}
 196lib/libr_bp.so.${R2VERSION}
190lib/libr_config.so 197lib/libr_config.so
191lib/libr_config.so.${R2VERSION} 
192lib/libr_config.so.${R2VERSION_MN} 198lib/libr_config.so.${R2VERSION_MN}
 199lib/libr_config.so.${R2VERSION}
193lib/libr_cons.so 200lib/libr_cons.so
194lib/libr_cons.so.${R2VERSION} 
195lib/libr_cons.so.${R2VERSION_MN} 201lib/libr_cons.so.${R2VERSION_MN}
 202lib/libr_cons.so.${R2VERSION}
196lib/libr_core.so 203lib/libr_core.so
197lib/libr_core.so.${R2VERSION} 
198lib/libr_core.so.${R2VERSION_MN} 204lib/libr_core.so.${R2VERSION_MN}
 205lib/libr_core.so.${R2VERSION}
199lib/libr_crypto.so 206lib/libr_crypto.so
200lib/libr_crypto.so.${R2VERSION} 
201lib/libr_crypto.so.${R2VERSION_MN} 207lib/libr_crypto.so.${R2VERSION_MN}
 208lib/libr_crypto.so.${R2VERSION}
202lib/libr_debug.so 209lib/libr_debug.so
203lib/libr_debug.so.${R2VERSION} 
204lib/libr_debug.so.${R2VERSION_MN} 210lib/libr_debug.so.${R2VERSION_MN}
 211lib/libr_debug.so.${R2VERSION}
205lib/libr_egg.so 212lib/libr_egg.so
206lib/libr_egg.so.${R2VERSION} 
207lib/libr_egg.so.${R2VERSION_MN} 213lib/libr_egg.so.${R2VERSION_MN}
 214lib/libr_egg.so.${R2VERSION}
 215lib/libr_esil.so
 216lib/libr_esil.so.${R2VERSION_MN}
 217lib/libr_esil.so.${R2VERSION}
208lib/libr_flag.so 218lib/libr_flag.so
209lib/libr_flag.so.${R2VERSION} 
210lib/libr_flag.so.${R2VERSION_MN} 219lib/libr_flag.so.${R2VERSION_MN}
 220lib/libr_flag.so.${R2VERSION}
211lib/libr_fs.so 221lib/libr_fs.so
212lib/libr_fs.so.${R2VERSION} 
213lib/libr_fs.so.${R2VERSION_MN} 222lib/libr_fs.so.${R2VERSION_MN}
214lib/libr_hash.so 223lib/libr_fs.so.${R2VERSION}
215lib/libr_hash.so.${R2VERSION} 
216lib/libr_hash.so.${R2VERSION_MN} 
217lib/libr_io.so 224lib/libr_io.so
218lib/libr_io.so.${R2VERSION} 
219lib/libr_io.so.${R2VERSION_MN} 225lib/libr_io.so.${R2VERSION_MN}
 226lib/libr_io.so.${R2VERSION}
220lib/libr_lang.so 227lib/libr_lang.so
221lib/libr_lang.so.${R2VERSION} 
222lib/libr_lang.so.${R2VERSION_MN} 228lib/libr_lang.so.${R2VERSION_MN}
 229lib/libr_lang.so.${R2VERSION}
223lib/libr_magic.so 230lib/libr_magic.so
224lib/libr_magic.so.${R2VERSION} 
225lib/libr_magic.so.${R2VERSION_MN} 231lib/libr_magic.so.${R2VERSION_MN}
 232lib/libr_magic.so.${R2VERSION}
226lib/libr_main.so 233lib/libr_main.so
227lib/libr_main.so.${R2VERSION} 
228lib/libr_main.so.${R2VERSION_MN} 234lib/libr_main.so.${R2VERSION_MN}
229lib/libr_parse.so 235lib/libr_main.so.${R2VERSION}
230lib/libr_parse.so.${R2VERSION} 
231lib/libr_parse.so.${R2VERSION_MN} 
232lib/libr_reg.so 236lib/libr_reg.so
233lib/libr_reg.so.${R2VERSION} 
234lib/libr_reg.so.${R2VERSION_MN} 237lib/libr_reg.so.${R2VERSION_MN}
 238lib/libr_reg.so.${R2VERSION}
235lib/libr_search.so 239lib/libr_search.so
236lib/libr_search.so.${R2VERSION} 
237lib/libr_search.so.${R2VERSION_MN} 240lib/libr_search.so.${R2VERSION_MN}
 241lib/libr_search.so.${R2VERSION}
238lib/libr_socket.so 242lib/libr_socket.so
239lib/libr_socket.so.${R2VERSION} 
240lib/libr_socket.so.${R2VERSION_MN} 243lib/libr_socket.so.${R2VERSION_MN}
 244lib/libr_socket.so.${R2VERSION}
241lib/libr_syscall.so 245lib/libr_syscall.so
242lib/libr_syscall.so.${R2VERSION} 
243lib/libr_syscall.so.${R2VERSION_MN} 246lib/libr_syscall.so.${R2VERSION_MN}
 247lib/libr_syscall.so.${R2VERSION}
244lib/libr_util.so 248lib/libr_util.so
245lib/libr_util.so.${R2VERSION} 
246lib/libr_util.so.${R2VERSION_MN} 249lib/libr_util.so.${R2VERSION_MN}
 250lib/libr_util.so.${R2VERSION}
247lib/pkgconfig/r_anal.pc 251lib/pkgconfig/r_anal.pc
 252lib/pkgconfig/r_arch.pc
248lib/pkgconfig/r_asm.pc 253lib/pkgconfig/r_asm.pc
249lib/pkgconfig/r_bin.pc 254lib/pkgconfig/r_bin.pc
250lib/pkgconfig/r_bp.pc 255lib/pkgconfig/r_bp.pc
251lib/pkgconfig/r_config.pc 256lib/pkgconfig/r_config.pc
252lib/pkgconfig/r_cons.pc 257lib/pkgconfig/r_cons.pc
253lib/pkgconfig/r_core.pc 258lib/pkgconfig/r_core.pc
254lib/pkgconfig/r_crypto.pc 259lib/pkgconfig/r_crypto.pc
255lib/pkgconfig/r_debug.pc 260lib/pkgconfig/r_debug.pc
256lib/pkgconfig/r_egg.pc 261lib/pkgconfig/r_egg.pc
 262lib/pkgconfig/r_esil.pc
257lib/pkgconfig/r_flag.pc 263lib/pkgconfig/r_flag.pc
258lib/pkgconfig/r_fs.pc 264lib/pkgconfig/r_fs.pc
259lib/pkgconfig/r_hash.pc 
260lib/pkgconfig/r_io.pc 265lib/pkgconfig/r_io.pc
261lib/pkgconfig/r_lang.pc 266lib/pkgconfig/r_lang.pc
262lib/pkgconfig/r_magic.pc 267lib/pkgconfig/r_magic.pc
263lib/pkgconfig/r_parse.pc 
264lib/pkgconfig/r_reg.pc 268lib/pkgconfig/r_reg.pc
265lib/pkgconfig/r_search.pc 269lib/pkgconfig/r_search.pc
266lib/pkgconfig/r_socket.pc 270lib/pkgconfig/r_socket.pc
267lib/pkgconfig/r_syscall.pc 271lib/pkgconfig/r_syscall.pc
268lib/pkgconfig/r_util.pc 272lib/pkgconfig/r_util.pc
269lib/radare2/${R2VERSION}/io_shm.so 273lib/radare2/${R2VERSION}/io_shm.so
270lib/radare2/last 274lib/radare2/last
271man/man1/r2-docker.1 275man/man1/r2-docker.1
272man/man1/r2.1 276man/man1/r2.1
273man/man1/r2agent.1 277man/man1/r2agent.1
274man/man1/r2pm.1 278man/man1/r2pm.1
275man/man1/r2r.1 279man/man1/r2r.1
276man/man1/rabin2.1 280man/man1/rabin2.1
@@ -579,26 +583,27 @@ share/radare2/${R2VERSION}/format/elf_en @@ -579,26 +583,27 @@ share/radare2/${R2VERSION}/format/elf_en
579share/radare2/${R2VERSION}/format/macho 583share/radare2/${R2VERSION}/format/macho
580share/radare2/${R2VERSION}/format/mz 584share/radare2/${R2VERSION}/format/mz
581share/radare2/${R2VERSION}/format/pe32 585share/radare2/${R2VERSION}/format/pe32
582share/radare2/${R2VERSION}/format/trx 586share/radare2/${R2VERSION}/format/trx
583share/radare2/${R2VERSION}/format/zip 587share/radare2/${R2VERSION}/format/zip
584share/radare2/${R2VERSION}/hud/main 588share/radare2/${R2VERSION}/hud/main
585share/radare2/${R2VERSION}/magic/apple 589share/radare2/${R2VERSION}/magic/apple
586share/radare2/${R2VERSION}/magic/archive 590share/radare2/${R2VERSION}/magic/archive
587share/radare2/${R2VERSION}/magic/cafebabe 591share/radare2/${R2VERSION}/magic/cafebabe
588share/radare2/${R2VERSION}/magic/code 592share/radare2/${R2VERSION}/magic/code
589share/radare2/${R2VERSION}/magic/compressed 593share/radare2/${R2VERSION}/magic/compressed
590share/radare2/${R2VERSION}/magic/database 594share/radare2/${R2VERSION}/magic/database
591share/radare2/${R2VERSION}/magic/elf 595share/radare2/${R2VERSION}/magic/elf
 596share/radare2/${R2VERSION}/magic/encoding
592share/radare2/${R2VERSION}/magic/filesystems 597share/radare2/${R2VERSION}/magic/filesystems
593share/radare2/${R2VERSION}/magic/firmware 598share/radare2/${R2VERSION}/magic/firmware
594share/radare2/${R2VERSION}/magic/flash 599share/radare2/${R2VERSION}/magic/flash
595share/radare2/${R2VERSION}/magic/freebsd 600share/radare2/${R2VERSION}/magic/freebsd
596share/radare2/${R2VERSION}/magic/gimp 601share/radare2/${R2VERSION}/magic/gimp
597share/radare2/${R2VERSION}/magic/gpg 602share/radare2/${R2VERSION}/magic/gpg
598share/radare2/${R2VERSION}/magic/html 603share/radare2/${R2VERSION}/magic/html
599share/radare2/${R2VERSION}/magic/images 604share/radare2/${R2VERSION}/magic/images
600share/radare2/${R2VERSION}/magic/java 605share/radare2/${R2VERSION}/magic/java
601share/radare2/${R2VERSION}/magic/jpeg 606share/radare2/${R2VERSION}/magic/jpeg
602share/radare2/${R2VERSION}/magic/linux 607share/radare2/${R2VERSION}/magic/linux
603share/radare2/${R2VERSION}/magic/mach 608share/radare2/${R2VERSION}/magic/mach
604share/radare2/${R2VERSION}/magic/microsoft 609share/radare2/${R2VERSION}/magic/microsoft
@@ -623,27 +628,26 @@ share/radare2/${R2VERSION}/opcodes/8051. @@ -623,27 +628,26 @@ share/radare2/${R2VERSION}/opcodes/8051.
623share/radare2/${R2VERSION}/opcodes/LH5801.sdb 628share/radare2/${R2VERSION}/opcodes/LH5801.sdb
624share/radare2/${R2VERSION}/opcodes/arc.sdb 629share/radare2/${R2VERSION}/opcodes/arc.sdb
625share/radare2/${R2VERSION}/opcodes/arm.sdb 630share/radare2/${R2VERSION}/opcodes/arm.sdb
626share/radare2/${R2VERSION}/opcodes/avr.sdb 631share/radare2/${R2VERSION}/opcodes/avr.sdb
627share/radare2/${R2VERSION}/opcodes/bf.sdb 632share/radare2/${R2VERSION}/opcodes/bf.sdb
628share/radare2/${R2VERSION}/opcodes/bpf.sdb 633share/radare2/${R2VERSION}/opcodes/bpf.sdb
629share/radare2/${R2VERSION}/opcodes/chip8.sdb 634share/radare2/${R2VERSION}/opcodes/chip8.sdb
630share/radare2/${R2VERSION}/opcodes/dalvik.sdb 635share/radare2/${R2VERSION}/opcodes/dalvik.sdb
631share/radare2/${R2VERSION}/opcodes/i4004.sdb 636share/radare2/${R2VERSION}/opcodes/i4004.sdb
632share/radare2/${R2VERSION}/opcodes/i8080.sdb 637share/radare2/${R2VERSION}/opcodes/i8080.sdb
633share/radare2/${R2VERSION}/opcodes/java.sdb 638share/radare2/${R2VERSION}/opcodes/java.sdb
634share/radare2/${R2VERSION}/opcodes/lm32.sdb 639share/radare2/${R2VERSION}/opcodes/lm32.sdb
635share/radare2/${R2VERSION}/opcodes/m68k.sdb 640share/radare2/${R2VERSION}/opcodes/m68k.sdb
636share/radare2/${R2VERSION}/opcodes/malbolge.sdb 
637share/radare2/${R2VERSION}/opcodes/mips.sdb 641share/radare2/${R2VERSION}/opcodes/mips.sdb
638share/radare2/${R2VERSION}/opcodes/msp430.sdb 642share/radare2/${R2VERSION}/opcodes/msp430.sdb
639share/radare2/${R2VERSION}/opcodes/pic18c.sdb 643share/radare2/${R2VERSION}/opcodes/pic18c.sdb
640share/radare2/${R2VERSION}/opcodes/pickle.sdb 644share/radare2/${R2VERSION}/opcodes/pickle.sdb
641share/radare2/${R2VERSION}/opcodes/ppc.sdb 645share/radare2/${R2VERSION}/opcodes/ppc.sdb
642share/radare2/${R2VERSION}/opcodes/propeller.sdb 646share/radare2/${R2VERSION}/opcodes/propeller.sdb
643share/radare2/${R2VERSION}/opcodes/riscv.sdb 647share/radare2/${R2VERSION}/opcodes/riscv.sdb
644share/radare2/${R2VERSION}/opcodes/s390.sdb 648share/radare2/${R2VERSION}/opcodes/s390.sdb
645share/radare2/${R2VERSION}/opcodes/sh.sdb 649share/radare2/${R2VERSION}/opcodes/sh.sdb
646share/radare2/${R2VERSION}/opcodes/sparc.sdb 650share/radare2/${R2VERSION}/opcodes/sparc.sdb
647share/radare2/${R2VERSION}/opcodes/tms320.sdb 651share/radare2/${R2VERSION}/opcodes/tms320.sdb
648share/radare2/${R2VERSION}/opcodes/tricore.sdb 652share/radare2/${R2VERSION}/opcodes/tricore.sdb
649share/radare2/${R2VERSION}/opcodes/v810.sdb 653share/radare2/${R2VERSION}/opcodes/v810.sdb

cvs diff -r1.16 -r1.17 pkgsrc/devel/radare2/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/radare2/distinfo 2022/12/24 12:44:15 1.16
+++ pkgsrc/devel/radare2/distinfo 2022/12/28 04:36:55 1.17
@@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
1$NetBSD: distinfo,v 1.16 2022/12/24 12:44:15 wiz Exp $ 1$NetBSD: distinfo,v 1.17 2022/12/28 04:36:55 khorben Exp $
2 2
3BLAKE2s (radare2-5.7.8.tar.gz) = 3e07c2d806d5c094046f52924d60cd410c8e367eb82f2990d4bb2e0b13d92821 3BLAKE2s (radare2-5.8.0.tar.gz) = d16762a681544c372644824436334232e58ab9cbbf20e429397a9f118c155353
4SHA512 (radare2-5.7.8.tar.gz) = 7c819a052f5e4b3da72b945915fca92a747c52dc2e2fa8483a8c2d8e71479ce374efbbe2bc02b1b4af26db6a891b6e44cdbb9e062de2f13b22a258cceab561f6 4SHA512 (radare2-5.8.0.tar.gz) = a780e595e8fd5c821cd8eea5ee61e2a0476ed4f9e72490eae244d4a110a34000a0cdb73463beac7ff18177d269cf7ae00a3a146e6d6aeb61b48bc543b622c7a2
5Size (radare2-5.7.8.tar.gz) = 10324020 bytes 5Size (radare2-5.8.0.tar.gz) = 10994255 bytes
6SHA1 (patch-libr_io_p_shm.mk) = 77e33c5532f6c072a12b9c3c882667521188e002 6SHA1 (patch-libr_io_p_shm.mk) = 77e33c5532f6c072a12b9c3c882667521188e002
7SHA1 (patch-shlr-sdb-src-Makefile) = a285400cdb72ace9cc6bebbea6d2c970f25886ca 7SHA1 (patch-shlr-sdb-src-Makefile) = 414260d6010873f04ca8e614438fd674af0543d2
 8SHA1 (patch-shlr_qjs_src_cutils.h) = f36e586889dd18ee4354c1a1bcbad52c95951eda
8SHA1 (patch-sys_ios-sdk.sh) = 3f50b49e75dea1ac02f6d2ce8c556c77276e51d6 9SHA1 (patch-sys_ios-sdk.sh) = 3f50b49e75dea1ac02f6d2ce8c556c77276e51d6

cvs diff -r1.1 -r1.2 pkgsrc/devel/radare2/patches/patch-shlr-sdb-src-Makefile (expand / switch to unified diff)

--- pkgsrc/devel/radare2/patches/patch-shlr-sdb-src-Makefile 2022/09/21 13:49:39 1.1
+++ pkgsrc/devel/radare2/patches/patch-shlr-sdb-src-Makefile 2022/12/28 04:36:55 1.2
@@ -1,33 +1,33 @@ @@ -1,33 +1,33 @@
1$NetBSD: patch-shlr-sdb-src-Makefile,v 1.1 2022/09/21 13:49:39 ast Exp $ 1$NetBSD: patch-shlr-sdb-src-Makefile,v 1.2 2022/12/28 04:36:55 khorben Exp $
2 2
3* CC is not defined in MAKEFLAGS here, but _CC is so we use that 3* CC is not defined in MAKEFLAGS here, but _CC is so we use that
4 4
5--- shlr/sdb/src/Makefile.orig 2022-09-13 18:08:16.000000000 +0200 5--- shlr/sdb/src/Makefile.orig 2022-12-22 23:40:31.000000000 +0000
6+++ shlr/sdb/src/Makefile 2022-09-21 12:16:05.786393040 +0200 6+++ shlr/sdb/src/Makefile
7@@ -65,7 +65,7 @@ 7@@ -67,7 +67,7 @@ bin $(BIN): bin_deps
8 ifneq ($(SILENT),) 8 ifneq ($(SILENT),)
9 @echo BIN ${BIN} 9 @echo BIN ${BIN}
10 endif 10 endif
11- $(CC) ${LDFLAGS} -o ${BIN} main.o ${OBJ} 11- $(CC) ${LDFLAGS} -o ${BIN} entry.o ${OBJ}
12+ $(_CC) ${LDFLAGS} -o ${BIN} main.o ${OBJ} 12+ $(_CC) ${LDFLAGS} -o ${BIN} entry.o ${OBJ}
13  13
14 mrproper clean: 14 mrproper clean:
15 rm -rf ${OBJ} ${SOBJ} main.o libsdb.a a.out ${BIN} sdb.dSYM 15 rm -rf ${OBJ} ${SOBJ} entry.o libsdb.a a.out ${BIN} sdb.dSYM
16@@ -76,7 +76,7 @@ 16@@ -78,7 +78,7 @@ mrproper clean:
17 ifneq ($(SILENT),) 17 ifneq ($(SILENT),)
18 @echo LD $< 18 @echo LD $<
19 endif 19 endif
20- $(CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $< 20- $(CC) $(LDFLAGS) -c $(CFLAGS) $(SDB_CFLAGS) -o $@ $<
21+ $(_CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $< 21+ $(_CC) $(LDFLAGS) -c $(CFLAGS) $(SDB_CFLAGS) -o $@ $<
22  22
23 S=$ 23 S=$
24  24
25@@ -84,7 +84,7 @@ 25@@ -86,7 +86,7 @@ S=$
26 ifneq ($(SILENT),) 26 ifneq ($(SILENT),)
27 @echo CC $< 27 @echo CC $<
28 endif 28 endif
29- $(CC) -c ${CPPFLAGS} ${CFLAGS} ${CFLAGS_SHARED} -o $@ $< 29- $(CC) -c ${CPPFLAGS} ${CFLAGS} $(SDB_CFLAGS) ${CFLAGS_SHARED} -o $@ $<
30+ $(_CC) -c ${CPPFLAGS} ${CFLAGS} ${CFLAGS_SHARED} -o $@ $< 30+ $(_CC) -c ${CPPFLAGS} ${CFLAGS} $(SDB_CFLAGS) ${CFLAGS_SHARED} -o $@ $<
31  31
32 %.o.o: %.c 32 %.o.o: %.c
33 ifneq ($(SILENT),) 33 ifneq ($(SILENT),)

File Added: pkgsrc/devel/radare2/patches/patch-shlr_qjs_src_cutils.h
$NetBSD: patch-shlr_qjs_src_cutils.h,v 1.1 2022/12/28 04:36:55 khorben Exp $

* Build fix for NetBSD

--- shlr/qjs/src/cutils.h.orig	2022-12-28 04:15:25.740716462 +0000
+++ shlr/qjs/src/cutils.h
@@ -295,17 +295,22 @@ static inline void put_u8(uint8_t *tab, 
     *tab = val;
 }
 
+#ifndef bswap16
 static inline uint16_t bswap16(uint16_t x)
 {
     return (x >> 8) | (x << 8);
 }
+#endif
 
+#ifndef bswap32
 static inline uint32_t bswap32(uint32_t v)
 {
     return ((v & 0xff000000) >> 24) | ((v & 0x00ff0000) >>  8) |
         ((v & 0x0000ff00) <<  8) | ((v & 0x000000ff) << 24);
 }
+#endif
 
+#ifndef bswap64
 static inline uint64_t bswap64(uint64_t v)
 {
     return ((v & ((uint64_t)0xff << (7 * 8))) >> (7 * 8)) | 
@@ -317,6 +322,7 @@ static inline uint64_t bswap64(uint64_t 
         ((v & ((uint64_t)0xff << (1 * 8))) << (5 * 8)) | 
         ((v & ((uint64_t)0xff << (0 * 8))) << (7 * 8));
 }
+#endif
 
 /* XXX: should take an extra argument to pass slack information to the caller */
 typedef void *DynBufReallocFunc(void *opaque, void *ptr, size_t size);