From owner-svn-ports-head@freebsd.org Sat Jan 21 22:10:44 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5289C6D915; Sat, 21 Jan 2017 22:10:44 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54D4AB66; Sat, 21 Jan 2017 22:10:44 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0LMAh7L059767; Sat, 21 Jan 2017 22:10:43 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0LMAhsv059765; Sat, 21 Jan 2017 22:10:43 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201701212210.v0LMAhsv059765@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 21 Jan 2017 22:10:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432089 - in head/graphics/py-poppler-qt4: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2017 22:10:44 -0000 Author: tcberner Date: Sat Jan 21 22:10:43 2017 New Revision: 432089 URL: https://svnweb.freebsd.org/changeset/ports/432089 Log: Fix graphics/py-poppler-qt4: fails to build with clang 4.0 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. PR: 216228 Approved by: portmgr blanket, rakuco (mentor) MFH: 2017Q1 Added: head/graphics/py-poppler-qt4/files/ head/graphics/py-poppler-qt4/files/patch-types.sip (contents, props changed) Modified: head/graphics/py-poppler-qt4/Makefile Modified: head/graphics/py-poppler-qt4/Makefile ============================================================================== --- head/graphics/py-poppler-qt4/Makefile Sat Jan 21 22:08:06 2017 (r432088) +++ head/graphics/py-poppler-qt4/Makefile Sat Jan 21 22:10:43 2017 (r432089) @@ -2,7 +2,7 @@ PORTNAME= poppler-qt4 PORTVERSION= 0.18.1 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Added: head/graphics/py-poppler-qt4/files/patch-types.sip ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-poppler-qt4/files/patch-types.sip Sat Jan 21 22:10:43 2017 (r432089) @@ -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); +