[MacPorts] #55014: py35-poppler-qt4 @0.24.0_1: error: ordered comparison between pointer and zero

MacPorts noreply at macports.org
Sat Oct 21 03:54:10 UTC 2017


#55014: py35-poppler-qt4 @0.24.0_1: error: ordered comparison between pointer and
zero
-----------------------------+------------------------
  Reporter:  avysk           |      Owner:  dliessi
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  highsierra
      Port:  py-poppler-qt4  |
-----------------------------+------------------------

Comment (by kencu):

 I did something like this patch
 {{{
 --- types.sip.orig      2017-10-16 20:31:11.000000000 -0700
 +++ types.sip   2017-10-16 20:31:30.000000000 -0700
 @@ -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 == (void *)NULL || !(PyList_SET_ITEM (l, i, obj)))
          {
              Py_DECREF(l);
 }}}
 to build it
 {{{
 $ port -v installed | grep poppler
   poppler @0.57.0_0 (active) platform='darwin 17' archs='x86_64'
 date='2017-10-16T20:11:02-0700'
   poppler-data @0.4.8_0 (active) platform='darwin 17' archs='noarch'
 date='2017-10-16T20:09:23-0700'
   poppler-qt4-mac @0.57.0_0 (active) platform='darwin 17' archs='x86_64'
 date='2017-10-16T20:12:36-0700'
 }}}

 but I haven't been confident enough about it to actually recommend it so
 far.

--
Ticket URL: <https://trac.macports.org/ticket/55014#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list