All of lore.kernel.org
 help / color / mirror / Atom feed
* Sourcing of poky-init-build-env from a non-bash shell...
@ 2010-11-20  1:23 Mark Hatle
  2010-11-20  9:43 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2010-11-20  1:23 UTC (permalink / raw)
  To: poky

In recent days I've had a few people complain to me that the only way they can
use Poky is to switch from their preferred shell to bash.  So I took it upon
myself to attempt to address this issue.

In poky-contrib, commit 479e626839e3c9beb789ec2919d5438930eb04cf, head of
mhatle/initenv branch, is a patch that will allow the script to be sourced in
any reasonable shell.

I've attempted to test this with:
  * bash
  * dash
  * ksh (ksh-93)
  * zsh
  * tcsh

It should also work with csh and pdksh, but I don't have a local version to try it.

If anyone using Poky regularly uses a non-bash shell, could you please try this
and verify that things are working for you?

For those of you who use the bash shell regularly, if you wouldn't mind trying
it in your configurations I'd appreciate it.

(I'm always looking for code reviews as well....)

--Mark

(Commit message follows)

commit 479e626839e3c9beb789ec2919d5438930eb04cf
Author: Mark Hatle <mark.hatle@windriver.com>
Date:   Fri Nov 19 18:10:31 2010 -0600

    poky-init-build-env: Update the build env to work in all POSIX and CSH shells

    The poky-init-build-env was updated to determine the shell type and work in
    all POSIX and CSH shells (within reason).  Some tricky magic was involved in
    determining the type of shell in use (csh or posix), and then configuring
    the directories.

    If the script was sourced with bash, then it works as it did before.  If it
    was sourced with any other shell, it requires the user's pwd to be the same
    as the OEROOT.

    In the scripts directory, poky-init-build-env used to further source the
    poky-env-internal script.  This script was broken up into two primary pieces:
      1) The chunk that sets up the environment
      2) The chunk that verifies and sets up the BUILDDIR

    The first component was further seperated into two items, an sh and a csh
    version.  While it's possible to combine them, it's much easier this way.

    The second component runs as a stand-a-lone sh script, so it is written for
    use in /bin/sh

    Signed-off-by: Mark Hatle <mark.hatle@windriver.com>



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

* Re: Sourcing of poky-init-build-env from a non-bash shell...
  2010-11-20  1:23 Sourcing of poky-init-build-env from a non-bash shell Mark Hatle
@ 2010-11-20  9:43 ` Gary Thomas
  2010-11-20 13:51   ` Mark Hatle
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2010-11-20  9:43 UTC (permalink / raw)
  To: Mark Hatle; +Cc: poky

On 11/19/2010 06:23 PM, Mark Hatle wrote:
> In recent days I've had a few people complain to me that the only way they can
> use Poky is to switch from their preferred shell to bash.  So I took it upon
> myself to attempt to address this issue.
>
> In poky-contrib, commit 479e626839e3c9beb789ec2919d5438930eb04cf, head of
> mhatle/initenv branch, is a patch that will allow the script to be sourced in
> any reasonable shell.
>
> I've attempted to test this with:
>    * bash
>    * dash
>    * ksh (ksh-93)
>    * zsh
>    * tcsh
>
> It should also work with csh and pdksh, but I don't have a local version to try it.
>
> If anyone using Poky regularly uses a non-bash shell, could you please try this
> and verify that things are working for you?
>
> For those of you who use the bash shell regularly, if you wouldn't mind trying
> it in your configurations I'd appreciate it.
>
> (I'm always looking for code reviews as well....)
>
> --Mark
>
> (Commit message follows)
>
> commit 479e626839e3c9beb789ec2919d5438930eb04cf
> Author: Mark Hatle<mark.hatle@windriver.com>
> Date:   Fri Nov 19 18:10:31 2010 -0600

Where can I find this?  It doesn't seem to be in the main Poky tree,
so I assume poky-contrib?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Sourcing of poky-init-build-env from a non-bash shell...
  2010-11-20  9:43 ` Gary Thomas
@ 2010-11-20 13:51   ` Mark Hatle
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2010-11-20 13:51 UTC (permalink / raw)
  To: Gary Thomas; +Cc: poky

On 11/20/10 3:43 AM, Gary Thomas wrote:
> On 11/19/2010 06:23 PM, Mark Hatle wrote:
>> In recent days I've had a few people complain to me that the only way they can
>> use Poky is to switch from their preferred shell to bash.  So I took it upon
>> myself to attempt to address this issue.
>>
>> In poky-contrib, commit 479e626839e3c9beb789ec2919d5438930eb04cf, head of
>> mhatle/initenv branch, is a patch that will allow the script to be sourced in
>> any reasonable shell.
> 
> Where can I find this?  It doesn't seem to be in the main Poky tree,
> so I assume poky-contrib?

See above, poky-contrib, mhatle/initenv branch.

--Mark

> Thanks
> 



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

end of thread, other threads:[~2010-11-20 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  1:23 Sourcing of poky-init-build-env from a non-bash shell Mark Hatle
2010-11-20  9:43 ` Gary Thomas
2010-11-20 13:51   ` Mark Hatle

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.