summaryrefslogtreecommitdiff
path: root/lang/python33
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2017-06-06 12:56:47 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2017-06-06 12:56:47 +0000
commit2f6fe8dcec7d5bc9ac62ebe4ba2510257cb470de (patch)
treedc349266ef50b39f1af7ccb996591cf377357316 /lang/python33
parentdatabases/freetds: Update version 1.00.39=>1.0040 (diff)
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
Notes
Notes: svn path=/head/; revision=442759
Diffstat (limited to 'lang/python33')
-rw-r--r--lang/python33/Makefile4
-rw-r--r--lang/python33/pkg-plist1
2 files changed, 4 insertions, 1 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index c5a888714ef4..00f05359baea 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -2,7 +2,7 @@
PORTNAME= python33
PORTVERSION= ${PYTHON_PORTVERSION}
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
DISTNAME= Python-${PORTVERSION}
@@ -121,5 +121,7 @@ post-install:
.endif
for i in ${STAGEDIR}${PREFIX}/lib/python3.3/lib-dynload/*.so; do \
${STRIP_CMD} $$i; done # Strip shared extensions
+ ${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \
+ ${STAGEDIR}${PREFIX}/lib/libpython3.3${ABIFLAGS}.so.1-gdb.py
.include <bsd.port.mk>
diff --git a/lang/python33/pkg-plist b/lang/python33/pkg-plist
index 660da61abe1a..6ffd00cf78da 100644
--- a/lang/python33/pkg-plist
+++ b/lang/python33/pkg-plist
@@ -6,6 +6,7 @@ bin/python3.3-config
bin/pyvenv-3.3
lib/libpython3.3%%ABI%%.so
lib/libpython3.3%%ABI%%.so.1
+lib/libpython3.3%%ABI%%.so.1-gdb.py
libdata/pkgconfig/python-3.3.pc
man/man1/python3.3.1.gz
include/python3.3%%ABI%%/accu.h