Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:29:47 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
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
Message-ID:  <201702010529.v115TlWg089312@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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<U>(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<U>(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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010529.v115TlWg089312>