Hi,

This port can now be fetched as a tagged version instead of a commit; it
looks like upstream started tagging releases in 2020 a few months after
the last time the port was updated.

The existing port sets -DVGA_amd64 to only compile support for
disassembling amd64. Trying to load a binary for any other architecture
in angr leads to a crash with a NULL pointer dereference. The
ISA-specific disassembly functions are set to NULL pointers unless
either a flag for the specific ISA or MULTIARCH is set during
compilation.

Upstream's build process through pip compiles this with MULTIARCH, and I
think the port should also. Analyzing at least i386 and arm64 binaries
on amd64 works for me so far.

diff /usr/ports
commit - f8083bbcde77f23eb0ab33d2fa3d6fa9ac96daf2
path + /usr/ports
blob - 07ecc5b6126a8c93eb316729d660d96528bbaa83
file + devel/angr/vex/Makefile
--- devel/angr/vex/Makefile
+++ devel/angr/vex/Makefile
@@ -1,15 +1,15 @@
 COMMENT =      modified version of Valgrind VEX for PyVEX
 
-GH_COMMIT =    939f423dbb6282cf14bc5d90ff8b37c2c5992e65
+V = 9.1.12332
+GH_TAGNAME =   v${V}
 GH_ACCOUNT =   angr
 GH_PROJECT =   vex
-DISTNAME =     angr-vex-9.0
-REVISION =     0
+DISTNAME =     angr-vex-${V}
 
 USE_GMAKE =    Yes
 MAKE_FILE =    Makefile-gcc
 
-CFLAGS +=      -DVGA_amd64
+MAKE_ENV +=    MULTIARCH=1
 
 # ${WRKSRC}/orig_arm/nanoarm.orig
 PATCHORIG =    .pat.orig
blob - a8339598b7efc743f441f9296cb54971049bcbc3
file + devel/angr/vex/distinfo
--- devel/angr/vex/distinfo
+++ devel/angr/vex/distinfo
@@ -1,2 +1,2 @@
-SHA256 (angr-vex-9.0-939f423d.tar.gz) = 
R0bBVVEk0By2a/u/DufIidxuRoJW24yqSaeab+pnocI=
-SIZE (angr-vex-9.0-939f423d.tar.gz) = 3592668
+SHA256 (angr-vex-9.1.12332.tar.gz) = 
5bzXPd8rI0C9lUy4aHT95KsK08H+Iw/IG1bTnEBTRiQ=
+SIZE (angr-vex-9.1.12332.tar.gz) = 3591055

Reply via email to