lang/python{27,33,34,35,36}: Install GDB debugging script
Users with a GDB that supports [1] Python extensions will automatically load the extra debugging extensions when debugging programs that are linked with libpythonX.Y.so.foo. This enables extensions like 'py-bt' and 'py-frame' as described in the Fedora Wiki Article: Easier Python Debugging [2], which can be useful for debugging Python program state from crashes in C extensions, for example. [1] PYTHON option enabled in devel/gdb [2] https://fedoraproject.org/wiki/Features/EasierPythonDebugging PR: 203021 Submitted by: cem Reviewed by: mat, koobs (python) Approved by: koobs (python) Differential Revision: D10398
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= python
|
||||
PORTVERSION= ${PYTHON_PORTVERSION}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang python ipv6
|
||||
MASTER_SITES= PYTHON/ftp/python/${PYTHON_PORTVERSION}
|
||||
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
|
||||
@@ -131,5 +131,7 @@ post-install:
|
||||
.endif
|
||||
for i in ${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/lib-dynload/*.so; do \
|
||||
${STRIP_CMD} $$i; done # Strip shared extensions
|
||||
${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \
|
||||
${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1.0-gdb.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -106,6 +106,7 @@ include/python%%XYDOT%%%%ABI%%/warnings.h
|
||||
include/python%%XYDOT%%%%ABI%%/weakrefobject.h
|
||||
lib/libpython%%XYDOT%%%%ABI%%.so
|
||||
lib/libpython%%XYDOT%%%%ABI%%.so.1.0
|
||||
lib/libpython%%XYDOT%%%%ABI%%.so.1.0-gdb.py
|
||||
lib/python%%XYDOT%%/LICENSE.txt
|
||||
lib/python%%XYDOT%%/__future__.py
|
||||
lib/python%%XYDOT%%/__phello__.foo.py
|
||||
|
||||
Reference in New Issue
Block a user