From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v2] isar-init-build-env: Always set ISARROOT
Date: Tue, 17 Dec 2019 13:24:00 +0100 [thread overview]
Message-ID: <20191217122400.3aan3h7c6dct3jq7@yssyq.m.ilbers.de> (raw)
In-Reply-To: <556d1edf-1533-4c30-b104-58e7f8235325@googlegroups.com>
On Wed, Dec 11, 2019 at 02:14:03AM -0800, vijai kumar wrote:
> Ok. On a recent thought, Things would go wrong only when someone moves the
> isar-init-build-env and writes
> a wrapper script in the same location. In that case, one would need to pass
> in the ISARROOT from the caller to isar-init-build-env.
A pattern I see in Yocto downstream projects is the project directory
containing poky as subdirectory. The project wrapper script calls the poky one
from the subdirectory. I think the problem is that there is no reliable way to
determine ISARROOT under different shells, e.g.:
cd /home/ibr/myprj
. myprj-init
. isar/isar-init-build-env
The desired value is /home/ibr/myprj/isar. This works with shell extensions
under bash and zsh, but not with dash, thus the ugly
THIS_SCRIPT="$(pwd)/isar-init-build-env" (which also doesn't work for the
scenario above). Dash is the default in Debian to speed up the boot process.
> The issue we have in hand is more critical than this one feature, which
> could very well be written in other ways.
I agree this is an important issue. My suggestion:
* Keep accepting the preset ISARROOT from the environment.
* Remove ISARROOT from the wic scripts.
* Restore unsetting ISARROOT.
With kind regards,
Baurzhan.
next prev parent reply other threads:[~2019-12-17 12:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 21:38 [PATCH] " vijaikumar.kanagarajan
2019-09-27 21:43 ` [PATCH v2] " vijaikumar.kanagarajan
2019-09-30 6:06 ` Jan Kiszka
2019-09-30 6:46 ` Vijai Kumar K
2019-09-30 7:01 ` Jan Kiszka
2019-09-30 7:49 ` Vijai Kumar K
2019-12-11 10:14 ` vijai kumar
2019-12-17 12:24 ` Baurzhan Ismagulov [this message]
2019-12-24 5:21 ` vijai kumar
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=20191217122400.3aan3h7c6dct3jq7@yssyq.m.ilbers.de \
--to=ibr@radix50.net \
--cc=isar-users@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox