[MacPorts] #69198: rust-bootstrap needs a lot of disk space to build

MacPorts noreply at macports.org
Fri Jan 26 15:44:13 UTC 2024


#69198: rust-bootstrap needs a lot of disk space to build
-----------------------------+---------------------------------
  Reporter:  ryandesign      |      Owner:  MarcusCalhoun-Lopez
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.9.0
Resolution:                  |   Keywords:
      Port:  rust-bootstrap  |
-----------------------------+---------------------------------

Comment (by MarcusCalhoun-Lopez):

 I do not know of any way of minimizing disk space usage **during** the
 build.\\
 One of the problems is probably LLVM.\\
 It is built ''three'' different times, once for x86_64 and twice for i686
 (since Rust considers this cross-compilation).\\
 I can think of a few options.
 * Remove `default_variants +universal`. This is the easiest solution, but
 `+universal` is appropriate for those few of us who actually use the port.
 * Attempt to clean the directories after every architecture build. At
 least there would only be two builds of LLVM to deal with.
 * Try to create a separate LLVM port specifically for Rust. I do not know
 if this would make things easier or harder (more steps but more control
 over the LLVM build).
 * Restrict Rust support to x86_64 and arm64 on macOS >= 10.12. The sole
 reasons rust-bootstrap is to support older systems.

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


More information about the macports-tickets mailing list