Support cross-compile install
authorXimin Luo <infinity0@debian.org>
Thu, 7 Jun 2018 05:34:56 +0000 (22:34 -0700)
committerXimin Luo <infinity0@debian.org>
Thu, 7 Jun 2018 05:34:56 +0000 (22:34 -0700)
debian/changelog
debian/patches/2008_support-cross-compile-install.patch [new file with mode: 0644]
debian/patches/series

index a02dd88156aee4b7920aeac9f77c0ab8ee75770b..12dc5a37ea6d334a3b902d9e8f451e1095923da8 100644 (file)
@@ -1,3 +1,9 @@
+cargo (0.27.0-2) UNRELEASED; urgency=medium
+
+  * Support cross-compile install (upstream PR #5614).
+
+ -- Ximin Luo <infinity0@debian.org>  Wed, 06 Jun 2018 22:34:28 -0700
+
 cargo (0.27.0-1) unstable; urgency=medium
 
   * Upload to unstable.
diff --git a/debian/patches/2008_support-cross-compile-install.patch b/debian/patches/2008_support-cross-compile-install.patch
new file mode 100644 (file)
index 0000000..f69bafe
--- /dev/null
@@ -0,0 +1,18 @@
+Bug: https://github.com/rust-lang/cargo/pull/5614
+Author: Ximin Luo <infinity0@pwned.gg>
+Date:   Wed Jun 6 22:30:10 2018 -0700
+
+    Support cross-compile install
+
+diff --git a/src/bin/cargo/commands/install.rs b/src/bin/cargo/commands/install.rs
+index f0c65515..efac1a94 100644
+--- a/src/bin/commands/install.rs
++++ b/src/bin/commands/install.rs
+@@ -32,6 +32,7 @@ pub fn cli() -> App {
+             "Install only the specified example",
+             "Install all examples",
+         )
++        .arg_target_triple("Build for the target triple")
+         .arg(opt("root", "Directory to install packages into").value_name("DIR"))
+         .after_help(
+             "\
index cf49af978a6027b09f227094cb728753e783ca7f..be02009d034abe66393f194ba714c265178b12c5 100644 (file)
@@ -2,3 +2,4 @@
 2004_clean-cargo-deps.patch
 2001_use-system-libgit2.patch
 2002_disable-net-tests.patch
+2008_support-cross-compile-install.patch