Gentoo Archives: gentoo-commits

From: "Jesus Rivero (neurogeek)" <neurogeek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/PyQt4/files: PyQt4-4.4_compile.patch
Date: Thu, 31 Jul 2008 06:44:09
Message-Id: E1KORtO-0004Pu-GB@stork.gentoo.org
1 neurogeek 08/07/31 06:44:06
2
3 Added: PyQt4-4.4_compile.patch
4 Log:
5 Fixes bugs #233369 and #222435, thanks to Remy Bosch for the patch. Removed old version
6 (Portage version: 2.2_rc3/cvs/Linux 2.6.18-gentoo-r3 i686)
7
8 Revision Changes Path
9 1.1 dev-python/PyQt4/files/PyQt4-4.4_compile.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/files/PyQt4-4.4_compile.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/PyQt4/files/PyQt4-4.4_compile.patch?rev=1.1&content-type=text/plain
13
14 Index: PyQt4-4.4_compile.patch
15 ===================================================================
16 diff -ru PyQt-x11-gpl-4.4_old/designer/pluginloader.cpp PyQt-x11-gpl-4.4/designer/pluginloader.cpp
17 --- PyQt-x11-gpl-4.4_old/designer/pluginloader.cpp 2008-05-20 20:12:41.000000000 +0200
18 +++ PyQt-x11-gpl-4.4/designer/pluginloader.cpp 2008-05-20 20:13:37.000000000 +0200
19 @@ -280,7 +280,7 @@
20 // Return the named attribute object from the named module.
21 PyObject *PyCustomWidgets::getModuleAttr(const char *module, const char *attr)
22 {
23 -#if PY_VERSION_HEX >= 0x020500
24 +#if PY_VERSION_HEX >= 0x02050000
25 PyObject *mod = PyImport_ImportModule(module);
26 #else
27 PyObject *mod = PyImport_ImportModule(const_cast<char *>(module));
28 @@ -292,7 +292,7 @@
29 return 0;
30 }
31
32 -#if PY_VERSION_HEX >= 0x020500
33 +#if PY_VERSION_HEX >= 0x02050000
34 PyObject *obj = PyObject_GetAttrString(mod, attr);
35 #else
36 PyObject *obj = PyObject_GetAttrString(mod, const_cast<char *>(attr));