From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 20 02:30:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C54BBA07 for ; Mon, 20 Jan 2014 02:30:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A59FC12AB for ; Mon, 20 Jan 2014 02:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0K2U1hp057199 for ; Mon, 20 Jan 2014 02:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0K2U1ER057198; Mon, 20 Jan 2014 02:30:01 GMT (envelope-from gnats) Date: Mon, 20 Jan 2014 02:30:01 GMT Message-Id: <201401200230.s0K2U1ER057198@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Nathan Whitehorn Subject: Re: ports/185884: [patch] Miscellaneous ports fixes for python 3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Nathan Whitehorn List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 02:30:01 -0000 The following reply was made to PR ports/185884; it has been noted by GNATS. From: Nathan Whitehorn To: bug-followup@FreeBSD.org, nwhitehorn@FreeBSD.org Cc: Subject: Re: ports/185884: [patch] Miscellaneous ports fixes for python 3 Date: Sun, 19 Jan 2014 20:23:37 -0600 This is a multi-part message in MIME format. --Boundary_(ID_oMvNhGvWk9XAVy90uCVYmw) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT An updated patch with a few more plist fixes. -Nathan --Boundary_(ID_oMvNhGvWk9XAVy90uCVYmw) Content-type: text/plain; CHARSET=US-ASCII; name=py3fixes.diff Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=py3fixes.diff Index: devel/llvm33/Makefile =================================================================== --- devel/llvm33/Makefile (revision 340317) +++ devel/llvm33/Makefile (working copy) @@ -149,6 +149,8 @@ CONFIGURE_ARGS+= --with-optimize-option=-O2 .endif +CONFIGURE_ARGS+= --with-python=/usr/local/bin/python2 + post-patch: ${REINPLACE_CMD} -e 's|${PORTVERSION}svn|${PORTVERSION}|g' \ ${WRKSRC}/configure Index: devel/py-qt4/bsd.pyqt.mk =================================================================== --- devel/py-qt4/bsd.pyqt.mk (revision 340317) +++ devel/py-qt4/bsd.pyqt.mk (working copy) @@ -23,3 +23,4 @@ PYQT4_DISTINFO_FILE= ${.CURDIR}/../../devel/py-qt4/distinfo QSCI2_DISTNAME= QScintilla-gpl-${QSCI2_VERSION} QSCI2_DISTINFO_FILE= ${.CURDIR}/../../devel/qscintilla2/distinfo +PYTHON_PY3K_PLIST_HACK= yes Index: devel/py-qt4-core/Makefile =================================================================== --- devel/py-qt4-core/Makefile (revision 340317) +++ devel/py-qt4-core/Makefile (working copy) @@ -53,8 +53,17 @@ ARGS+= --debug --trace .endif +.include + +PLIST_SUB+= PYTHON_MAJOR_VER="${PYTHON_MAJOR_VER}" +.if ${PYTHON_MAJOR_VER} != "3" +BAD_UIC_PORT_DIR= port_v3 +.else +BAD_UIC_PORT_DIR= port_v2 +.endif + post-patch: - ${RM} -rf ${WRKSRC}/pyuic/uic/port_v3 + ${RM} -rf ${WRKSRC}/pyuic/uic/${BAD_UIC_PORT_DIR} do-configure: cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\ @@ -75,4 +84,4 @@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/py_compile.py\ `ls *.py */*.py */*/*.py` -.include +.include Index: devel/py-qt4-core/pkg-plist =================================================================== --- devel/py-qt4-core/pkg-plist (revision 340317) +++ devel/py-qt4-core/pkg-plist (working copy) @@ -54,27 +54,27 @@ %%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.py %%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.pyc %%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/__init__.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/__init__.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/__init__.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/as_string.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/as_string.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/as_string.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/ascii_upper.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/ascii_upper.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/ascii_upper.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/invoke.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/invoke.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/invoke.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/load_plugin.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/load_plugin.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/load_plugin.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/proxy_base.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/proxy_base.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/proxy_base.pyo -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/string_io.py -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/string_io.pyc -%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2/string_io.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/__init__.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/__init__.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/__init__.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/as_string.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/as_string.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/as_string.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/ascii_upper.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/ascii_upper.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/ascii_upper.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/invoke.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/invoke.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/invoke.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/load_plugin.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/load_plugin.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/load_plugin.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/proxy_base.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/proxy_base.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/proxy_base.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/string_io.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/string_io.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%%/string_io.pyo %%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.py %%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.pyc %%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.pyo @@ -200,7 +200,7 @@ %%API%%share/qt4/qsci/api/python/QtCore.api @dirrm share/py-sip/QtCore @dirrmtry %%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins -@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v2 +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/port_v%%PYTHON_MAJOR_VER%% @dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader @dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler @dirrmtry %%PYTHON_SITELIBDIR%%/PyQt4/uic Index: math/py-numexpr/Makefile =================================================================== --- math/py-numexpr/Makefile (revision 340317) +++ math/py-numexpr/Makefile (working copy) @@ -16,6 +16,7 @@ USE_PYTHON= yes USE_PYDISTUTILS=yes +PYTHON_PY3K_PLIST_HACK=yes post-patch: @${REINPLACE_CMD} -e 's|\(import\) \(setuptools\)|\1 do_not_use_\2|' ${WRKSRC}/${PYSETUP} Index: misc/py-pexpect/files/patch-pexpect-__init__.py =================================================================== --- misc/py-pexpect/files/patch-pexpect-__init__.py (revision 340317) +++ misc/py-pexpect/files/patch-pexpect-__init__.py (working copy) @@ -8,7 +8,7 @@ - if TIOCSWINSZ == 2148037735: - # Same bits, but with sign. - TIOCSWINSZ = -2146929561 -+ TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735L) ++ TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735) # Note, assume ws_xpixel and ws_ypixel are zero. s = struct.pack('HHHH', rows, cols, 0, 0) fcntl.ioctl(self.fileno(), TIOCSWINSZ, s) Index: x11/libxcb/Makefile =================================================================== --- x11/libxcb/Makefile (revision 340317) +++ x11/libxcb/Makefile (working copy) @@ -24,7 +24,7 @@ USE_GNOME= libxslt:build USE_LDCONFIG= yes USE_XORG= xau xdmcp -USE_PYTHON_BUILD= yes +USE_PYTHON_BUILD= 2 GNU_CONFIGURE= yes .for f in XPROTO_CFLAGS XPROTO_LIBS XDMCP_CFLAGS XDMCP_LIBS NEEDED_CFLAGS NEEDED_LIBS Index: x11/xcb-proto/Makefile =================================================================== --- x11/xcb-proto/Makefile (revision 340317) +++ x11/xcb-proto/Makefile (working copy) @@ -13,7 +13,7 @@ USE_BZIP2= yes USES= pathfix -USE_PYTHON= yes +USE_PYTHON= 2 GNU_CONFIGURE= yes DATADIR= ${PREFIX}/share/xcb --Boundary_(ID_oMvNhGvWk9XAVy90uCVYmw)--