[MacPorts] #62470: Ports fail to parse after changes to gcc_compilers.tcl

MacPorts noreply at macports.org
Thu Mar 18 01:13:14 UTC 2021


#62470: Ports fail to parse after changes to gcc_compilers.tcl
-------------------------+--------------------------
  Reporter:  ryandesign  |      Owner:  cjones051073
      Type:  defect      |     Status:  reopened
  Priority:  High        |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------------
Changes (by ryandesign):

 * priority:  Normal => High
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Ok, but we still have a problem for ports that specify a compiler that
 won't work.

 For example, [ticket:62480 py-numpy specifies clang37] which won't work on
 arm64. Fine. The port can't be installed and should emit an error ''when
 the user attempts to install it''. But it is ''not'' fine that the port
 fails to work at all, even to the point that port info doesn't work:

 {{{
 % port info py39-numpy
 Warning: Compiler gcc44 not available for Darwin20 arm
 Warning: Compiler gcc45 not available for Darwin20 arm
 Warning: Compiler gcc46 not available for Darwin20 arm
 Warning: Compiler gcc47 not available for Darwin20 arm
 Warning: Compiler gcc48 not available for Darwin20 arm
 Error: Unable to open port: Compiler clang37 not available for Darwin20
 arm
 }}}

 It's not fine that if I schedule a batch of port builds and one of them
 depends on py-numpy the entire batch fails to be scheduled:

 https://build.macports.org/builders/ports-11_arm64-watcher/builds/3825

 {{{
 Compiler clang37 not available for Darwin20 arm
     while executing
 "compilers.setup         require_fortran -clang -gcc44 -gcc45 -gcc46 \
                         -gcc47 -gcc48 -g95 clang37"
     (file "Portfile" line 29)
     invoked from within
 "source Portfile"
     invoked from within
 "$workername eval {source Portfile}"
     (procedure "mportopen" line 50)
     invoked from within
 "mportopen $portInfo(porturl) [list subport $portInfo(name)] $variantInfo"
     (procedure "infoForPort" line 26)
     invoked from within
 "infoForPort $aPort $variantInfo"
     (procedure "check_licenses" line 43)
     invoked from within
 "check_licenses $portinfo(name) [list]"
     ("while" body line 99)
     invoked from within
 "while {[llength $todo] > 0} {
     set p [lindex $todo 0]
     set todo [lrange $todo 1 end]

     if {![info exists portdepinfo($p)]} {
         if {[cat..."
     (file "/opt/bblocal/var/buildworker/ports/build/mpbb/tools/sort-with-
 subports.tcl" line 213)
 ./mpbb/mpbb: error: None of the specified ports were found in the port
 index.
 ./mpbb/mpbb: error: `list-subports' failed to run successfully
 }}}

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


More information about the macports-tickets mailing list