Date: Mon, 20 Jan 2014 02:30:01 GMT From: Nathan Whitehorn <nwhitehorn@icecube.wisc.edu> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/185884: [patch] Miscellaneous ports fixes for python 3 Message-ID: <201401200230.s0K2U1ER057198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/185884; it has been noted by GNATS. From: Nathan Whitehorn <nwhitehorn@icecube.wisc.edu> 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 <bsd.port.pre.mk> + +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 <bsd.port.mk> +.include <bsd.port.post.mk> 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)--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401200230.s0K2U1ER057198>