[MacPorts] #60781: llvm-3.4: SyntaxError: invalid syntax

MacPorts noreply at macports.org
Mon Jul 6 16:21:21 UTC 2020


#60781: llvm-3.4: SyntaxError: invalid syntax
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  kencu
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:  tiger
      Port:  llvm-3.4    |
-------------------------+----------------------

Comment (by ryandesign):

 Replying to [comment:15 kencu]:
 > not quite that simple with python and llvm-3.4
 <https://github.com/macports/macports-
 ports/blob/8ab1ef8c8ab9892b581c13382407709c33a381ba/lang/llvm-3.4/Portfile#L83>.

 What are you showing me by pointing me to that code?

 What I am getting at is that the clang-3.4 subport declares a dependency
 on python27. The code you showed me above replaces that with
 python27-bootstrap in the cases where it is necessary. The llvm-3.4
 subport does not declare a dependency on python27 so the code you showed
 me above has no effect in that subport. I am suggesting that the llvm-3.4
 subport should have a python27 dependency (replaced by python27-bootstrap
 by the above code when needed) just like clang-3.4.

 > I am tempted to just use python27-bootstrap all the time, but that is
 not super-clean; alternatively more Portfile spaghetti to straighten out
 what we want for every possible permutation....

 If by all the time you mean on all OS versions, you certainly cannot,
 because it requires libstdc++ which does not exist on Mojave and later. We
 should only use the libstdc++-using bootstrap ports on systems trying to
 bootstrap their way to installing libc++, which is what we already do.

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


More information about the macports-tickets mailing list