summaryrefslogtreecommitdiff
path: root/security/py-pyvex/files/patch-setup.py
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-03 00:21:33 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-03 00:21:33 +0000
commiteec85f9b323a246e58b0040ec1d9b4795cdba59a (patch)
treea9310441852443002f1a6ace3fa969dcd801a7f2 /security/py-pyvex/files/patch-setup.py
parentgraphics/sekrit-twc-zimg: update to 2.9.3 (diff)
New port: security/py-pyvex
PyVEX provides an interface that translates binary code into the VEX intermediate represenation (IR). WWW: https://github.com/angr/pyvex PR: 244562
Notes
Notes: svn path=/head/; revision=527657
Diffstat (limited to 'security/py-pyvex/files/patch-setup.py')
-rw-r--r--security/py-pyvex/files/patch-setup.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/security/py-pyvex/files/patch-setup.py b/security/py-pyvex/files/patch-setup.py
new file mode 100644
index 000000000000..2a0bbd077218
--- /dev/null
+++ b/security/py-pyvex/files/patch-setup.py
@@ -0,0 +1,28 @@
+--- setup.py.orig 2020-01-08 00:58:26 UTC
++++ setup.py
+@@ -73,10 +73,8 @@ def _build_vex():
+ e['MULTIARCH'] = '1'
+ e['DEBUG'] = '1'
+
+- cmd1 = ['nmake', '/f', 'Makefile-msvc', 'all']
+- cmd2 = ['make', '-f', 'Makefile-gcc', '-j', str(multiprocessing.cpu_count()), 'all']
+- cmd3 = ['gmake', '-f', 'Makefile-gcc', '-j', str(multiprocessing.cpu_count()), 'all']
+- for cmd in (cmd1, cmd2, cmd3):
++ cmd3 = ['gmake', '-f', 'Makefile-gcc', '-j', '%%MAKE_JOBS_NUMBER%%', 'all']
++ for cmd in (cmd3,):
+ try:
+ if subprocess.call(cmd, cwd=VEX_PATH, env=e) == 0:
+ break
+@@ -91,10 +89,8 @@ def _build_pyvex():
+ e['VEX_INCLUDE_PATH'] = os.path.join(VEX_PATH, 'pub')
+ e['VEX_LIB_FILE'] = os.path.join(VEX_PATH, 'libvex.lib')
+
+- cmd1 = ['nmake', '/f', 'Makefile-msvc']
+- cmd2 = ['make', '-j', str(multiprocessing.cpu_count())]
+- cmd3 = ['gmake', '-j', str(multiprocessing.cpu_count())]
+- for cmd in (cmd1, cmd2, cmd3):
++ cmd3 = ['gmake', '-j', '%%MAKE_JOBS_NUMBER%%']
++ for cmd in (cmd3,):
+ try:
+ if subprocess.call(cmd, cwd='pyvex_c', env=e) == 0:
+ break