Openembedded Core Discussions
 help / color / mirror / Atom feed
* [OE-core][PATCH 0/3] systemd: split timesync and networkd to packages
@ 2023-02-08  7:12 Peter Marko
  2023-02-08  7:12 ` [OE-core][PATCH 1/3] systemd: split timesyncd to its own package Peter Marko
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Peter Marko @ 2023-02-08  7:12 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Marko

Motivation for this patch series is sstate-cache reuse.

Basically we have dozen of products with several
different systemd configurations.
Problem is that there are many recipes which depend on systemd.
(or their packaging depends on it)
Especially qtwebengine which takes hours to build and created
sstate objects have several hundereds of gigabytes.

So instead of:
  PACKAGECONFIG:remove:pn-systemd = " timesyncd"
we would like to do just:
  BAD_RECOMMENDATIONS += "systemd-timesyncd"

That allows reuse of sstate-cache for such recipes because
it will build identically, just install to rootfs differently.

One alternative we considered was via systemd-conf, but binaries still
occupy space in rootfs which is not desirable for some devices:
  ln -sf /dev/null ${D}${sysconfdir}/systemd/system/systemd-timesyncd.service

Please comment if you think that we should take a different
approach which is more in line with Yocto project best practices.

Peter Marko (3):
  systemd: split timesyncd to its own package
  systemd.bbclass: add non-recursive service packaging
  systemd: split networkd to its own package

 documentation/ref-manual/variables.rst     | 10 ++++
 meta/classes-recipe/systemd.bbclass        | 15 ++---
 meta/recipes-core/systemd/systemd_252.4.bb | 64 ++++++++++++++++++++--
 3 files changed, 78 insertions(+), 11 deletions(-)

-- 
2.30.2



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-08 12:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08  7:12 [OE-core][PATCH 0/3] systemd: split timesync and networkd to packages Peter Marko
2023-02-08  7:12 ` [OE-core][PATCH 1/3] systemd: split timesyncd to its own package Peter Marko
2023-02-08  7:12 ` [OE-core][PATCH 2/3] systemd.bbclass: add non-recursive service packaging Peter Marko
2023-02-08 11:36   ` Peter Kjellerstedt
2023-02-08 12:05   ` adrian.freihofer
2023-02-08  7:12 ` [OE-core][PATCH 3/3] systemd: split networkd to its own package Peter Marko
2023-02-08  7:38 ` [OE-core][PATCH 0/3] systemd: split timesync and networkd to packages Alexander Kanavin
2023-02-08  7:53   ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox