Группа :: Разработка/Прочее
Пакет: rust
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: rust-gdb.patch
Скачать
Скачать
diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb
index b950cea79e..cbdbcc7ec3 100755
--- a/src/etc/rust-gdb
+++ b/src/etc/rust-gdb
@@ -11,8 +11,7 @@ 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"
+GDB_PYTHON_MODULE_DIRECTORY=$(getconf LIBDIR)/rustlib/etc
# 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-gdbgui b/src/etc/rust-gdbgui
index 9744913b68..632aec5025 100755
--- a/src/etc/rust-gdbgui
+++ b/src/etc/rust-gdbgui
@@ -40,8 +40,7 @@ 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"
+GDB_PYTHON_MODULE_DIRECTORY=$(getconf LIBDIR)/rustlib/etc
# Set the environment variable `RUST_GDB` to overwrite the call to a
# different/specific command (defaults to `gdb`).