svn commit: r536770 - in head/lang: python37 python38

Antoine Brodin antoine at FreeBSD.org
Thu May 28 13:52:34 UTC 2020


Author: antoine
Date: Thu May 28 13:52:33 2020
New Revision: 536770
URL: https://svnweb.freebsd.org/changeset/ports/536770

Log:
  Recompile _sysconfigdata.py after reinplacing it
  
  PR:		246618
  With hat:	portmgr

Modified:
  head/lang/python37/Makefile
  head/lang/python38/Makefile

Modified: head/lang/python37/Makefile
==============================================================================
--- head/lang/python37/Makefile	Thu May 28 13:36:43 2020	(r536769)
+++ head/lang/python37/Makefile	Thu May 28 13:52:33 2020	(r536770)
@@ -125,6 +125,12 @@ post-install:
 .if ${CC} == /nxb-bin/usr/bin/cc
 	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
+	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+		./python -E -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
+	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+		./python -E -O -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
 	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/config-${PYTHON_VER}m/Makefile
 .endif

Modified: head/lang/python38/Makefile
==============================================================================
--- head/lang/python38/Makefile	Thu May 28 13:36:43 2020	(r536769)
+++ head/lang/python38/Makefile	Thu May 28 13:52:33 2020	(r536770)
@@ -132,6 +132,12 @@ post-install:
 .if ${CC} == /nxb-bin/usr/bin/cc
 	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
+	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+		./python -E -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
+	@cd ${WRKSRC} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
+		./python -E -O -m compileall -d ${PREFIX}/lib/python${PYTHON_VER} \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/_sysconfigdata_m_freebsd${OSREL:R}_.py
 	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
 		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/config-${PYTHON_VER}m/Makefile
 .endif


More information about the svn-ports-head mailing list