]> code.ossystems Code Review - openembedded-core.git/commitdiff
icecc-create-env: Add /bin/true to environment
authorJoshua Watt <jpewhacker@gmail.com>
Mon, 12 Feb 2018 16:52:00 +0000 (10:52 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Feb 2018 13:20:27 +0000 (13:20 +0000)
icecream daemons execute /bin/true from the environment as a check to
determine if the environment is valid at all, so it needs to be
included.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env

index 723f1f9bd90308380a5153f2789e74cc9b425b24..c838256f748bf5be72002676b2485bdeb459e79a 100755 (executable)
@@ -122,6 +122,16 @@ then
     add_file $pluginfile  /usr${pluginfile#*usr}
 fi
 
+# for testing the environment is usable at all
+if test -x /bin/true; then
+    add_file /bin/true
+elif test -x /usr/bin/true; then
+    add_file /usr/bin/true /bin/true
+else
+    echo "'true' not found"
+    exit 1
+fi
+
 tempdir=`mktemp -d /tmp/iceccenvXXXXXX`
 new_target_files=
 for i in $target_files; do