Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2020 13:52:33 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536770 - in head/lang: python37 python38
Message-ID:  <202005281352.04SDqXOB087911@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005281352.04SDqXOB087911>