svn commit: r452151 - head/lang/python27
Antoine Brodin
antoine at FreeBSD.org
Sun Oct 15 15:01:16 UTC 2017
Author: antoine
Date: Sun Oct 15 15:01:15 2017
New Revision: 452151
URL: https://svnweb.freebsd.org/changeset/ports/452151
Log:
When cross-compiling with qemu, recompile _sysconfigdata.py after patching it
Reported by: rene@
With hat: portmgr
Modified:
head/lang/python27/Makefile
Modified: head/lang/python27/Makefile
==============================================================================
--- head/lang/python27/Makefile Sun Oct 15 14:33:54 2017 (r452150)
+++ head/lang/python27/Makefile Sun Oct 15 15:01:15 2017 (r452151)
@@ -2,6 +2,7 @@
PORTNAME= python27
PORTVERSION= ${PYTHON_PORTVERSION}
+PORTREVISION= 1
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
DISTNAME= Python-${PORTVERSION}
@@ -142,6 +143,12 @@ post-install:
# FreeBSD base system provides. sbruno 02Aug2017
.if ${CC} == /nxb-bin/usr/bin/cc
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
+ ${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py
+ @cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+ ./python -E -m compileall -d ${PREFIX}/lib/python2.7 \
+ ${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py
+ @cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+ ./python -E -O -m compileall -d ${PREFIX}/lib/python2.7 \
${STAGEDIR}${PREFIX}/lib/python2.7/_sysconfigdata.py
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
${STAGEDIR}${PREFIX}/lib/python2.7/config/Makefile
More information about the svn-ports-head
mailing list