commit:     beb3c55a7e8faae51793b5a073466509c73dbc85
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Mon Jun  2 19:37:59 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 21:31:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beb3c55a

dev-debug/pwndbg: add 20250530

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Part-of: https://github.com/gentoo/gentoo/pull/42406
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/pwndbg/Manifest               |  1 +
 dev-debug/pwndbg/pwndbg-20250530.ebuild | 81 +++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-debug/pwndbg/Manifest b/dev-debug/pwndbg/Manifest
index 44cecbdc1bad..db20fcee6c1f 100644
--- a/dev-debug/pwndbg/Manifest
+++ b/dev-debug/pwndbg/Manifest
@@ -1,2 +1,3 @@
 DIST pwndbg-20250219.tar.gz 8996907 BLAKE2B 
7774c86b9e00186c39db29090c39bbbfa6ce1b0ab565de8a524687afccfdb1ceab829503ac6340f0f32d74ed95020bcd136b1e0e2d3f256a15e5e3ffe17a963b
 SHA512 
18ec21a1b978ef9edefb6f979d1330a6e2f48d6a005b391ebac5aaf7b9e866de7bd497b983bb9eef52e50b4fe82ea901036ca86c308e8962413a17d5733e7efe
 DIST pwndbg-20250418.tar.gz 9022280 BLAKE2B 
8cc3cede9abc024e485737c0c38c525456e489eb12beb908bf9bd44fbb33ed1b27a206237452b7bc741fc569a61874cc134725f90fd04d6e46723704a9fb466e
 SHA512 
34afa5ee756f405f662f494d47a0cc324ad193f9083ef371c9946681ec58e0ce6c1a5097b3f3b88ab58beb7941317e9a6a0dc0ee643834fc90ccac2f07576de7
+DIST pwndbg-20250530.tar.gz 11924779 BLAKE2B 
ad372272008d3227c4ba6668745532602242ecfb0359bc10368cc55e8a9d443d923c39e3130f615b9d80c2d8a18e40837965d02dcf034f583f5ce54e398aa6b4
 SHA512 
10bb330f8a5c15eb82ab1f4767dd67146fa8dfe2b8b1f62190f46cdc54fbe1109d9e987c4f7848ea3e9844c1be6cb78f9e74e1ca59d1620b802d0a1d789bd290

diff --git a/dev-debug/pwndbg/pwndbg-20250530.ebuild 
b/dev-debug/pwndbg/pwndbg-20250530.ebuild
new file mode 100644
index 000000000000..a8d053a4c16e
--- /dev/null
+++ b/dev-debug/pwndbg/pwndbg-20250530.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-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}"
+       SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86"
+       S="${WORKDIR}/${PN}-${MY_PV}"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+       dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
+       ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}]
+       $(python_gen_cond_dep '
+               >=dev-libs/capstone-5.0.3[python,${PYTHON_USEDEP}]
+               >=dev-python/psutil-6.1.1[${PYTHON_USEDEP}]
+               >=dev-python/pycparser-2.22[${PYTHON_USEDEP}]
+               >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}]
+               >=dev-python/pygments-2.18.0[${PYTHON_USEDEP}]
+               >=dev-python/requests-2.32.3[${PYTHON_USEDEP}]
+               >=dev-python/rich-13.7.1[${PYTHON_USEDEP}]
+               >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
+               >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
+               >=dev-python/typing-extensions-4.12.0[${PYTHON_USEDEP}]
+               >=dev-util/pwntools-4.14.0[${PYTHON_USEDEP}]
+               >=dev-util/ROPgadget-7.3[${PYTHON_USEDEP}]
+               >=dev-util/unicorn-2.1.3[python,${PYTHON_USEDEP}]
+       ')
+"
+
+# Tests are architectur-specific (precompiled binaries)
+RESTRICT="test"
+
+src_install() {
+       distutils-r1_src_install
+
+       insinto /usr/share/${PN}
+       doins gdbinit.py
+
+       # Signal pwndbg not to create it's own python venv (Bug #918705).
+       # See: 
https://github.com/pwndbg/pwndbg/commit/139b7542cd9567eaff32bd713df971b6ac5b81de
+       touch "${ED}/usr/share/${PN}/.skip-venv" || die
+
+       python_optimize "${ED}"/usr/share/${PN}
+
+       make_wrapper "pwndbg" \
+               "gdb -x \"${EPREFIX}/usr/share/${PN}/gdbinit.py\"" || die
+
+       dodoc README.md
+       dodoc -r docs
+}
+
+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
+}

Reply via email to