pwntools: remove unicorn version limitation, upstream is slow, https://github.com/pentoo/pentoo-overlay/pull/734

This commit is contained in:
Anton Bolshakov 2021-07-12 11:14:00 +08:00
parent c92dde820c
commit 790cdf1c00
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 16 additions and 47 deletions

View file

@ -0,0 +1,11 @@
--- a/setup.py.orig 2021-07-12 10:31:28.386008973 +0800
+++ b/setup.py 2021-07-12 11:07:34.551032694 +0800
@@ -59,7 +59,7 @@
'psutil>=3.3.0',
'intervaltree>=3.0',
'sortedcontainers',
- 'unicorn>=1.0.2rc1,<1.0.2rc4', # see unicorn-engine/unicorn#1100, unicorn-engine/unicorn#1170, Gallopsled/pwntools#1538
+ 'unicorn>=1.0.2rc1', # see unicorn-engine/unicorn#1100, unicorn-engine/unicorn#1170, Gallopsled/pwntools#1538
'six>=1.12.0',
'rpyc',
'colored_traceback',

View file

@ -32,7 +32,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/psutil[${PYTHON_USEDEP}]
>=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
dev-python/sortedcontainers[${PYTHON_USEDEP}]
dev-util/unicorn[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
>dev-util/unicorn-1.0.2_rc1[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/rpyc[${PYTHON_USEDEP}]
dev-python/colored-traceback[${PYTHON_USEDEP}]
@ -42,4 +42,5 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch"
"${FILESDIR}/${PN}-4.1.0_update_deps.patch"
"${FILESDIR}/${PN}-4.1.0_update_deps2.patch"
)

View file

@ -32,7 +32,7 @@ RDEPEND="${PYTHON_DEPS}
>=dev-python/psutil-3.3.0[${PYTHON_USEDEP}]
>=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
dev-python/sortedcontainers[${PYTHON_USEDEP}]
<dev-util/unicorn-1.0.2_rc4[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
>dev-util/unicorn-1.0.2_rc1[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
>=dev-python/six-1.12.0[${PYTHON_USEDEP}]
dev-python/rpyc[${PYTHON_USEDEP}]
dev-python/colored-traceback[${PYTHON_USEDEP}]
@ -42,4 +42,6 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch"
"${FILESDIR}/${PN}-4.1.0_update_deps.patch"
#https://github.com/Gallopsled/pwntools/issues/1538
"${FILESDIR}/${PN}-4.1.0_update_deps2.patch"
)

View file

@ -1,45 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="CTF framework and exploit development library"
HOMEPAGE="https://github.com/Gallopsled/pwntools"
SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV}.tar.gz -> ${P}.tar.gz"
#Most is under an MIT license, but a few pieces are under GPL or a BSD 2-clause licence
LICENSE="MIT"
SLOT="0"
#wait for capstone (ROPgadget dep) to become stable
KEYWORDS="~amd64 ~x86"
RDEPEND="${PYTHON_DEPS}
>=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}]
>=dev-python/mako-1.0.0[${PYTHON_USEDEP}]
>=dev-python/pyelftools-0.2.4[${PYTHON_USEDEP}]
>=dev-libs/capstone-3.0.5[python,${PYTHON_USEDEP}]
>=app-exploits/ropgadget-5.3[${PYTHON_USEDEP}]
>=dev-python/pyserial-2.7[${PYTHON_USEDEP}]
>=dev-python/requests-2.0[${PYTHON_USEDEP}]
>=dev-python/pygments-2.0[${PYTHON_USEDEP}]
dev-python/PySocks[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/psutil-3.3.0[${PYTHON_USEDEP}]
>=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
dev-python/sortedcontainers[${PYTHON_USEDEP}]
dev-util/unicorn[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
>=dev-python/six-1.12.0[${PYTHON_USEDEP}]
dev-python/rpyc[${PYTHON_USEDEP}]
dev-python/colored-traceback[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch"
"${FILESDIR}/${PN}-4.1.0_update_deps.patch"
)