summaryrefslogtreecommitdiff
path: root/lang/rust/files
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2012-01-23 16:07:04 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2012-01-23 16:07:04 +0000
commita7fe5ec546ad1fe2709ec42c7d6fcf2cfe40459d (patch)
treed98db022d427ee0312e87c4786a124545b2ae386 /lang/rust/files
parent- Update to 0.11 (diff)
Add rust 0.1, a language with a focus on memory safety and concurrency.
PR: ports/164366 Submitted by: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
Notes
Notes: svn path=/head/; revision=289669
Diffstat (limited to 'lang/rust/files')
-rw-r--r--lang/rust/files/patch-configure20
-rw-r--r--lang/rust/files/patch-mk_platform.mk11
-rw-r--r--lang/rust/files/patch-src_cargo_cargo.rs12
-rw-r--r--lang/rust/files/patch-src_rt_rust__unwind.h17
4 files changed, 60 insertions, 0 deletions
diff --git a/lang/rust/files/patch-configure b/lang/rust/files/patch-configure
new file mode 100644
index 000000000000..f12475d8b42e
--- /dev/null
+++ b/lang/rust/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2012-01-22 04:29:36.401802685 +0800
++++ configure 2012-01-22 11:40:28.231803897 +0800
+@@ -281,7 +281,6 @@
+
+ probe_need CFG_PERL perl
+ probe_need CFG_PYTHON python python2.6 python2 python3
+-probe_need CFG_CURL curl
+
+ probe CFG_GIT git
+ probe CFG_CLANG clang++
+@@ -340,7 +339,8 @@
+ CFG_CLANG_VERSION=$("$CFG_CLANG" \
+ --version \
+ | grep version \
+- | cut -d ' ' -f 3)
++ | sed 's/.*\(version .*\)/\1/' \
++ | cut -d ' ' -f 2)
+
+ case $CFG_CLANG_VERSION in
+ (3.0svn | 3.0 | 3.1)
diff --git a/lang/rust/files/patch-mk_platform.mk b/lang/rust/files/patch-mk_platform.mk
new file mode 100644
index 000000000000..0955f6b8fed1
--- /dev/null
+++ b/lang/rust/files/patch-mk_platform.mk
@@ -0,0 +1,11 @@
+--- mk/platform.mk.orig 2012-01-22 08:59:58.097803422 +0800
++++ mk/platform.mk 2012-01-22 04:45:22.124872578 +0800
+@@ -188,7 +188,7 @@
+ CC=clang
+ CXX=clang++
+ CPP=cpp
+- CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
++ CFG_GCCISH_CFLAGS += -Wall -Werror -Wno-c++11-compat -fno-rtti -g
+ CFG_GCCISH_LINK_FLAGS += -g
+ CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
+ -MM $(2)
diff --git a/lang/rust/files/patch-src_cargo_cargo.rs b/lang/rust/files/patch-src_cargo_cargo.rs
new file mode 100644
index 000000000000..196557e4d126
--- /dev/null
+++ b/lang/rust/files/patch-src_cargo_cargo.rs
@@ -0,0 +1,12 @@
+--- src/cargo/cargo.rs.orig 2012-01-22 03:39:41.002804510 +0800
++++ src/cargo/cargo.rs 2012-01-22 09:19:29.018803328 +0800
+@@ -389,7 +389,8 @@
+ let exec_suffix = os::exec_suffix();
+ for ct: str in new {
+ if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
+- (exec_suffix == "" && !str::starts_with(ct, "./lib")) {
++ (exec_suffix == "" && !str::starts_with(fs::basename(ct),
++ "lib")) {
+ #debug(" bin: %s", ct);
+ // FIXME: need libstd fs::copy or something
+ run::run_program("cp", [ct, c.bindir]);
diff --git a/lang/rust/files/patch-src_rt_rust__unwind.h b/lang/rust/files/patch-src_rt_rust__unwind.h
new file mode 100644
index 000000000000..1d3a1d38a804
--- /dev/null
+++ b/lang/rust/files/patch-src_rt_rust__unwind.h
@@ -0,0 +1,17 @@
+--- src/rt/rust_unwind.h.orig 2012-01-22 08:58:11.386020911 +0800
++++ src/rt/rust_unwind.h 2012-01-22 04:37:29.745804340 +0800
+@@ -17,6 +17,8 @@
+
+ #if (defined __APPLE__) || (defined __clang__)
+
++#ifndef __FreeBSD__
++
+ typedef int _Unwind_Action;
+ typedef void _Unwind_Exception;
+
+@@ -24,3 +26,5 @@
+
+ #endif
+
++#endif
++