Fix sysroot detection which would result in /usr/lib/lib/rustlib
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 10 Sep 2023 17:22:53 +0000 (18:22 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sun, 10 Sep 2023 17:22:53 +0000 (18:22 +0100)
commita7195c97c196fee7ea330f3279b420339a812067
treeb1a243c6833c6625d91f1ebf5d3c762fd4eba616
parenta912377c996ebb824da1d7b241e38e94860ee994
Fix sysroot detection which would result in /usr/lib/lib/rustlib

Bug: https://github.com/rust-lang/rust/issues/109994

This patch is a mixture of two upstream fix attempts. The first from
https://github.com/rust-lang/rust/pull/108376 didn't actually solve the
problem in Debian's case. After reporting that in $Bug, a second attempt is
made at https://github.com/rust-lang/rust/pull/110281, which worked.

Gbp-Pq: Name u-fix-sysroot-detection-logic.patch
compiler/rustc_session/src/filesearch.rs