#38279: rust @0.5: multiple issues ----------------------+---------------------- Reporter: egall@… | Owner: g5pw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: rust | ----------------------+---------------------- Changes (by larryv@…): * cc: g5pw@… (removed) Comment: Replying to [ticket:38279 egall@…]:
``1. Rust currently doesn't work on 10.5 and lower: https://github.com/mozilla/rust/issues/4232
Does that mean it doesn’t work on 10.5, or that it doesn’t work with 10.5’s compilers? There’s a difference.
``2. Rust does not support universal binaries: https://github.com/mozilla/rust/issues/2024
Something like the following could be added to fix this: {{{ supported_archs i386 x86_64 universal_variant no }}}
This doesn’t “fix” anything; it just codifies the restriction. And does Rust not support being built on PowerPC?
``3. Rust's configure script doesn't recognize the `--disable-dependency-tracking` flag. This could be solve by either removing the universal variant as per !#2 above, or by adding something like this to the portfile: {{{ configure.universal_args-delete --disable-dependency-tracking }}}
If Rust doesn’t support being build universal, this is a moot point.
``4. Seeing as Rust basically builds its own copy of llvm, it should use the same dependencies as llvm (i.e. `libffi`, `llvm_select`, and `perl5`).
It builds its own copy of LLVM? Why? Can we make it use ours?
``5. Besides the dependencies listed in !#4 above, it should also include the dependencies listed in the [http://static.rust-lang.org/doc/0.5/tutorial.html#getting-started Rust Language Tutorial], i.e. it should:
- blacklist gcc versions lower than 4.4, and clang versions lower than 3 - depend on either python26 or python27 (maybe just python_select as a placeholder)
No. Pick one or the other.
- use `build.type gnu` and depend on gmake
A dependency is not necessary; OS X comes with GNU Make.
- depend on curl
Why? Does the build process download something? It should not be doing that. -- Ticket URL: <https://trac.macports.org/ticket/38279#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X