Skip to content

systemd split networkd package

Adrian Freihofer openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5busybox: add klogd service to FILESmeta/recipes-core/busybox/busybox.inc+8 -10 replies
2/5dropbear: add dropbearkey.service to FILESmeta/recipes-core/dropbear/dropbear_2024.86.bb+2 -00 replies
3/5systemd.bbclass: refactor adding filesmeta/classes-recipe/systemd.bbclass+12 -160 replies
4/5systemd.bbclass: do not automatically add Also servicesmeta/classes-recipe/systemd.bbclass+7 -70 replies
5/5systemd: split networkd into its own packagemeta/recipes-core/systemd/systemd_256.8.bb+25 -35 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/5] systemd split networkd package

v2 fixes the build warning

First of all, this patch series fixes a bug in systemd.bbclass that forces service files with an Also= relationship to be in the same package. This may often be the case, but as long as the RDEPENDS between the packages are set correctly, it is no problem to distribute the service files over several packages.

If service files referenced with Also= are no longer automatically added to the list of FILES, build errors caused by unpacked files are expected. A bitbake world has shown that there are only two recipes in oe-core that use automatic packing: busybox and dropbear. There are 2 patches that fix this.

Also= relation are probably most often used for sockets. Consequently the systemd.bbclass should also allow to split socket files into separate packages. However, that's proably practically not used and would cause tons of packaging errors. Therefore the automatic packaging feature for sockets is not changed.

The latest patch splits systemd-networkd into its own package. This adds a little extra complexity, but splitting systemd into packages is a good step towards making Yocto more usable in binary form.

Adrian Freihofer (5):
busybox: add klogd service to FILES
dropbear: add dropbearkey.service to FILES systemd.bbclass: refactor adding files systemd.bbclass: do not automatically add Also services
systemd: split networkd into its own package

 meta/classes-recipe/systemd.bbclass           | 28 ++++++++-----------
 meta/recipes-core/busybox/busybox.inc         |  9 +++++-
 .../recipes-core/dropbear/dropbear_2024.86.bb |  2 ++
 meta/recipes-core/systemd/systemd_256.8.bb    | 28 +++++++++++++++++--
 4 files changed, 47 insertions(+), 20 deletions(-)
Signature · 1 line
2.47.0