public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Daniel Machon <dama@universal-robots.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: Relocation of SDK
Date: Mon, 22 Feb 2021 10:41:56 +0100	[thread overview]
Message-ID: <dc0b9718-39b5-78d8-a9f9-d4436bacabbf@siemens.com> (raw)
In-Reply-To: <febaf55bc1d644deb4bab63c331910cb@universal-robots.com>

On 20.02.21 22:31, Daniel Machon wrote:
>
> Hi,
>
>  
>
> I have been working with the SDK lately, and came across a rather
> unfortunate side-effect of the relocation of the SDK.
>
>  
>
> When the SDK is relocated, the interpreter and the RPATH of **ALL**
> the binaries are changed to that of the host system. This means that a
> developer can not longer chroot into the SDK.
>

Right - but then don't relocate in the first place.

>  
>
> I would argue, that a common development workflow would be to use the
> cross-toolchain provided by the SDK, and then chroot into the SDK to
> install dependencies (we have the possibility of installing multiarch
> packages). This is currently not possible, because the interpreter and
> the RPATH is change for all the binaries of the SDK.
>

You can add missing packages upfront, see SDK_* variables. This is
superior anyway because an SDK is a snapshot that may have a hard time
still finding fitting dependencies that weren't included at build time.

>  
>
> Why not only change the interpreter and RPATH of the cross-toolchain
> binaries? These are the binaries that are meant to be run on the host
> anyway.
>
> If you need to change the RPATH of any libraries (I came across this
> need when trying to make gdb available to the host), you can make
> RPATH relative using $ORIGIN.
>

As Baurzhan commented, this is not that easy.

I think we have two clearly different use cases than can be derived from
the same SDK tarball - but not run at the same time.

Also note that there will be a better alternative to privileged chroots:
SDK container images. See patches on the list.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


      parent reply	other threads:[~2021-02-22  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20 21:31 Daniel Machon
2021-02-22  9:03 ` Baurzhan Ismagulov
2021-02-22 11:01   ` Daniel Machon
2021-02-22  9:41 ` Jan Kiszka [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=dc0b9718-39b5-78d8-a9f9-d4436bacabbf@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=dama@universal-robots.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