[MacPorts] #53197: py27-pyqt5 @5.6_4 Configure error - build failure

MacPorts noreply at macports.org
Tue Jan 3 21:32:11 UTC 2017


#53197: py27-pyqt5 @5.6_4 Configure error - build failure
-------------------------+-----------------
  Reporter:  akhenakh    |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  py27-pyqt5  |
-------------------------+-----------------

Comment (by RJVB):

 So... I could finally complete the PyQt5 5.7.1 build using SIP 4.19 and Qt
 5.7.1 . As noted above, it shouldn't be necessary to have Qt 5.7
 installed, but it's become a bit complicated for me to reactivate Qt 5.6.2
 and the corresponding versions of all the ports depending on private Qt
 APIs.

 Either way:

 - using PyQt5 5.6 built with SIP 4.18 but with SIP 4.19 active gives me a
 crash. So much for reactivating the new py-sip after using the old py-sip
 to build PyQt5. You'd need to keep that legacy version active, and any
 other port that depends on py-sip will need to be built from source if it
 causes errors. Hopefully not a big deal.

 - PyQt5 5.6 built with SIP 4.18 and 4.19 references a pyqt5ClassTypeDef
 type (defined only by 4.18); in place of that type, PyQt5 5.7.1 uses
 sipClassTypeDef when built with SIP 4.19 (I haven't tried using SIP 4.18
 with that PyQt5 version). I haven't tested, but it *should* be possible to
 patch SIP 4.19's `sip.h` to add a line

 {{{
 typedef sipClassTypeDef pyqt5ClassTypeDef;
 }}}

 or the equivalent #define. Maybe Fabrice feels like trying that hack (on
 the installed file, don't bother patching the py-sip port just yet).

 - PyPyQt5 5.7.1 builds fine with SIP 4.19, and the one port I have using
 PyQt5 works (with a few minor nuisances related to Unicode). I'll be
 attaching a patch against the port:py-sip version currently in macports-
 ports. Please try it and report any errors.

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


More information about the macports-tickets mailing list