ports/76009: [patch] make x11-toolkits/py-qt compile with python 2.4

Tobias Roth ports at fsck.ch
Sun Jan 9 20:50:23 UTC 2005


>Number:         76009
>Category:       ports
>Synopsis:       [patch] make x11-toolkits/py-qt compile with python 2.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 09 20:50:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Tobias Roth
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD localhost 5.3-STABLE FreeBSD 5.3-STABLE #8: Tue Dec 14 07:43:17 CET 2004     roth at localhost:/opt/obj/usr/src/sys/FOOBAR  i386

>Description:
		This patch allows x11-toolkits/py-qt to compile with
		python 2.4.

		If it gets applied, please make sure that all commits
		that force python 2.3 on ports that depend on py-qt
		are reversed. One example of such a commit can be seen
		here:

		http://www.freebsd.org/cgi/cvsweb.cgi/ports/deskutils/treeline/Makefile?rev=1.5&content-type=text/x-cvsweb-markup

		Added files:
			files/
			files/patch-sip::qt::qstring.sip

		Deleted files: none

>How-To-Repeat:
>Fix:
diff -ruN py-qt.orig/Makefile py-qt/Makefile
--- py-qt.orig/Makefile	Wed Dec  8 16:31:32 2004
+++ py-qt/Makefile	Sun Jan  9 21:10:35 2005
@@ -6,6 +6,7 @@
 
 PORTNAME=	qt
 PORTVERSION=	3.13
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits python
 MASTER_SITES=	http://www.river-bank.demon.co.uk/download/PyQt/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -19,7 +20,7 @@
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
 USE_QT_VER=	3
-USE_PYTHON=	2.3
+USE_PYTHON=	yes
 USE_REINPLACE=	yes
 
 .include <bsd.port.pre.mk>
diff -ruN py-qt.orig/files/patch-sip::qt::qstring.sip py-qt/files/patch-sip::qt::qstring.sip
--- py-qt.orig/files/patch-sip::qt::qstring.sip	Thu Jan  1 01:00:00 1970
+++ py-qt/files/patch-sip::qt::qstring.sip	Sun Jan  9 21:10:35 2005
@@ -0,0 +1,11 @@
+--- sip/qt/qstring.sip.orig	Sun Jan  9 20:06:08 2005
++++ sip/qt/qstring.sip	Sun Jan  9 20:06:25 2005
+@@ -851,7 +851,7 @@
+ 		int len = PyUnicode_GET_SIZE(sipPy);
+ 
+ 		for (int i = 0; i < len; ++i)
+-			qs->ref(i) = ucode[i];
++			qs->ref(i) = QChar(uint(ucode[i]));
+ #else
+ 		qs -> setUnicodeCodes((ushort *)PyUnicode_AS_UNICODE(sipPy),PyUnicode_GET_SIZE(sipPy));
+ #endif
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list