frida: remove python2 support

This commit is contained in:
blshkv 2020-01-14 19:51:49 +08:00
parent 2a5b62fca2
commit a2d0764f6f
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
14 changed files with 20 additions and 145 deletions

View file

@ -1,10 +1,3 @@
DIST frida-12.7.5-py2.7-linux-i686.egg 24553483 BLAKE2B 9176222af791777d5873d9f3c236e5211963046e8bbc38c50ee15369a1035302b8dcc035b895fc3de6980d13222fddb8724b4dd414bcd5e767c0f2b12ebd593c SHA512 5a639b1f19d9e26ca85b606871ebb403c1b7197703442d6504fcb3dd63e454a906739051892e22cd0a234d482b8a9eb60f5d6e911e5a4556cd71dedb4333d9e1
DIST frida-12.7.5-py2.7-linux-x86_64.egg 22927853 BLAKE2B 5b88a509f28a855b4e1dbdd236129a3b4a9915d0ba45b73ae54a5f20a5c6a57f4662c26efb66d0765c451acfa5d18222e7d5e2de8e8a8c8288f3967b535fbbfb SHA512 a9eecc9c2d91c45cee2550d19b72d200c01b2721b6958352a6c46cbd287463046dd1e04110a096f38ab26c8d51d5b5784a028612107865a61197560777d5f073
DIST frida-12.7.5-py3.6-linux-i686.egg 24556026 BLAKE2B 6a387fcf4eb79b73b6ab3af174d75cd4038c9c3cf2b74640487b11dde5fd6cc62656e70e638d228b939adb53f442338d7b84c9cab95e2789f15e65bf67c5d8e2 SHA512 b22626004ecfc0ce1d3b824cdbc9dde0ab057495c9a752cde4f1c6047c9aca5a07ba4667b2e2e4c4c0c5c0539a34349176f58888bbb0d3a03236dae90e625102
DIST frida-12.7.5-py3.6-linux-x86_64.egg 22929865 BLAKE2B b43b7baaced388afca44e811f3c98215ffa5d89debd649885fdbfb7545c306a28fa5904651cad448590b1392363d3596d8673133fad7b35c1c6e954f0ff0a459 SHA512 b679ab0f04d6fcd2da2d6b6942c6ab248c236b8fd90a5ee5dd31883717c77f381add82fee2d673773f90a63fcbf48f54617bea81a0746938c8dee290bcad08b7
DIST frida-12.7.5.tar.gz 6857 BLAKE2B 72c8a7f6d61bbde99f9eeaf4f2c9b7e1a0550f299aff4673bec9b8d369ef4fdb3909f0ca0b3f160f2ec32059259c9a8592232ab3ef89ba7f88da0d93ed078b0a SHA512 832207dda1f8962bb576aa0af2af2bd8988aeb32f80cd0f32bb21578229e8dfc92a4effeb0ec5723a2cd8d34558e618abba188d693d6cd3f6da2900b3d27396f
DIST frida-12.8.0-py2.7-linux-i686.egg 25137863 BLAKE2B 77d7da99b390004f70ef31fc03c4dcbf339b10db382a5276fa464a1d462fefaeb90283afa41a9d8c8f5608b8161a6c1e8973467455131d04b59a0a885df96b7e SHA512 9804729250ca09bdfe95e66f374924e1aed235bc90e736bae9c07da41bb3c507771fd3311310f61c24cc009ffee00dfcddab461bb48b74fc86303e96005813f4
DIST frida-12.8.0-py2.7-linux-x86_64.egg 23557898 BLAKE2B c639697c6658d8fe28b44e0b7f3b9deb1ad4f938c09efb642b1563a1b98b475a520688f137071c12692f4906eed7e66e85ec14a454648ffdc3769b359a5c065d SHA512 1156f443fbdd6750560d798ba4cbf7cc1081f4ceee22705c20ae1016c64b958c407c9821d3152948359db6ebca3332a81ebb8610e49620977e7ca1a54d15816f
DIST frida-12.8.0-py3.6-linux-i686.egg 25141227 BLAKE2B d5077287271c976d1d3386254b45d9c992209d5e4e331e0a779e251a35efc7e210dcee41c49484a5cd1eb0d2df216a265dd09110a2523aa2cdc5b382eb3c1661 SHA512 150ec090ca00bee9601b0e181eaeffbc8ca77ffa884dc2b3345efa4d0521ca2cdb433ded675866a292f46c9f4c4a8901c4018ee22795f593ef0feb868d4d49e2
DIST frida-12.8.0-py3.6-linux-x86_64.egg 23561104 BLAKE2B a831d3be144c8e8cef1c2a54c0df297632bd14868fc34c7c2fcb1e612c1afd0c0842818a9d04f6ca6f99c8587369c7d3baa715d521601b04c98acc9c25ee667f SHA512 1831754911da78b8cd3930f13e4a053f10ce5d2457def8e45f930dc0795eba764b7e9cb53e97e18fd04e281e03da8c730a09ce1f082ca27af9d6d031f4e66bd1
DIST frida-12.8.0.tar.gz 6930 BLAKE2B abc9194d2705fe55a84d0cf74317c1dc3fec75484853572df636efcda8f11c5805913a73db3c5533eca740fca5f92b3a68e89e02e6ab0f4e3d3f193b0c7c5c13 SHA512 91de7208552b007de4c7dc9123e306f4cd4736a68983c67c424417bdea0f983d45616b17d59df98eacceb3ee5e9b88165230dd6e6be9298eb5e04b13d3b4c343

View file

