[MacPorts] #57521: py37-pyqt5: Patch failure on 10.7
MacPorts
noreply at macports.org
Tue Nov 6 15:35:35 UTC 2018
#57521: py37-pyqt5: Patch failure on 10.7
-------------------------+----------------------
Reporter: ryandesign | Owner: mamoll
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-pyqt5 |
-------------------------+----------------------
Comment (by mamoll):
Is this an acceptable fix?:
{{{
diff --git a/python/py-pyqt5/Portfile b/python/py-pyqt5/Portfile
index 1eb4f416c3..ad9e994dda 100644
--- a/python/py-pyqt5/Portfile
+++ b/python/py-pyqt5/Portfile
@@ -71,8 +71,11 @@ if {${name} ne ${subport}} {
# the DBus headers themselves
# do not clear include directories just because --dbus is given
patchfiles-append patch-dbus_includes.diff
- # PyQt5 insists on using a private copy of sip, but the default sip
seems to work just fine
- patchfiles-append patch-use-default-sip.diff
+ # only use patch on current version, not the pegged version for older
versions of macOS
+ if {${os.major} > 14 || ${os.platform} ne "darwin"} {
+ # PyQt5 insists on using a private copy of sip, but the default
sip seems to work just fine
+ patchfiles-append patch-use-default-sip.diff
+ }
build.cmd make
build.target all
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57521#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list