[MacPorts] #38279: rust @0.5: multiple issues
MacPorts
noreply at macports.org
Mon Mar 4 15:23:20 PST 2013
#38279: rust @0.5: multiple issues
---------------------+--------------------------------
Reporter: egall@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: | Port: rust
---------------------+--------------------------------
1. Rust currently doesn't work on 10.5 and lower:
https://github.com/mozilla/rust/issues/4232
Something like the following could be added to fix this:
{{{
pre-fetch {
if {${os.platform} == "darwin" && ${os.major} < 10} {
ui_error "${name} only works with OS X 10.6 Snow Leopard or
later."
return -code error "incompatible OS X version"
}
}
}}}
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
}}}
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
}}}
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`).
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)
- use `build.type gnu` and depend on gmake
- depend on curl
--
Ticket URL: <https://trac.macports.org/ticket/38279>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list