diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-06 02:40:28 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-06 02:46:07 +0200 |
commit | 2a8472b921baf8c2ac35688df5188f034b526441 (patch) | |
tree | c1dd188efdfadc06ed3a5b518d27dc51f62f319b /testing/rust/move-py-scripts-to-share.patch | |
parent | e66941ed72d80c578ea9727851fb0cc2c65214e9 (diff) | |
download | aports-2a8472b921baf8c2ac35688df5188f034b526441.tar.bz2 aports-2a8472b921baf8c2ac35688df5188f034b526441.tar.xz |
testing/rust: new aport
http://www.rust-lang.org
The Rust Programming Language
Diffstat (limited to 'testing/rust/move-py-scripts-to-share.patch')
-rw-r--r-- | testing/rust/move-py-scripts-to-share.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/rust/move-py-scripts-to-share.patch b/testing/rust/move-py-scripts-to-share.patch new file mode 100644 index 0000000000..4afbb1f696 --- /dev/null +++ b/testing/rust/move-py-scripts-to-share.patch @@ -0,0 +1,22 @@ +--- a/src/etc/rust-gdb ++++ b/src/etc/rust-gdb +@@ -14,7 +14,7 @@ + + # 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/etc" + + # Run GDB with the additional arguments that load the pretty printers + PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" gdb \ +--- a/src/etc/rust-lldb ++++ b/src/etc/rust-lldb +@@ -22,7 +22,7 @@ + RUSTC_SYSROOT=`rustc --print sysroot` + + # Write the LLDB script to the tempfile +-echo "command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_rust_formatters.py\"" >> $TMPFILE ++echo "command script import \"$RUSTC_SYSROOT/share/rust/etc/lldb_rust_formatters.py\"" >> $TMPFILE + echo "type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust" >> $TMPFILE + echo "type category enable Rust" >> $TMPFILE + |