svn commit: r442759 - in head/lang: python27 python33 python34 python35 python36
Kubilay Kocak
koobs at FreeBSD.org
Tue Jun 6 12:56:50 UTC 2017
Author: koobs
Date: Tue Jun 6 12:56:47 2017
New Revision: 442759
URL: https://svnweb.freebsd.org/changeset/ports/442759
Log:
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
Modified:
head/lang/python27/Makefile
head/lang/python27/pkg-plist
head/lang/python33/Makefile
head/lang/python33/pkg-plist
head/lang/python34/Makefile
head/lang/python34/pkg-plist
head/lang/python35/Makefile
head/lang/python35/pkg-plist
head/lang/python36/Makefile
head/lang/python36/pkg-plist
Modified: head/lang/python27/Makefile
==============================================================================
--- head/lang/python27/Makefile Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python27/Makefile Tue Jun 6 12:56:47 2017 (r442759)
@@ -2,7 +2,7 @@
PORTNAME= python27
PORTVERSION= ${PYTHON_PORTVERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
DISTNAME= Python-${PORTVERSION}
@@ -129,5 +129,7 @@ post-patch:
post-install:
for i in ${STAGEDIR}${PREFIX}/lib/python2.7/lib-dynload/*.so; do \
${STRIP_CMD} $$i; done # Strip shared extensions
+ ${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \
+ ${STAGEDIR}${PREFIX}/lib/libpython2.7.so.1-gdb.py
.include <bsd.port.mk>
Modified: head/lang/python27/pkg-plist
==============================================================================
--- head/lang/python27/pkg-plist Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python27/pkg-plist Tue Jun 6 12:56:47 2017 (r442759)
@@ -97,6 +97,7 @@ include/python2.7/warnings.h
include/python2.7/weakrefobject.h
lib/libpython2.7.so
lib/libpython2.7.so.1
+lib/libpython2.7.so.1-gdb.py
lib/python2.7/BaseHTTPServer.py
lib/python2.7/BaseHTTPServer.pyc
lib/python2.7/BaseHTTPServer.pyo
Modified: head/lang/python33/Makefile
==============================================================================
--- head/lang/python33/Makefile Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python33/Makefile Tue Jun 6 12:56:47 2017 (r442759)
@@ -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>
Modified: head/lang/python33/pkg-plist
==============================================================================
--- head/lang/python33/pkg-plist Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python33/pkg-plist Tue Jun 6 12:56:47 2017 (r442759)
@@ -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
Modified: head/lang/python34/Makefile
==============================================================================
--- head/lang/python34/Makefile Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python34/Makefile Tue Jun 6 12:56:47 2017 (r442759)
@@ -3,7 +3,7 @@
PORTNAME= python34
PORTVERSION= ${PYTHON_PORTVERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
DISTNAME= Python-${PORTVERSION}
@@ -126,5 +126,7 @@ post-install:
.endif
for i in ${STAGEDIR}${PREFIX}/lib/python3.4/lib-dynload/*.so; do \
${STRIP_CMD} $$i; done # Strip shared extensions
+ ${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \
+ ${STAGEDIR}${PREFIX}/lib/libpython3.4${ABIFLAGS}.so.1-gdb.py
.include <bsd.port.mk>
Modified: head/lang/python34/pkg-plist
==============================================================================
--- head/lang/python34/pkg-plist Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python34/pkg-plist Tue Jun 6 12:56:47 2017 (r442759)
@@ -101,6 +101,7 @@ include/python3.4%%ABI%%/warnings.h
include/python3.4%%ABI%%/weakrefobject.h
lib/libpython3.4%%ABI%%.so
lib/libpython3.4%%ABI%%.so.1
+lib/libpython3.4%%ABI%%.so.1-gdb.py
lib/python3.4/LICENSE.txt
lib/python3.4/__future__.py
lib/python3.4/__phello__.foo.py
Modified: head/lang/python35/Makefile
==============================================================================
--- head/lang/python35/Makefile Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python35/Makefile Tue Jun 6 12:56:47 2017 (r442759)
@@ -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}
@@ -136,5 +136,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>
Modified: head/lang/python35/pkg-plist
==============================================================================
--- head/lang/python35/pkg-plist Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python35/pkg-plist Tue Jun 6 12:56:47 2017 (r442759)
@@ -104,6 +104,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
Modified: head/lang/python36/Makefile
==============================================================================
--- head/lang/python36/Makefile Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python36/Makefile Tue Jun 6 12:56:47 2017 (r442759)
@@ -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>
Modified: head/lang/python36/pkg-plist
==============================================================================
--- head/lang/python36/pkg-plist Tue Jun 6 12:54:27 2017 (r442758)
+++ head/lang/python36/pkg-plist Tue Jun 6 12:56:47 2017 (r442759)
@@ -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
More information about the svn-ports-all
mailing list