summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2024-09-09 22:55:30 +0200
committerSam James <sam@gentoo.org>2024-09-09 22:08:15 +0100
commit7e30626942698b46c88591228da17e919394fd33 (patch)
tree9661e3471a791b36998fa571072391af5f6a4a33 /dev-debug/pwndbg
parentdev-debug/pwndbg: sync live (diff)
downloadgentoo-7e30626942698b46c88591228da17e919394fd33.tar.gz
gentoo-7e30626942698b46c88591228da17e919394fd33.tar.bz2
gentoo-7e30626942698b46c88591228da17e919394fd33.zip
dev-debug/pwndbg: drop 20230717-r1
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/38538 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-debug/pwndbg')
-rw-r--r--dev-debug/pwndbg/Manifest2
-rw-r--r--dev-debug/pwndbg/files/pwndbg-20230717-no-venv.patch46
-rw-r--r--dev-debug/pwndbg/pwndbg-20230717-r1.ebuild90
3 files changed, 0 insertions, 138 deletions
diff --git a/dev-debug/pwndbg/Manifest b/dev-debug/pwndbg/Manifest
index 1c1bb274e7ab..0ebbe8c1a60b 100644
--- a/dev-debug/pwndbg/Manifest
+++ b/dev-debug/pwndbg/Manifest
@@ -1,4 +1,2 @@
-DIST gdb-pt-dump-ebdc24573a4bf075cf3ab6016add9db6baacf977.tar.gz 385989 BLAKE2B b7582289f83fd0c76b8ef2a04540db979b0f599b6b711e17541e2804b93bcffe6fd611d43101c96644a7324398eea5df02326267b4e201564929de956849b719 SHA512 57701b5fdd4c69be79a451f08fa6d7cbd43a0963cfd7689443676b68ece96154ccb61121d4a770d6e519d3142f99c589df1143b0ff8308547c06fb0e87e187db
-DIST pwndbg-20230717.tar.gz 8392017 BLAKE2B e373a7408366090f58385dac8dfcdd13702c475117a35158a1a149d149c9a2cbf5f2702be33aeab537451cfd990b5253e9bc0283fa5ae197c9cceb680e65a724 SHA512 d261ed992327d62b0b3e7cc002d3185435748e27cc2ce0085d438848ef1bdb0b3921ae5c1ce19c25e49d52b10f8340eb67c4e05fc197d2adeb888b47e2c158ba
DIST pwndbg-20240214.tar.gz 8536795 BLAKE2B 75524fb9f701769f2a117b4aa1158f648cd854fd38475c20bee4b7ae27ae8f331c40367738a467dd5c7f8994ac80efd3290a64e59ffb9e5a240546be8fb1c6e8 SHA512 3d55e762cecd2b42b9debb36f3ee0a8983be744192d4c1a0424517b0fd8ae8fb329197228a88ddd726e640f1bcd0e0bcdc7e95a64e041630e20cfcbf6acff1aa
DIST pwndbg-20240829.tar.gz 8649207 BLAKE2B 5333c318ba3ccbaaac459f9c7b917d3defa1ad712f45555b31eb76774089e55e80720744dc92813ad8234302445e3bed3237c2275c795a49856028dec416dcc2 SHA512 503924742d4a6d767ec369bb1e37c931afb5ab09f2b4cfa048765ce7a61fb6adcda2576cdda64dd4cf74de27d83b13b4dc09d6e7480e01ae8f646c5394992d43
diff --git a/dev-debug/pwndbg/files/pwndbg-20230717-no-venv.patch b/dev-debug/pwndbg/files/pwndbg-20230717-no-venv.patch
deleted file mode 100644
index 4011236240f9..000000000000
--- a/dev-debug/pwndbg/files/pwndbg-20230717-no-venv.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 6a351680675123ccc0d8fb192f28f3c654979c92 Mon Sep 17 00:00:00 2001
-From: Stefan Gloor <code@stefan-gloor.ch>
-Date: Tue, 28 Nov 2023 20:24:26 +0100
-Subject: [PATCH] Use global python packages instead of virtualenv
-Bug: https://bugs.gentoo.org/918705
-
-The upstream install script creates a .venv and installs the
-dependencies there. This patch allows the normal python packages to be
-used.
-
-Signed-off-by: Stefan Gloor <code@stefan-gloor.ch>
---- a/gdbinit.py
-+++ b/gdbinit.py
-@@ -20,29 +20,6 @@ directory, file = path.split(__file__)
- directory = path.expanduser(directory)
- directory = path.abspath(directory)
-
--# Get virtualenv's site-packages path
--venv_path = os.environ.get("PWNDBG_VENV_PATH")
--if not venv_path:
-- venv_path = os.path.join(directory, ".venv")
--
--if not os.path.exists(venv_path):
-- print(f"Cannot find Pwndbg virtualenv directory: {venv_path}: please re-run setup.sh")
-- sys.exit(1)
--
--site_pkgs_path = glob(os.path.join(venv_path, "lib/*/site-packages"))[0]
--
--# add virtualenv's site-packages to sys.path and run .pth files
--site.addsitedir(site_pkgs_path)
--
--# remove existing, system-level site-packages from sys.path
--for site_packages in site.getsitepackages():
-- if site_packages in sys.path:
-- sys.path.remove(site_packages)
--
--# Set virtualenv's bin path (needed for utility tools like ropper, pwntools etc)
--bin_path = os.path.join(venv_path, "bin")
--os.environ["PATH"] = bin_path + os.pathsep + os.environ.get("PATH")
--
- # Add gdb-pt-dump directory to sys.path so it can be imported
- gdbpt = path.join(directory, "gdb-pt-dump")
- sys.path.append(directory)
---
-2.41.0
-
diff --git a/dev-debug/pwndbg/pwndbg-20230717-r1.ebuild b/dev-debug/pwndbg/pwndbg-20230717-r1.ebuild
deleted file mode 100644
index 78a314abc39d..000000000000
--- a/dev-debug/pwndbg/pwndbg-20230717-r1.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-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 ~arm64 x86"
- S="${WORKDIR}/${PN}-${MY_PV}"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="
- ${PYTHON_DEPS}
- dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
- $(python_gen_cond_dep '
- >=dev-libs/capstone-5.0_rc4[python,${PYTHON_USEDEP}]
- >=dev-python/psutil-5.9.5[${PYTHON_USEDEP}]
- >=dev-python/pycparser-2.21[${PYTHON_USEDEP}]
- >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}]
- >=dev-python/pygments-2.15.1[${PYTHON_USEDEP}]
- >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.6.1[${PYTHON_USEDEP}]
- >=dev-util/pwntools-4.10.0[${PYTHON_USEDEP}]
- >=dev-util/ROPgadget-7.2[${PYTHON_USEDEP}]
- >=dev-util/unicorn-2.0.1[python,${PYTHON_USEDEP}]
- ')"
-
-PATCHES=(
- "${FILESDIR}/${P}-no-venv.patch" # Bug 918705
-)
-
-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
-}