El Diumenge, 3 de novembre de 2013, a les 14:16:13, Andreas K. Huettel va 
escriure:
> Am Sonntag, 3. November 2013, 13:27:51 schrieb Albert Astals Cid:
> > > base/pykde4-4.11.3/work/pykde4-4.11.3/kpythonpluginfactory/kpythonplugin
> > > f
> > > act ory.cpp:28: /usr/include/python3.2/object.h:402:23: error: expected
> > > unqualified-id before ‘;’ token
> > 
> > This is not useful, tell us what command is giving this error.
> 
> Here's a longer snippet from a -j1 verbose build log. Full log here:
> http://dev.gentoo.org/~dilfridge/pykde4-4.11.3-build.log.bz2
> 
> There is something seriously weird going on in the log. If other people can
> build pykde4 fine, it may be a Gentoo specific problem. [Python-related
> stuff is really transparent only to the Gentoo Python team, I'll ask them.
> Bunch of wizards. :|]

Does this help?

Cheers,
  Albert
diff --git a/kdecore/network/ktcpsocket.h b/kdecore/network/ktcpsocket.h
index 67cf591..c57c5e9 100644
--- a/kdecore/network/ktcpsocket.h
+++ b/kdecore/network/ktcpsocket.h
@@ -240,7 +240,7 @@ QSslError::NoSslSupport                             Never happens :)
 protected:
     virtual qint64 readData (char *data, qint64 maxSize);
     virtual qint64 writeData (const char *data, qint64 maxSize);
-signals:
+Q_SIGNALS:
     /// @since 4.8.1
     /// Forwarded from QSslSocket
     void encryptedBytesWritten( qint64 written );
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cf133d7..3383f24 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,7 @@ find_package(KDE4 4.9.4 REQUIRED)
 cmake_policy(SET CMP0002 OLD)
 find_package(PythonLibrary)
 
-
+add_definitions(-DQT_NO_KEYWORDS)
 
 include(KDE4Defaults)
 include(MacroLibrary)
diff --git a/sip/solid/powermanagement.sip b/sip/solid/powermanagement.sip
index 43aeb31..8b8cfbe 100644
--- a/sip/solid/powermanagement.sip
+++ b/sip/solid/powermanagement.sip
@@ -76,7 +76,7 @@ bool                    stopSuppressingScreenPowerManagement (int cookie);
     // Set the list elements.
     QSet<Solid::PowerManagement::SleepState> set = *sipCpp;
     int i = 0;
-    foreach (Solid::PowerManagement::SleepState value, set)
+    Q_FOREACH (Solid::PowerManagement::SleepState value, set)
     {
 #if PY_MAJOR_VERSION >= 3
         PyObject *obj = PyLong_FromLong ((long) value);
diff --git a/sip/solid/predicate.sip b/sip/solid/predicate.sip
index b95c64f..97fe76e 100644
--- a/sip/solid/predicate.sip
+++ b/sip/solid/predicate.sip
@@ -105,7 +105,7 @@ Py_BEGIN_ALLOW_THREADS
     // Set the list elements.
     QSet<Solid::DeviceInterface::Type> set = *sipCpp;
     int i = 0;
-    foreach (Solid::DeviceInterface::Type value, set)
+    Q_FOREACH (Solid::DeviceInterface::Type value, set)
     {
 #if PY_MAJOR_VERSION >= 3
         PyObject *obj = PyLong_FromLong ((long) value);
_______________________________________________
release-team mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/release-team

Reply via email to