File 0004-bootstrap-Change-libexec-dir.patch of Package rust

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <[email protected]>
Date: Thu, 6 May 2021 20:14:58 +0200
Subject: [PATCH] bootstrap: Change libexec dir

---
 src/bootstrap/src/core/build_steps/dist.rs | 2 +-
 src/bootstrap/src/core/build_steps/tool.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs
index 83f71aeed720..2922054d6d60 100644
--- a/src/bootstrap/src/core/build_steps/dist.rs
+++ b/src/bootstrap/src/core/build_steps/dist.rs
@@ -432,7 +432,7 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) {
                 },
                 builder.kind,
             ) {
-                let dst = image.join("libexec");
+                let dst = image.join("lib");
                 builder.install(&ra_proc_macro_srv.tool_path, &dst, FileType::Executable);
             }
 
diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs
index cd57e06ae04a..05d117eba66e 100644
--- a/src/bootstrap/src/core/build_steps/tool.rs
+++ b/src/bootstrap/src/core/build_steps/tool.rs
@@ -1122,9 +1122,9 @@
             artifact_kind: ToolArtifactKind::Binary,
         });
 
-        // Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/libexec/`
+        // Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/lib/`
         // so that r-a can use it.
-        let libexec_path = builder.sysroot(self.compilers.target_compiler).join("libexec");
+        let libexec_path = builder.sysroot(self.compilers.target_compiler).join("lib");
         t!(fs::create_dir_all(&libexec_path));
         builder.copy_link(
             &tool_result.tool_path,