Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: capstone to version 5.0.1 #11254

Open
wants to merge 1 commit into
base: 3.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions SPECS-EXTENDED/capstone/capstone-5.0.1-ocaml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ru capstone-5.0.1/bindings/ocaml/Makefile capstone-5.0.1.new/bindings/ocaml/Makefile
--- capstone-5.0.1/bindings/ocaml/Makefile 2023-08-22 18:03:55.000000000 +0200
+++ capstone-5.0.1.new/bindings/ocaml/Makefile 2023-11-12 10:28:45.320198200 +0100
@@ -2,7 +2,7 @@
# By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015

LIB = capstone
-FLAGS = '-Wall -Wextra -Wwrite-strings'
+FLAGS = '-Wall -Wextra -Wwrite-strings -I ../../include -L ../../'
PYTHON2 ?= python

all: arm_const.cmxa arm64_const.cmxa m680x_const.cmxa mips_const.cmxa ppc_const.cmxa sparc_const.cmxa sysz_const.cmxa x86_const.cmxa xcore_const.cmxa arm.cmxa arm64.cmxa m680x.cmxa mips.cmxa ppc.cmxa x86.cmxa sparc.cmxa systemz.cmxa xcore.cmxa capstone.cmxa test_basic.cmx test_detail.cmx test_x86.cmx test_arm.cmx test_arm64.cmx test_mips.cmx test_ppc.cmx test_sparc.cmx test_systemz.cmx test_xcore.cmx test_m680x.cmx ocaml.o
22 changes: 22 additions & 0 deletions SPECS-EXTENDED/capstone/capstone-5.0.1-platform.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff -uNr capstone-5.0.orig/bindings/python/setup.py capstone-5.0/bindings/python/setup.py
--- capstone-5.0.orig/bindings/python/setup.py 2023-08-07 16:55:34.314825530 -0500
+++ capstone-5.0/bindings/python/setup.py 2023-08-07 21:06:59.182376477 -0500
@@ -201,15 +201,9 @@
idx = sys.argv.index('bdist_wheel') + 1
sys.argv.insert(idx, '--plat-name')
name = get_platform()
- if 'linux' in name:
- # linux_* platform tags are disallowed because the python ecosystem is fubar
- # linux builds should be built in the centos 5 vm for maximum compatibility
- # see https://github.com/pypa/manylinux
- # see also https://github.com/angr/angr-dev/blob/master/bdist.sh
- sys.argv.insert(idx + 1, 'manylinux1_' + platform.machine())
- else:
- # https://www.python.org/dev/peps/pep-0425/
- sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_'))
+ pyversion = platform.python_version()
+ major_version, minor_version = map(int, pyversion.split('.')[:2])
+ sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_') + "_" + str(major_version) + str(minor_version))

setup(
provides=['capstone'],
5 changes: 3 additions & 2 deletions SPECS-EXTENDED/capstone/capstone.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"Signatures": {
"capstone-4.0.2.tar.gz": "7c81d798022f81e7507f1a60d6817f63aa76e489aa4e7055255f21a22f5e526a"
"capstone-5.0.1.tar.gz": "2b9c66915923fdc42e0e32e2a9d7d83d3534a45bb235e163a70047951890c01a",
"cstool.1": "654b4c5a83b415a4fb993f8177a225d1a596f95da7fbc91d37613dc31050f00c"
}
}
}
Loading