kumquat-buildroot/support/dependencies
Yann E. MORIN 72703d02b9 support/dependencies: check that PATH does not contain CWD
A person on IRC reported a build failure with the util-linux package,
looking like this:

for I in uname26 linux32 linux64        ; do \
	cd /home/aep/consulting/chargery/tracker/output/target/usr/bin && ln -sf setarch $I ; \
done
[...]
/bin/sh: line 1: ./ln: cannot execute binary file: Exec format error
/bin/sh: line 1: ./ln: cannot execute binary file: Exec format error
/bin/sh: line 1: ./ln: cannot execute binary file: Exec format error

The issue was an empty path in the PATH variable, which means "current
working directory", causing a "ln" binary built by util-linux for the
target to be used instead of the system-provided "ln".

We already check a number of things in the PATH and LD_LIBRARY_PATH
variables in support/dependencies/dependencies.sh, but we were not
checking that PATH did not contain an empty path.

This commit fixes that and takes this opportunity to simplify the test
code for PATH and LD_LIBRARY_PATH.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[Thomas: improve commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-05-09 23:26:18 +02:00
..
check-host-asciidoc.sh
check-host-cmake.mk
check-host-cmake.sh
check-host-lzip.mk package/pkg-generic: handle host-lzip as an extract dependency 2018-03-25 17:45:58 +02:00
check-host-lzip.sh
check-host-tar.mk
check-host-tar.sh check-host-tar.sh: bump minimum tar version to 1.27 for reproducible tar files with long paths 2018-04-02 14:46:52 +02:00
check-host-xzcat.mk package/pkg-generic: handle host-xz as an extract dependency 2018-03-25 17:44:04 +02:00
check-host-xzcat.sh
dependencies.mk core: kill DEPENDENCIES_HOST_PREREQ 2018-03-25 17:52:06 +02:00
dependencies.sh support/dependencies: check that PATH does not contain CWD 2018-05-09 23:26:18 +02:00