From owner-svn-ports-all@freebsd.org Wed Feb 1 05:29:48 2017 Return-Path: Delivered-To: svn-ports-all@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 80789CCDB6C; Wed, 1 Feb 2017 05:29:48 +0000 (UTC) (envelope-from jbeich@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 374211BCB; Wed, 1 Feb 2017 05:29:48 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v115TlnP089314; Wed, 1 Feb 2017 05:29:47 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v115TlWg089312; Wed, 1 Feb 2017 05:29:47 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702010529.v115TlWg089312@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 05:29:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432989 - in head/devel/py-jcc: . 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-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 05:29:48 -0000 Author: jbeich Date: Wed Feb 1 05:29:46 2017 New Revision: 432989 URL: https://svnweb.freebsd.org/changeset/ports/432989 Log: devel/py-jcc: unbreak with clang 4.0 jcc/sources/JArray.cpp:315:66: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int') PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ jcc/sources/JArray.cpp:330:64: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int') PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: antoine (via exp-run) Added: head/devel/py-jcc/files/ head/devel/py-jcc/files/patch-jcc_sources_JArray.cpp (contents, props changed) Modified: head/devel/py-jcc/Makefile (contents, props changed) Modified: head/devel/py-jcc/Makefile ============================================================================== --- head/devel/py-jcc/Makefile Wed Feb 1 05:29:33 2017 (r432988) +++ head/devel/py-jcc/Makefile Wed Feb 1 05:29:46 2017 (r432989) @@ -3,6 +3,7 @@ PORTNAME= jcc PORTVERSION= 2.22 +PORTREVISION= 1 CATEGORIES= devel java python MASTER_SITES= CHEESESHOP/source/J/JCC PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Added: head/devel/py-jcc/files/patch-jcc_sources_JArray.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-jcc/files/patch-jcc_sources_JArray.cpp Wed Feb 1 05:29:46 2017 (r432989) @@ -0,0 +1,20 @@ +--- jcc/sources/JArray.cpp.orig 2014-02-05 23:36:44 UTC ++++ jcc/sources/JArray.cpp +@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyO + PyObject *list = toSequence(self); + + if (list != NULL && +- PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0) ++ PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) == NULL) + { + Py_DECREF(list); + return NULL; +@@ -327,7 +327,7 @@ static PyObject *seq_repeat(U *self, Py_ + PyObject *list = toSequence(self); + + if (list != NULL && +- PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0) ++ PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) == NULL) + { + Py_DECREF(list); + return NULL;