aboutsummaryrefslogtreecommitdiffstats
path: root/community/rust/fix-configure-tools.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-20 15:08:41 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-20 16:46:01 +0200
commit33def910d7e8168c0b5a6a13cfb5910f17a02440 (patch)
tree7f03646d34b13e55693cdc3442d6c4537cf21af8 /community/rust/fix-configure-tools.patch
parent42fb798cb5dd5bc2cea1278a7fc0e49bffbba8a3 (diff)
downloadaports-33def910d7e8168c0b5a6a13cfb5910f17a02440.tar.bz2
aports-33def910d7e8168c0b5a6a13cfb5910f17a02440.tar.xz
community/rust: build cargo and add cargo* subpackages
Cargo is now distributed together with rustc. Upstream has removed Cargo.lock from the cargo's repository in cargo 0.23.0, so we can't build it with locked and freezed dependencies separately anymore. alexcrichton replied on Feb 1: > cargo is packaged next to rustc, it's not intended to be a separate > package but rather built as one unit. See https://github.com/rust-lang/cargo/commit/5c9665f41c6b4d3b99d3b9f8b48a286f5f154692
Diffstat (limited to 'community/rust/fix-configure-tools.patch')
-rw-r--r--community/rust/fix-configure-tools.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/rust/fix-configure-tools.patch b/community/rust/fix-configure-tools.patch
new file mode 100644
index 0000000000..226ce76a65
--- /dev/null
+++ b/community/rust/fix-configure-tools.patch
@@ -0,0 +1,35 @@
+From 51b17db7707d745af25558eaa32aaf10080a9a03 Mon Sep 17 00:00:00 2001
+From: Dan Callaghan <djc@djc.id.au>
+Date: Sun, 8 Apr 2018 14:59:15 +1000
+Subject: [PATCH] configure.py --tools should set a list instead of a string
+
+Currently the --tools option does not work because it is setting a string value
+for 'build.tools'. It should be a list of strings instead.
+
+Patch-Source: https://github.com/rust-lang/rust/commit/51b17db7707d745af25558eaa32aaf10080a9a03
+---
+ src/bootstrap/configure.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py
+index a5c373d5d5e7..b06968d313ba 100755
+--- a/src/bootstrap/configure.py
++++ b/src/bootstrap/configure.py
+@@ -145,7 +145,7 @@ def v(*args):
+ o("full-bootstrap", "build.full-bootstrap", "build three compilers instead of two")
+ o("extended", "build.extended", "build an extended rust tool set")
+
+-v("tools", "build.tools", "List of extended tools will be installed")
++v("tools", None, "List of extended tools will be installed")
+ v("build", "build.build", "GNUs ./configure syntax LLVM build triple")
+ v("host", None, "GNUs ./configure syntax LLVM host triples")
+ v("target", None, "GNUs ./configure syntax LLVM target triples")
+@@ -321,6 +321,8 @@ def set(key, value):
+ set('target.{}.llvm-config'.format(build()), value + '/bin/llvm-config')
+ elif option.name == 'jemalloc-root':
+ set('target.{}.jemalloc'.format(build()), value + '/libjemalloc_pic.a')
++ elif option.name == 'tools':
++ set('build.tools', value.split(','))
+ elif option.name == 'host':
+ set('build.host', value.split(','))
+ elif option.name == 'target':