From: vijai kumar <vijaikumar.kanagarajan@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v2] isar-init-build-env: Always set ISARROOT
Date: Mon, 23 Dec 2019 21:21:44 -0800 (PST) [thread overview]
Message-ID: <a3c7b054-dd50-4bb2-b95d-e3d690ac2465@googlegroups.com> (raw)
In-Reply-To: <20191217122400.3aan3h7c6dct3jq7@yssyq.m.ilbers.de>
[-- Attachment #1.1: Type: text/plain, Size: 1692 bytes --]
On Tuesday, December 17, 2019 at 5:54:03 PM UTC+5:30, Baurzhan Ismagulov
wrote:
>
> 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.
>
>
Ah, I see.
> > 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.
>
>
Agreed. I think its better remove ISARROOT references now before it gets
used in multiple places.
Right now, I think its mostly in wic-img and ci-build. I will keep this in
my todo-list pipeline.
Thanks,
Vijai Kumar K
> With kind regards,
> Baurzhan.
>
[-- Attachment #1.2: Type: text/html, Size: 2357 bytes --]
prev parent reply other threads:[~2019-12-24 5:21 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
2019-12-24 5:21 ` vijai kumar [this message]
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=a3c7b054-dd50-4bb2-b95d-e3d690ac2465@googlegroups.com \
--to=vijaikumar.kanagarajan@gmail.com \
--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