From 23079c3d8fdac9733dbd34343a8b397edc1b7340 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Mon, 2 Mar 2026 16:22:58 +0300
Subject: trinity-functions-2.eclass: stop defining LD_LIBRARY_PATH

This were causing build failures on ABI/API change of tdelibs. It looks
like the variable is not needed anymore (see #402).

Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging-gentoo/issues/402
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 0067a0491328fd0097d5eb261beda6328d54cf5c)
---
 eclass/trinity-functions-2.eclass | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/eclass/trinity-functions-2.eclass b/eclass/trinity-functions-2.eclass
index 1d709242..d27b2be7 100644
--- a/eclass/trinity-functions-2.eclass
+++ b/eclass/trinity-functions-2.eclass
@@ -76,7 +76,7 @@ get-trinity-libdirs() {
 # @FUNCTION: adjust-trinity-paths
 # @USAGE: < version >
 # @DESCRIPTION:
-# Adjusts PATH and LD_LIBRARY_PATH to see only current trinity version.
+# Adjusts PATH and other env vars to see only current trinity version.
 adjust-trinity-paths() {
 	debug-print-function ${FUNCNAME} "${@}"
 	local libdir
@@ -86,13 +86,7 @@ adjust-trinity-paths() {
 	PATH="$(trinity_remove_path_component "${PATH}" "/usr/trinity/*/sbin")"
 	PATH="$(trinity_prepand_path_component "${PATH}" "${TDEDIR}/bin" )"
 
-	LD_LIBRARY_PATH="$(trinity_remove_path_component "${LD_LIBRARY_PATH}" "/usr/trinity/*/${libdir}")"
-	for libdir in $(get-trinity-libdirs); do
-		LD_LIBRARY_PATH="$(trinity_prepand_path_component "${LD_LIBRARY_PATH}" "${libdir}" )"
-	done
-
 	export PATH
-	export LD_LIBRARY_PATH
 
 	# Unset home paths so applications wouldn't try to write to root's dir while building
 	unset TDEHOME
-- 
cgit v1.2.3

