kumquat-buildroot/support
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
..
config-fragments support/config-fragments/autobuild: update ARC pre-built toolchain 2018-04-22 12:28:41 +02:00
dependencies support/dependencies: check that PATH does not contain CWD 2018-05-09 23:26:18 +02:00
docker support/dockerfile: install flake8 2018-03-13 22:32:36 +01:00
download download/git: always do full-clone 2018-05-01 21:22:28 +02:00
gnuconfig support/gnuconfig: bump version to 2016-05-15 2016-06-05 22:26:57 +02:00
kconfig merge_config.sh: add br2-external support 2018-01-29 14:54:42 +01:00
legal-info legal-info: add hash for our own license file 2017-07-05 16:31:40 +02:00
libtool
misc Update for 2018.02 2018-03-04 22:28:34 +01:00
scripts support/scripts: drop xorg-release script 2018-04-27 22:50:36 +02:00
testing support/testing: set $USER in rust tests 2018-04-29 09:57:32 +02:00