--- graphics/py-poppler-qt4/Makefile (revision 432015) +++ graphics/py-poppler-qt4/Makefile (working copy) @@ -2,7 +2,7 @@ PORTNAME= poppler-qt4 PORTVERSION= 0.18.1 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} --- graphics/py-poppler-qt4/files/patch-types.sip (nonexistent) +++ graphics/py-poppler-qt4/files/patch-types.sip (working copy) @@ -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); +