From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v2 1/6] sdk: Add support for adding self-defined sdk packages
Date: Fri, 12 Jun 2020 11:34:46 +0200 [thread overview]
Message-ID: <20200612093446.GQ5077@yssyq.m.ilbers.de> (raw)
In-Reply-To: <392d9aec-1b35-b9e5-3ad6-c6b2f1b7a102@siemens.com>
Hello Jan,
On Mon, Jun 08, 2020 at 12:22:26PM +0200, Jan Kiszka wrote:
> I just realized another design issue with current sdk building:
> sdkchroot is shared with all image recipes that request
> do_populated_sdk. You may expect that defining SDP_[PRE]INSTALL there
> would have any impact, but that's not true therefore. Only adding those
> to an appended sdkchroot recipe or the global configuration works right
> now. As these additions may very well be specific to individual target
> images, neither of those options are perfect. We rather need to make the
> sdkchroot specific to the target image requesting it.
>
> That said, such a rework could happen later because the current form is
> already fine for a lot of use cases (and is being used for a longer
> while now).
Thanks for the heads up, this was not on our radar. Let me check it and get
back to you.
Our comments so far:
1. I think the series is a good improvement, thanks.
2. isar-apt is added to the SDK so that the developer can install anything
after the initial preparation of the SDK. E.g., the user has SDK_INSTALL +=
libhello-dev but during the work he decides to install also libbye-dev using
apt. I suggest to keep isar-apt configured unless there is a better solution
for this use case. This also implies that we should keep both approaches --
relocate and chroot -- usable.
3. relocate-sdk -r puts two slashes into the binaries. Also, strictly speaking,
it doesn't restore the binary into the state it was before, since rpath was
not set by default. Should we just remove rpath instead?
4. It is also possible to set rpath to a relative path (in combination with
$ORIGIN). In that way, the same SDK would be usable with or without chroot
-- the use case is e.g. #2.
5. I'd suggest to drop "recommended" and "fallback" from README.sdk.
relocate-sdk is already listed as the first option. The rest is a matter of
developers' preference. Or is there a specific reason to prefer one?
E.g., I personally use chroot to avoid host environment leakage into the
built stuff. I'd like to work on the host, but in a Debian way (think
multiarch -- which IIUC currently doesn't support amd64-stretch on
amd64-buster).
6. rpath and wrapping doesn't address all use cases.
1. Shared libraries may use other shared libraries.
E.g., ffmpeg fails to find libopenal.so.1 if
usr/lib/x86_64-linux-gnu/libavdevice.so.58 is not patched.
2. Binaries outside of bin are not patched, e.g. clang-format.
3. Wrapping doesn't cover e.g. arm-linux-gnueabihf-gcc on qemuarm-buster.
What is your vision on this? I think we will never cover all possible cases
and should rather strive for a working subset -- which your patch provides.
I also think this should be documented, because I assume that Yocto SDK is
not buggy in this regard (manual usability due to -isystem and stuff left
aside) and encountering such problems with the Isar SDK would be a bad
surprise.
With kind regards,
Baurzhan.
next prev parent reply other threads:[~2020-06-12 9:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-28 11:24 [PATCH v2 0/6] Evolve SDK to chroot-free usage Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 1/6] sdk: Add support for adding self-defined sdk packages Jan Kiszka
2020-06-08 10:22 ` Jan Kiszka
2020-06-12 9:34 ` Baurzhan Ismagulov [this message]
2020-06-12 9:54 ` Jan Kiszka
2020-06-12 10:05 ` Jan Kiszka
2020-06-12 10:30 ` Jan Kiszka
2020-06-22 8:09 ` Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 2/6] sdk: Make all links in the SDK chroot relative Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 3/6] sdk: Add script to relocate SDK Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 4/6] sdk: Do not ship the isar-apt repo Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 5/6] sdk: Inject sysroot path when calling relocated toolchain Jan Kiszka
2020-07-14 20:22 ` [PATCH v3 " Jan Kiszka
2020-08-31 16:32 ` Jan Kiszka
2020-09-21 9:27 ` Jan Kiszka
2020-09-21 10:05 ` Baurzhan Ismagulov
2020-09-21 11:47 ` Jan Kiszka
2020-03-28 11:24 ` [PATCH v2 6/6] sdk: Update README.sdk Jan Kiszka
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=20200612093446.GQ5077@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