On Wed, 2025-02-05 at 09:28 +0100, Esben Haabendal wrote:
> "Richard Purdie via lists.openembedded.org"
> <[email protected]> writes:
> > > Is anything holding this back?
> > 
> > Yes, there is.
> > 
> > You're using the SDK in a way which it wasn't really intended for and
> > we're seeing "feature creep" where systemd's requirements being pushed
> > into places they don't really belong.
> 
> Applying "usrmerge" to SDK is not a systemd feature as such. In my
> opinion, not splitting binaries in multiple bin dirs in general makes
> sense for an SDK. And throwing in a simple symlink for making stuff
> work, is super innocent in my opinion (for whatever that is worth).
> 
> What is so fundamentally wrong or bad in allowing people to create SDK
> with usrmerge?
> 
> > If systemd was truly "cross", you wouldn't need to force the target
> > layout into the SDK.
> 
> There is no pushing of target layout into the SDK. The need or desire
> for having usrmerge in SDK is independent of target layout as such.
> Of-course, if you are having any kind of systemd tools in SDK, chances
> are that you are including some systemd features in target rootfs as
> well. But in theory, it is really independent.
> 
> It is totally possible to for example want to include systemd-repart
> command in SDK and not have anything systemd in target rootfs.
> 
> > The SDK layout should be independent of the target
> > system and this breaks that understanding.
> 
> I agree on the former, and disagree on the latter. What Sean is pushing
> here allows people to build SDK with a usrmerge style layout. If they
> want to use usrmerge layout in rootfs layout or not is a different
> story.

Play out this scenario. Firstly, we would now officially have to
support two different SDK layouts. The alternative is we don't test one
of them, which would imply one of them is broken some of the time.

As soon as someone wants to include systemd-repart or libudev or one of
these other tools, we'd effectively force the selection of usrmerge in
the SDK since it won't build/work otherwise. We'd at least need to make
sure there were clear errors about why the configuration wouldn't work.

These two factors combined effectively forces everyone to that layout
whether they want to use it or not.

I really don't like imposing design choices like that by stealth.

To be honest I'd probably agree about only needing one bindir but what
I object to is doing it via usrmerge and doing it because systemd
requires it. If we did it, we should do it properly and for example
skip the symlinks since we control all the code. That would probably
break systemd too though since that wouldn't match it's world view
either.

I've been reluctant to go down the single bindir path before because I
know who will get all the bug reports to fix. I worry that will be the
case for usrmerge in the SDK too since people like to apply a bandaid
to make their specific use case work, then move on. I totally
understand why but it does make me reluctant to take such changes. I'd
also mention, how often do I actually say "no" to changes? I can think
of only two in the current development cycle, both complicating the
SDK.

Cheers,

Richard




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#210834): 
https://lists.openembedded.org/g/openembedded-core/message/210834
Mute This Topic: https://lists.openembedded.org/mt/110665235/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to