summaryrefslogtreecommitdiff
path: root/user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-11-15 01:52:22 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-11-15 01:52:22 +0000
commit097e4722ba191ed4ab4e51766c6fe9a23a3e0ecf (patch)
treedaa93c64489cab0512bad7c4e5f4b3b848bf7859 /user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch
parent950827890cca5caf633480047da6115f43b1a529 (diff)
parent18b490b7953735328501c6f7e54522a91220caf3 (diff)
downloadpackages-097e4722ba191ed4ab4e51766c6fe9a23a3e0ecf.tar.gz
packages-097e4722ba191ed4ab4e51766c6fe9a23a3e0ecf.tar.bz2
packages-097e4722ba191ed4ab4e51766c6fe9a23a3e0ecf.tar.xz
packages-097e4722ba191ed4ab4e51766c6fe9a23a3e0ecf.zip
Merge branch 'rust' into 'master'
user/rust: Bump to 1.30.1 See merge request !105
Diffstat (limited to 'user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch')
-rw-r--r--user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch b/user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch
new file mode 100644
index 000000000..417b4f33d
--- /dev/null
+++ b/user/rust/0023-Move-debugger-scripts-to-usr-share-rust.patch
@@ -0,0 +1,53 @@
+From c2de5d142209be7fca8024ba82911ee180d861d0 Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Mon, 17 Sep 2018 02:09:10 +0000
+Subject: [PATCH 23/24] Move debugger scripts to /usr/share/rust
+
+---
+ src/bootstrap/dist.rs | 2 +-
+ src/etc/rust-gdb | 2 +-
+ src/etc/rust-lldb | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
+index 2d94704fda..809d16fa0e 100644
+--- a/src/bootstrap/dist.rs
++++ b/src/bootstrap/dist.rs
+@@ -584,7 +584,7 @@ impl Step for DebuggerScripts {
+ fn run(self, builder: &Builder) {
+ let host = self.host;
+ let sysroot = self.sysroot;
+- let dst = sysroot.join("lib/rustlib/etc");
++ let dst = sysroot.join("share/rust");
+ t!(fs::create_dir_all(&dst));
+ let cp_debugger_script = |file: &str| {
+ builder.install(&builder.src.join("src/etc/").join(file), &dst, 0o644);
+diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb
+index 743952a5be..71694ddb87 100755
+--- a/src/etc/rust-gdb
++++ b/src/etc/rust-gdb
+@@ -14,7 +14,7 @@ set -e
+
+ # Find out where the pretty printer Python module is
+ RUSTC_SYSROOT=`rustc --print=sysroot`
+-GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
++GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/share/rust"
+
+ # Run GDB with the additional arguments that load the pretty printers
+ # Set the environment variable `RUST_GDB` to overwrite the call to a
+diff --git a/src/etc/rust-lldb b/src/etc/rust-lldb
+index 6ed8210349..f115587ce1 100755
+--- a/src/etc/rust-lldb
++++ b/src/etc/rust-lldb
+@@ -35,7 +35,7 @@ display the contents of local variables!"
+ fi
+
+ # Prepare commands that will be loaded before any file on the command line has been loaded
+-script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_rust_formatters.py\""
++script_import="command script import \"$RUSTC_SYSROOT/share/rust/lldb_rust_formatters.py\""
+ category_definition="type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust"
+ category_enable="type category enable Rust"
+
+--
+2.18.0
+