ports/180467: [partial patch] Make devel/py-qt4-core work with python 3

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Jul 11 14:00:00 UTC 2013


>Number:         180467
>Category:       ports
>Synopsis:       [partial patch] Make devel/py-qt4-core work with python 3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 11 14:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Whitehorn
>Release:        10-CURRENT
>Organization:
>Environment:
FreeBSD comporellon.tachypleus.net 10.0-CURRENT FreeBSD 10.0-CURRENT #125 r251046M: Mon May 27 20:24:29 CDT 2013     root at comporellon.tachypleus.net:/usr/obj/usr/src/sys/COMPORELLON  amd64
>Description:
To avoid errors compiling .pyc files, the py-qt4-core Makefile unconditionally deletes the uic/port_v3 directory. This unsurprisingly breaks the Python 3 build.
>How-To-Repeat:

>Fix:
The attached patch instead picks the appropriate uic port directory instead of always picking the v2 one. Note that the package plist needs updating as well -- my minimal port skills are not good enough for handling plist updates.

Patch attached with submission follows:

Index: devel/py-qt4-core/Makefile
===================================================================
--- devel/py-qt4-core/Makefile	(revision 322767)
+++ devel/py-qt4-core/Makefile	(working copy)
@@ -53,8 +53,16 @@
 ARGS+=		--debug --trace
 .endif
 
+.include <bsd.port.pre.mk>
+
+.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 +83,4 @@
 		${PYTHON_CMD} -O ${PYTHON_LIBDIR}/py_compile.py\
 		`ls *.py */*.py */*/*.py`
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list