From patchwork Sat Feb 16 01:58:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [for-danny] scripts/bitbake: Remove all instances of paths to a layer's scripts directory. Date: Sat, 16 Feb 2013 01:58:32 -0000 From: Denys Dmytriyenko X-Patchwork-Id: 44711 Message-Id: <1360979912-470-1-git-send-email-denis@denix.org> To: openembedded-core@lists.openembedded.org From: "Franklin S. Cooper Jr" * Currently the assumption is made that only oe-core can include a scripts directory. * However, when other layers create a scripts directory the bitbake script freaks out causing a infinite recursive loop until it crashes. * Simply changing the regular expression to remove all instances of scripts path instead of just the first one fixes this problem. [Yocto Bug 3872] Signed-off-by: Franklin S. Cooper Jr Signed-off-by: Saul Wold --- scripts/bitbake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bitbake b/scripts/bitbake index 79a81ea..ca2bc82 100755 --- a/scripts/bitbake +++ b/scripts/bitbake @@ -126,7 +126,7 @@ if [ $needpseudo != "0" -a $buildpseudo -eq 0 ]; then fi OLDPATH=$PATH -export PATH=`echo $PATH | sed s#[^:]*/scripts:##` +export PATH=`echo $PATH | sed s#[^:]*/scripts:##g` if [ $buildpseudo -gt 0 ]; then [ $buildpseudo -eq 1 ] && echo "Pseudo is not present but is required, building this first before the main build" [ $buildpseudo -eq 2 ] && echo "Pseudo may be out of date, rebuilding pseudo before the main build"