From 34deb49e9ce7bd6039039e760a0d6353812f5573 Mon Sep 17 00:00:00 2001 From: Michael Vines <mvines@codeaurora.org> Date: Mon, 19 Jan 2015 16:42:45 -0800 Subject: [PATCH] Detect and fail gracefully if the workspace path contains the substring '-L' Change-Id: If729100a8af85f81f4c85f18715a70130f077cd6 --- vendorsetup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vendorsetup.sh b/vendorsetup.sh index 2b894ac..624889b 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -107,6 +107,16 @@ __patch_tree() cd $(gettop) local TREE_ID=${B2G_TREE_ID:-$(${B2G_TREEID_SH})} + if [[ $(pwd) =~ .*\-L.* ]]; then + echo + echo "ERROR: Build root contains '-L': $(pwd)" + echo " Some versions of gecko are known to fail to build when" + echo " this character sequence is present. Please relocate the" + echo " source tree to continue." + echo + exit 1 + fi + echo "Tree IDs: ${TREE_ID}" echo "Patch directories: " for d in ${B2G_PATCH_DIRS}; do -- GitLab