All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][for-danny] scripts/bitbake: Remove all instances of paths to a layer's scripts directory.
@ 2013-02-16  1:58 Denys Dmytriyenko
  2013-02-19 11:18 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Dmytriyenko @ 2013-02-16  1:58 UTC (permalink / raw)
  To: openembedded-core

From: "Franklin S. Cooper Jr" <fcooper@ti.com>

* 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 <fcooper@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 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"
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH][for-danny] scripts/bitbake: Remove all instances of paths to a layer's scripts directory.
  2013-02-16  1:58 [PATCH][for-danny] scripts/bitbake: Remove all instances of paths to a layer's scripts directory Denys Dmytriyenko
@ 2013-02-19 11:18 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2013-02-19 11:18 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: openembedded-core

On 16 February 2013 01:58, Denys Dmytriyenko <denis@denix.org> wrote:
> From: "Franklin S. Cooper Jr" <fcooper@ti.com>
>
> * 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]

Queued in danny-next but probably won't make 1.3.1.

Thanks,
Ross



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-19 11:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-16  1:58 [PATCH][for-danny] scripts/bitbake: Remove all instances of paths to a layer's scripts directory Denys Dmytriyenko
2013-02-19 11:18 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.