Date: Sun, 15 Oct 2017 15:01:15 +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: r452151 - head/lang/python27 Message-ID: <201710151501.v9FF1Fpw062392@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710151501.v9FF1Fpw062392>