Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2017 00:56:08 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447189 - head/lang/python36
Message-ID:  <201708030056.v730u8w7030477@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Thu Aug  3 00:56:08 2017
New Revision: 447189
URL: https://svnweb.freebsd.org/changeset/ports/447189

Log:
  Add a code block for the qemu-user enabled cross build environment.  When using
  this environment in poudriere, CC is not set to the default of /usr/bin/cc and
  a cross-compile toolchain is used.  We need to hand edit this so that the run
  time configuration for python matches what the FreeBSD base system provides.
  
  PR:		208282
  Submitted by:	manu
  Approved by:	portmgr (mat)

Modified:
  head/lang/python36/Makefile

Modified: head/lang/python36/Makefile
==============================================================================
--- head/lang/python36/Makefile	Thu Aug  3 00:55:48 2017	(r447188)
+++ head/lang/python36/Makefile	Thu Aug  3 00:56:08 2017	(r447189)
@@ -3,6 +3,7 @@
 
 PORTNAME=	python
 PORTVERSION=	${PYTHON_PORTVERSION}
+PORTREVISION=	1
 CATEGORIES=	lang python ipv6
 MASTER_SITES=	PYTHON/ftp/python/${PYTHON_PORTVERSION}
 PKGNAMESUFFIX=	${PYTHON_SUFFIX}
@@ -135,6 +136,17 @@ post-patch:
 post-install:
 .if ! ${PORT_OPTIONS:MDEBUG}
 	${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so						# Upstream Issue: http://bugs.python.org/issue17975
+.endif
+# This code block exists for the qemu-user enabled cross build environment.
+# When using this environment in poudriere, CC is not set to the default
+# of /usr/bin/cc and a cross-compile toolchain is used.  We need to hand
+# edit this so that the run time configuration for python matches what the
+# FreeBSD base system provides.  sbruno 02Aug2017
+.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
+	@${REINPLACE_CMD} -e 's=/nxb-bin==' \
+		${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/config-${PYTHON_VER}m/Makefile
 .endif
 	for i in ${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/lib-dynload/*.so; do \
 		${STRIP_CMD} $$i; done								# Strip shared extensions



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