Hardcode LLDB python module directory
authorAngus Lees <gus@debian.org>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
Forwarded: not-needed

Debian package installs python modules into a fixed directory, so
just hardcode path in wrapper script.

Gbp-Pq: Name d-rust-lldb-paths

src/etc/rust-lldb

index bce72f1bad698d45b0743adf0b9fb78fc9f039b2..1f363502228636abec3bd87e125fb93a95b8188b 100755 (executable)
@@ -10,7 +10,7 @@ host=$(rustc -vV | sed -n -e 's/^host: //p')
 RUSTC_SYSROOT=$(rustc --print sysroot)
 RUST_LLDB="$RUSTC_SYSROOT/lib/rustlib/$host/bin/lldb"
 
-lldb=lldb
+lldb=lldb-11
 if [ -f "$RUST_LLDB" ]; then
     lldb="$RUST_LLDB"
 else
@@ -30,8 +30,8 @@ EOF
     fi
 fi
 
-script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\""
-commands_file="$RUSTC_SYSROOT/lib/rustlib/etc/lldb_commands"
+script_import="command script import \"/usr/share/rust-lldb/lldb_lookup.py\""
+commands_file="/usr/share/rust-lldb/lldb_commands"
 
 # Call LLDB with the commands added to the argument list
 exec "$lldb" --one-line-before-file "$script_import" --source-before-file "$commands_file" "$@"