View | Details | Raw Unified | Return to bug 216228
Collapse All | Expand All

(-)graphics/py-poppler-qt4/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	poppler-qt4
3
PORTNAME=	poppler-qt4
4
PORTVERSION=	0.18.1
4
PORTVERSION=	0.18.1
5
PORTREVISION=	7
5
PORTREVISION=	8
6
CATEGORIES=	graphics python
6
CATEGORIES=	graphics python
7
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
(-)graphics/py-poppler-qt4/files/patch-types.sip (+16 lines)
Line 0 Link Here
1
PyList_SET_ITEM() is supposed to be void, but as a macro it's an
2
expression and has a pointer value. Clang 4.0 trips on the bogus
3
pointer comparison; given the comparison, it should be PyList_SetItem()
4
which returns -1 on failure.
5
6
--- types.sip.orig	2017-01-21 07:19:29 UTC
7
+++ types.sip
8
@@ -27,7 +27,7 @@
9
     foreach (Poppler::Document::RenderBackend value, set)
10
     {
11
         PyObject *obj = PyLong_FromLong ((long) value);
12
-        if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
13
+        if (obj == NULL || PyList_SetItem (l, i, obj) < 0)
14
         {
15
             Py_DECREF(l);
16
 

Return to bug 216228