diff options
author | Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> | 2023-01-30 23:24:29 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-31 02:00:35 +0000 |
commit | 6ac84dc1e4aec4f49796e82c5471e489406fbaea (patch) | |
tree | 3246064b3dff4bcc829de478dacb42cc0f82064a /dev-util | |
parent | dev-util/pwntools: new package, add 4.9.0, 4.10.0_beta0, 9999 (diff) | |
download | gentoo-6ac84dc1e4aec4f49796e82c5471e489406fbaea.tar.gz gentoo-6ac84dc1e4aec4f49796e82c5471e489406fbaea.tar.bz2 gentoo-6ac84dc1e4aec4f49796e82c5471e489406fbaea.zip |
dev-util/pwndbg: update dependencies
Closes: https://bugs.gentoo.org/889628
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/29349
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/pwndbg/pwndbg-20221219-r2.ebuild | 84 | ||||
-rw-r--r-- | dev-util/pwndbg/pwndbg-99999999.ebuild | 21 |
2 files changed, 95 insertions, 10 deletions
diff --git a/dev-util/pwndbg/pwndbg-20221219-r2.ebuild b/dev-util/pwndbg/pwndbg-20221219-r2.ebuild new file mode 100644 index 000000000000..2c9a6ddb9ae8 --- /dev/null +++ b/dev-util/pwndbg/pwndbg-20221219-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit python-single-r1 wrapper + +DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" +HOMEPAGE="https://github.com/pwndbg/pwndbg" + +if [[ ${PV} == "99999999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" +else + MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" + GDB_PT_DUMP_COMMIT="ebdc24573a4bf075cf3ab6016add9db6baacf977" + SRC_URI=" + https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz + https://github.com/martinradev/gdb-pt-dump/archive/${GDB_PT_DUMP_COMMIT}.tar.gz -> gdb-pt-dump-${GDB_PT_DUMP_COMMIT}.tar.gz + " + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="MIT" +SLOT="0" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sys-devel/gdb[python,${PYTHON_SINGLE_USEDEP}] + $(python_gen_cond_dep ' + >=dev-libs/capstone-4.0.2[python,${PYTHON_USEDEP}] + >=dev-python/psutil-5.9.2[${PYTHON_USEDEP}] + >=dev-python/pycparser-2.21[${PYTHON_USEDEP}] + >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}] + >=dev-python/pygments-2.13.0[${PYTHON_USEDEP}] + >=dev-util/pwntools-4.8.0[${PYTHON_USEDEP}] + >=dev-util/ROPgadget-7.1[${PYTHON_USEDEP}] + >=dev-util/unicorn-2.0.1[python,${PYTHON_USEDEP}] + ')" + +src_prepare() { + if [[ ${PV} == *9999 ]]; then + rm -r gdb-pt-dump/.git || die + else + sed -e "s/__version__ = '\(.*\)'/__version__ = '${PV}'/" \ + -i pwndbg/lib/version.py || die + + rm -r gdb-pt-dump || die + mv "${WORKDIR}/gdb-pt-dump-${GDB_PT_DUMP_COMMIT}" gdb-pt-dump || die + fi + + python_fix_shebang "${S}" + default +} + +src_install() { + insinto /usr/share/${PN} + doins -r pwndbg/ gdbinit.py # ida_script.py + doins -r gdb-pt-dump/ + + python_optimize "${ED}"/usr/share/${PN} + + make_wrapper "pwndbg" \ + "gdb -x \"${EPREFIX}/usr/share/${PN}/gdbinit.py\"" || die + + dodoc {README,DEVELOPING,FEATURES}.md +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + einfo "\nUsage:" + einfo " ~$ pwndbg <program>" + ewarn "\nWARNING!!!" + ewarn "Some pwndbg commands only works with libc debug symbols.\n" + ewarn "See also:" + ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" + ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" + ewarn " * https://wiki.gentoo.org/wiki/Debugging" + fi +} diff --git a/dev-util/pwndbg/pwndbg-99999999.ebuild b/dev-util/pwndbg/pwndbg-99999999.ebuild index bcd220f3d9af..bd3b1a48231a 100644 --- a/dev-util/pwndbg/pwndbg-99999999.ebuild +++ b/dev-util/pwndbg/pwndbg-99999999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -32,15 +32,16 @@ RDEPEND=" ${PYTHON_DEPS} sys-devel/gdb[python,${PYTHON_SINGLE_USEDEP}] $(python_gen_cond_dep ' - dev-libs/capstone[python,${PYTHON_USEDEP}] - dev-python/psutil[${PYTHON_USEDEP}] - dev-python/pycparser[${PYTHON_USEDEP}] - dev-python/pyelftools[${PYTHON_USEDEP}] - dev-python/python-ptrace[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - dev-util/ROPgadget[${PYTHON_USEDEP}] - dev-util/unicorn[python,${PYTHON_USEDEP}] + >=dev-libs/capstone-4.0.2[python,${PYTHON_USEDEP}] + >=dev-python/psutil-5.9.4[${PYTHON_USEDEP}] + >=dev-python/pycparser-2.21[${PYTHON_USEDEP}] + >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}] + >=dev-python/pygments-2.13.0[${PYTHON_USEDEP}] + >=dev-python/tabulate-0.8.10[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.3.0[${PYTHON_USEDEP}] + >=dev-util/pwntools-4.9.0[${PYTHON_USEDEP}] + >=dev-util/ROPgadget-7.2[${PYTHON_USEDEP}] + >=dev-util/unicorn-2.0.1[python,${PYTHON_USEDEP}] ')" src_prepare() { |