aports/main/rust/no-export-ld-library-path.patch
2024-05-02 14:43:21 +00:00

31 lines
1.3 KiB
Diff

Patch-Source: https://github.com/chimera-linux/cports/blob/3dc313d1c83d20cc9ac221e6fe2992d80c64c071/main/rust/patches/0010-do-not-export-LD_LIBRARY_PATH.patch
From 6f363ca048383740bdbebd63013bcedbb10f814a Mon Sep 17 00:00:00 2001
From: Daniel Kolesa <daniel@octaforge.org>
Date: Fri, 25 Feb 2022 00:39:21 +0100
Subject: [PATCH 10/11] do not export LD_LIBRARY_PATH
---
src/bootstrap/bootstrap.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 7c36bb264..b4f9b7066 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -895,12 +895,6 @@ class RustBuild(object):
del env["CARGO_BUILD_TARGET"]
env["CARGO_TARGET_DIR"] = build_dir
env["RUSTC"] = self.rustc()
- env["LD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
- (os.pathsep + env["LD_LIBRARY_PATH"]) \
- if "LD_LIBRARY_PATH" in env else ""
- env["DYLD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
- (os.pathsep + env["DYLD_LIBRARY_PATH"]) \
- if "DYLD_LIBRARY_PATH" in env else ""
env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
(os.pathsep + env["LIBRARY_PATH"]) \
if "LIBRARY_PATH" in env else ""
--
2.35.1