From: Mark Hatle <mark.hatle@windriver.com>
To: poky@yoctoproject.org
Subject: Sourcing of poky-init-build-env from a non-bash shell...
Date: Fri, 19 Nov 2010 19:23:49 -0600 [thread overview]
Message-ID: <4CE72325.1050806@windriver.com> (raw)
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>
next reply other threads:[~2010-11-20 1:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-20 1:23 Mark Hatle [this message]
2010-11-20 9:43 ` Sourcing of poky-init-build-env from a non-bash shell Gary Thomas
2010-11-20 13:51 ` Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE72325.1050806@windriver.com \
--to=mark.hatle@windriver.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.