@ -1,60 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{2_7,3_6,3_7} )
inherit distutils-r1
MY_PN="frida"
DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers"
HOMEPAGE="https://github.com/frida/frida"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
x86? (
https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-i686.egg
https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-i686.egg
)
amd64? (
https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-x86_64.egg
https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-x86_64.egg
)"
# arm64? (
# https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-aarch64.egg
# https://files.pythonhosted.org/packages/3.5/f/frida/frida-${PV}-py3.5-linux-aarch64.egg
# )
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="${PYTHON_DEPS}"
S="${WORKDIR}/${MY_PN}-${PV}"
QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/_frida.*\.so"
PATCHES=( "${FILESDIR}/frida-offline.patch" )
src_prepare(){
#copy symlinks to homedir for offline installation
if use amd64; then
cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-x86_64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}"/frida-${PV}-py3.7-linux-x86_64.egg
# elif use arm64; then
# cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-aarch64.egg "${HOME}"
# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"
# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.6-linux-aarch64.egg
# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.7-linux-aarch64.egg
elif use x86; then
cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-i686.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}"/frida-${PV}-py3.7-linux-i686.egg
fi
default
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{2_7,3_6,3_7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
@ -14,11 +14,9 @@ HOMEPAGE="https://github.com/frida/frida"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
x86? (
https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-i686.egg
https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-i686.egg
)
amd64? (
https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-x86_64.egg
https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-x86_64.egg
)"
# arm64? (
@ -42,7 +40,6 @@ PATCHES=( "${FILESDIR}/frida-offline.patch" )
src_prepare(){
#copy symlinks to homedir for offline installation
if use amd64; then
cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-x86_64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}"/frida-${PV}-py3.7-linux-x86_64.egg
# elif use arm64; then
@ -51,7 +48,6 @@ src_prepare(){
# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.6-linux-aarch64.egg
# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.7-linux-aarch64.egg
elif use x86; then
cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-i686.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}"/frida-${PV}-py3.7-linux-i686.egg
fi

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1

View file

@ -1 +0,0 @@
DIST prompt_toolkit-2.0.9.tar.gz 348321 BLAKE2B 060840b024318cc2b54c5c6d97f5db3e3c8c670be4c52cd94030af4980bbc9cfa7ada3e56e29cbfab4b4325d4d35d0576e753942a0199968ae012ec128eb4715 SHA512 8fd0f8f2d05ba81dbdd02e2885652dc8d4e756d3cfc57646328c6ebc3e0e38242604cadc72c7f2479850800c8f0e9f555ffab33df3061800f9a99744d857afd3

View file

@ -1,30 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
inherit distutils-r1
DESCRIPTION="Building powerful interactive command lines in Python"
HOMEPAGE="https://pypi.org/project/prompt_toolkit/ https://github.com/jonathanslenders/python-prompt-toolkit"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
dev-python/wcwidth[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
python_test() {
py.test || die
}

View file

@ -1,2 +1 @@
DIST frida-tools-5.1.0.tar.gz 26985 BLAKE2B 581d7026d019928a989b35a0957dc2e917ce3479ff18651423ad6eed20290fabec416baecb90e7cecb41c6352a325ad31729548d28cf1ddaafc4368a62f979bf SHA512 9c341ac256a6373facb1fe53b3615f1d18fa80ffcafd0bf61de4e793512cd6ea79ada3f6b1783ec292db4fc1cd0e59d2b813809945b3adb780d3bd08f5a29276
DIST frida-tools-5.3.0.tar.gz 27220 BLAKE2B bb0f3ae950461763be6ab0a965d839825f3eb380fa5bc903f5de44656a7f2e13cf91bd640b696c689738231e6d75fa1f4e2b89c00392e6a3b7f19f82e7b7edce SHA512 f738b88396241bf93b90dc95aa7f78eac77cda7091405c88995dc63a0aefdf7e4af0a11373ca654e9967b9be148455c986d6c07c2e5cbd779bd451cc89c3f24c

View file

@ -1,24 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Frida CLI tools"
HOMEPAGE="https://github.com/frida/frida-tools"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${PV}.tar.gz"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/colorama[${PYTHON_USEDEP}]
>=dev-python/frida-python-12.7.3[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-2.0.0[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]"

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1

View file

@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
DESCRIPTION="Pentoo mobile meta ebuild"
HOMEPAGE="http://www.pentoo.ch"
@ -18,10 +18,12 @@ KEYWORDS="amd64 arm x86"
#dev-util/qark
#python2 only:
#dev-util/appmon
PDEPEND="dev-util/frida-tools
pentoo-full? (
dev-util/objection
dev-util/appmon
amd64? ( dev-util/lief-bin )
)
android? ( !arm? ( dev-util/apktool

View file

@ -196,7 +196,7 @@ dev-python/vulndb
=dev-python/pycryptodome-3.4*
=dev-python/frida-python-12*
~dev-python/prompt_toolkit-2.0.9
=dev-python/prompt_toolkit-2.0*
#2.0.10 does not support python2.7
dev-python/pyDes

View file

@ -119,3 +119,6 @@ sci-libs/mkl
#https://bugs.gentoo.org/684734
~dev-python/pydispatcher-2.1.2
#python2 only
dev-util/appmon

View file

@ -14,13 +14,10 @@ net-analyzer/w3af
app-forensics/libbfio
#required for dev-python/prompt_toolkit 2
=dev-python/ipython-7*
#gentoo masked, but we are not ready
net-analyzer/dsniff
#ghidra
#required by ghidra
~virtual/jdk-11
#masked in Gentoo, required by beef