All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] support/dependencies/dependencies.sh: fix check for CWD in env vars
@ 2022-03-19 21:45 Juan Garcia Blanco
  2022-03-20  8:46 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Garcia Blanco @ 2022-03-19 21:45 UTC (permalink / raw)
  To: buildroot; +Cc: Juan Garcia Blanco

The previous pattern incorrectly matches against path lists that don't
contain CWD, but end with ':', e.g., exported like VAR=<...>:$VAR where
$VAR is empty.

Now the pattern explicitly checks for $PWD in the path list.

Signed-off-by: Juan Garcia Blanco <juanrgar@gmail.com>
---
 support/dependencies/dependencies.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index c604a9efcc..d1fe94c9b9 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -16,7 +16,7 @@ fi
 
 # Sanity check for CWD in LD_LIBRARY_PATH
 case ":${LD_LIBRARY_PATH:-unset}:" in
-(*::*|*:.:*)
+(*:$PWD:*|*:.:*)
 	echo
 	echo "You seem to have the current working directory in your"
 	echo "LD_LIBRARY_PATH environment variable. This doesn't work."
@@ -32,7 +32,7 @@ esac
 # An empty PATH is technically possible, but in practice we would not
 # even arrive here if that was the case.
 case ":${PATH:-unset}:" in
-(*::*|*:.:*)
+(*:$PWD:*|*:.:*)
 	echo
 	echo "You seem to have the current working directory in your"
 	echo "PATH environment variable. This doesn't work."
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-20  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19 21:45 [Buildroot] [PATCH] support/dependencies/dependencies.sh: fix check for CWD in env vars Juan Garcia Blanco
2022-03-20  8:46 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.