From 6dc88e110184ac6a8c55bbcc83a2d106b36e85e0 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Thu, 6 Aug 2020 21:11:39 +0100 Subject: [PATCH] Hardcode GDB python module directory Forwarded: not-needed Debian package installs python modules into a fixed directory, so just hardcode path in wrapper script. Gbp-Pq: Name d-rust-gdb-paths --- src/etc/rust-gdb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb index b950cea79e..767cac8395 100755 --- a/src/etc/rust-gdb +++ b/src/etc/rust-gdb @@ -11,8 +11,10 @@ else fi # Find out where the pretty printer Python module is -RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)" -GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" +#RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)" +#GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" +# We can just hardcode this on Debian, and remove the rustc dependency +GDB_PYTHON_MODULE_DIRECTORY="/usr/share/rust-gdb" # Run GDB with the additional arguments that load the pretty printers # Set the environment variable `RUST_GDB` to overwrite the call to a -- 2.30.2