diff options
Diffstat (limited to 'graphics/py-python-poppler-qt5/files')
-rw-r--r-- | graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip | 23 | ||||
-rw-r--r-- | graphics/py-python-poppler-qt5/files/patch-types.sip | 16 |
2 files changed, 39 insertions, 0 deletions
diff --git a/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip b/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip new file mode 100644 index 000000000000..0abbbdecef2e --- /dev/null +++ b/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip @@ -0,0 +1,23 @@ +--- poppler-qt5.sip.orig 2018-12-19 10:55:11 UTC ++++ poppler-qt5.sip +@@ -1,15 +1,18 @@ +-%Module(name=popplerqt5, version=0) ++%Module(name=popplerqt5) + + /* + * Bindings for Poppler-Qt5 to Python + * Maintained by Wilbert Berendsen <wbsoft@xs4all.nl> + */ + ++%Feature QTXML_AVAILABLE + + %Import QtCore/QtCoremod.sip + %Import QtGui/QtGuimod.sip + +-%Feature QTXML_AVAILABLE ++%If(QTXML_AVAILABLE) ++%Import QtXml/QtXmlmod.sip ++%End + + %Timeline { + POPPLER_V0_20_0 diff --git a/graphics/py-python-poppler-qt5/files/patch-types.sip b/graphics/py-python-poppler-qt5/files/patch-types.sip new file mode 100644 index 000000000000..8ce1d17660a3 --- /dev/null +++ b/graphics/py-python-poppler-qt5/files/patch-types.sip @@ -0,0 +1,16 @@ +PyList_SET_ITEM() is supposed to be void, but as a macro it's an +expression and has a pointer value. Clang 4.0 trips on the bogus +pointer comparison; given the comparison, it should be PyList_SetItem() +which returns -1 on failure. + +--- types.sip.orig 2017-01-21 07:19:29 UTC ++++ types.sip +@@ -27,7 +27,7 @@ + foreach (Poppler::Document::RenderBackend value, set) + { + PyObject *obj = PyLong_FromLong ((long) value); +- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0) ++ if (obj == NULL || PyList_SetItem (l, i, obj) < 0) + { + Py_DECREF(l); + |