[MacPorts] #66589: py311-pyqt5 does not install

MacPorts noreply at macports.org
Tue Jan 24 17:25:16 UTC 2023


#66589: py311-pyqt5 does not install
--------------------------+------------------------
  Reporter:  josephsacco  |      Owner:  reneeotten
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.0
Resolution:               |   Keywords:
      Port:  py-pyqt5     |
--------------------------+------------------------

Comment (by josephsacco):

 Julien,

 That works.  Thanks...

 One other little nit:  I encountered an SDK problem when building on an
 older iMac running MacOS 12.6.2.  The build requires SDK 12. The Xcode
 installation has only SDK13:

 {{{
 drwxr-xr-x  7 root    wheel  224 Dec 14 10:09 MacOSX.sdk
 lrwxr-xr-x  1 root  wheel  10 Dec 14 10:06 MacOSX13.1.sdk -> MacOSX.sdk
 lrwxr-xr-x  1 root  wheel  10 Nov  2 10:17 MacOSX13.sdk -> MacOSX.sdk
 }}}

 Whereas,  the installation of CommandLine Tools on my system has multiple
 SDKs:
 {{{
 lrwxr-xr-x   1 root  wheel   14 Dec 14 11:13 MacOSX.sdk -> MacOSX13.1.sdk
 drwxr-xr-x  11 root  wheel  352 May  1  2021 MacOSX10.15.sdk
 drwxr-xr-x   8 root  wheel  256 Nov 17 16:41 MacOSX11.3.sdk
 lrwxr-xr-x   1 root  wheel   14 Nov 17 16:37 MacOSX11.sdk ->
 MacOSX11.3.sdk
 drwxr-xr-x   4 root  wheel  128 Dec 14  2021 MacOSX12.0.sdk
 drwxr-xr-x   7 root  wheel  224 Nov 17 16:41 MacOSX12.1.sdk
 drwxr-xr-x   7 root  wheel  224 Dec 14 11:14 MacOSX12.3.sdk
 lrwxr-xr-x   1 root  wheel   14 Dec 14 11:13 MacOSX12.sdk ->
 MacOSX12.3.sdk
 drwxr-xr-x   3 root  wheel   96 Dec 14 11:14 MacOSX13.0.sdk
 drwxr-xr-x   7 root  wheel  224 Nov 12 16:18 MacOSX13.1.sdk
 lrwxr-xr-x   1 root  wheel   14 Dec 14 11:13 MacOSX13.sdk ->
 MacOSX13.1.sdk
 }}}

 The Portfile contains code that forces the use of Xcode:

 {{{
     # https://trac.macports.org/ticket/65410
     if { ${os.platform} eq "darwin" && (( ${os.major} >= 15 && ${os.major}
 <= 16 ) || ${os.major} >= 20 ) } {
         use_xcode   yes
     }
 }}}

 What to do?

 I ran two experiments that both worked:
 * Comment out the use_xcode stuff in the Portfile
 * Leave the use_xcode stuff in the Port file add SDK12 to Xcode.

 Someone who better understands this might want to take a look at this.

 -Joseph

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


More information about the macports-tickets mailing list