PKGBUILDs/extra/rust/0001-bootstrap-Change-libexec-dir.patch

46 lines
2 KiB
Diff
Raw Normal View History

2021-05-07 00:05:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Thu, 6 May 2021 20:14:58 +0200
Subject: [PATCH] bootstrap: Change libexec dir
---
2023-01-28 17:25:54 +00:00
src/bootstrap/dist.rs | 4 ++--
src/bootstrap/tool.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
2021-05-07 00:05:08 +00:00
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
2023-01-28 17:25:54 +00:00
index 3cb0eccd324d..c4a76921fd06 100644
2021-05-07 00:05:08 +00:00
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
2023-01-28 17:25:54 +00:00
@@ -403,7 +403,7 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) {
2022-11-05 02:34:29 +00:00
target: compiler.host,
})
.expect("rust-analyzer-proc-macro-server always builds");
- builder.install(&ra_proc_macro_srv, &image.join("libexec"), 0o755);
+ builder.install(&ra_proc_macro_srv, &image.join("lib"), 0o755);
let libdir_relative = builder.libdir_relative(compiler);
2023-01-28 17:25:54 +00:00
@@ -1046,7 +1046,7 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
2021-05-07 00:05:08 +00:00
for dirent in fs::read_dir(cargo.parent().unwrap()).expect("read_dir") {
let dirent = dirent.expect("read dir entry");
if dirent.file_name().to_str().expect("utf8").starts_with("cargo-credential-") {
- tarball.add_file(&dirent.path(), "libexec", 0o755);
+ tarball.add_file(&dirent.path(), "lib", 0o755);
}
}
2022-12-16 19:42:50 +00:00
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs
2023-01-28 17:25:54 +00:00
index e0be4c432f16..410e787616dd 100644
2022-12-16 19:42:50 +00:00
--- a/src/bootstrap/tool.rs
+++ b/src/bootstrap/tool.rs
2023-01-28 17:25:54 +00:00
@@ -783,7 +783,7 @@ fn run(self, builder: &Builder<'_>) -> Option<PathBuf> {
2022-12-16 19:42:50 +00:00
// Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/libexec/`
// so that r-a can use it.
- let libexec_path = builder.sysroot(self.compiler).join("libexec");
+ let libexec_path = builder.sysroot(self.compiler).join("lib");
t!(fs::create_dir_all(&libexec_path));
builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));