Skip to contentSkip to conversation

Cover systemd.bbclass and devtool ide-sdk changes

PATCH Superseded Adrian Freihofer 3 participants 6 messages Jan 9, 2025 – Jan 13, 2025

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover Cover systemd.bbclass and devtool ide-sdk changes

Diff to v1:
- rebased on todays master branch
- Folowing all the suggestions from Antonin
https://lists.yoctoproject.org/g/docs/message/6034
Thank you for the review!

Adrian Freihofer (3):
migration-guides: systemd.bbclass do not add Also services for 5.2
sdk-manual: extensible.rst: update devtool ide-sdk
sdk-manual: extensible.rst: remove confusing post-install-logging

 .../migration-guides/migration-5.2.rst        | 19 +++++++++++++++++++
 documentation/sdk-manual/extensible.rst       |  8 ++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.1
#1 lore raw

PATCH v2 1/3 migration-guides: systemd.bbclass do not add Also services for 5.2

Covers the chagnes introduced by commit
https://git.yoctoproject.org/poky/commit/?id=efa5f65c2214239ed7aaf7bd8998683e755c5660

---
 .../migration-guides/migration-5.2.rst        | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
documentation/migration-guides/migration-5.2.rst +19 -0
index cb70e19da..b18ae30d9 100644
@@ -74,6 +74,25 @@ systemd changes
    As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge``
    :term:`PACKAGECONFIG` option as it is now implied by default.
 
+-  ``systemd.bbclass``: If a systemd service file had referred to other service
+   files by starting them as
+   `Also <https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Also=>`__,
+   the other service files were automatically added to the :term:`FILES` variable of
+   the same package. Example: 
+
+   a.service contains::
+
+      [Install]
+      Also=b.service
+
+   If a.service is packaged in package A, b.service is automatically packaged
+   into package A as well. This happens even if b.service is explicitly added
+   to package B using FILES and :term:`SYSTEMD_SERVICE` variables.
+   This prevents such services from being packaged into different packages.
+   Therefore, this automatic behavior has been removed for service files (but
+   not for socket files).
+   Now all service files must be explicitly added to :term:`FILES`.
+
 Recipe changes
 ~~~~~~~~~~~~~~
 
Signature · 1 line
2.47.1
Reviewed-by on v2 1/3
#2 lore raw

Re: [docs] [PATCH v2 1/3] migration-guides: systemd.bbclass do not add Also services for 5.2

Hi Adrian,

Quoted 28 lines · Adrian Freihofer via lists.yoctoproject.org

Covers the chagnes introduced by commit
https://git.yoctoproject.org/poky/commit/?id=efa5f65c2214239ed7aaf7bd8998683e755c5660

---
 .../migration-guides/migration-5.2.rst        | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
documentation/migration-guides/migration-5.2.rst +12 -0
index cb70e19da..b18ae30d9 100644
@@ -74,6 +74,25 @@ systemd changes
    As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge``
    :term:`PACKAGECONFIG` option as it is now implied by default.
 
+-  ``systemd.bbclass``: If a systemd service file had referred to other service
+   files by starting them as
+   `Also <https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Also=>`__,
+   the other service files were automatically added to the :term:`FILES` variable of
+   the same package. Example: 
+
+   a.service contains::
+
+      [Install]
+      Also=b.service
+
+   If a.service is packaged in package A, b.service is automatically packaged

documentation/migration-guides/migration-5.2.rst systemd changes · line 98

Quoted 10 lines
documentation/migration-guides/migration-5.2.rst +7 -0
+   into package A as well. This happens even if b.service is explicitly added
+   to package B using FILES and :term:`SYSTEMD_SERVICE` variables.
+   This prevents such services from being packaged into different packages.
+   Therefore, this automatic behavior has been removed for service files (but
+   not for socket files).
+   Now all service files must be explicitly added to :term:`FILES`.
+
 Recipe changes
 ~~~~~~~~~~~~~~
 

Thank you!
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Re: [docs] [PATCH v2 1/3] migration-guides: systemd.bbclass do not add Also services for 5.2

In reply to Adrian Freihofer

Hi Adrian,

Quoted 13 lines · Adrian Freihofer via lists.yoctoproject.org

Covers the chagnes introduced by commit
https://git.yoctoproject.org/poky/commit/?id=efa5f65c2214239ed7aaf7bd8998683e755c5660

---
  .../migration-guides/migration-5.2.rst        | 19 +++++++++++++++++++
  1 file changed, 19 insertions(+)
documentation/migration-guides/migration-5.2.rst +0 -0
index cb70e19da..b18ae30d9 100644

documentation/migration-guides/migration-5.2.rst systemd changes · line 77

Quoted 4 lines
documentation/migration-guides/migration-5.2.rst +1 -0
@@ -74,6 +74,25 @@ systemd changes
     As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge``
     :term:`PACKAGECONFIG` option as it is now implied by default.
 
+-  ``systemd.bbclass``: If a systemd service file had referred to other service

``systemd`` ?

documentation/migration-guides/migration-5.2.rst systemd changes · line 90

Quoted 13 lines
documentation/migration-guides/migration-5.2.rst +13 -0
+   files by starting them as
+   `Also <https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Also=>`__,
+   the other service files were automatically added to the :term:`FILES` variable of
+   the same package. Example:
+
+   a.service contains::
+
+      [Install]
+      Also=b.service
+
+   If a.service is packaged in package A, b.service is automatically packaged
+   into package A as well. This happens even if b.service is explicitly added
+   to package B using FILES and :term:`SYSTEMD_SERVICE` variables.

s/FILES/:term:FILES/

For all the above, probably ``a.service``, ``A``, ``b.service``, ``B``, for words that aren't English.

Looks good otherwise.

Cheers,
Quentin

#4 lore raw

PATCH v2 2/3 sdk-manual: extensible.rst: update devtool ide-sdk

In reply to Adrian Freihofer

Replace
devtool ide-sdk --debug-build-config
by
devtool modify --debug-build

This change was introduced with commit
https://git.yoctoproject.org/poky/commit/?id=1f7eb26c947dde14698ae6e2ab88f0637027f4cb

---
 documentation/sdk-manual/extensible.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
documentation/sdk-manual/extensible.rst +4 -3
index 9a50d7fc5..3733997fa 100644
@@ -669,7 +669,8 @@ The extensible SDK supports two different development modes.
       IMAGE_INSTALL:append = " my-recipe"
 
    Assuming the BitBake environment is set up correctly and a workspace has
-   been created for the recipe using ``devtool modify my-recipe``, the
+   been created for the recipe using ``devtool modify my-recipe`` or probably
+   even better by using ``devtool modify my-recipe --debug-build``, the
    following command can create the SDK and the configuration for VSCode in
    the recipe workspace::
 
@@ -786,8 +787,8 @@ The extensible SDK supports two different development modes.
    .. code-block:: sh
 
       # Create the SDK
-      devtool modify cmake-example
-      devtool ide-sdk cmake-example core-image-minimal -c --debug-build-config --ide=none
+      devtool modify cmake-example --debug-build
+      devtool ide-sdk cmake-example core-image-minimal -c --ide=none
 
       # Install the firmware on a target device or start QEMU
       runqemu
Signature · 1 line
2.47.1
#5 lore raw

PATCH v2 3/3 sdk-manual: extensible.rst: remove confusing post-install-logging

In reply to Adrian Freihofer

This is a fix for 22dc5b3be3b1fbdb9447999b71f79db055271826, which has completely replaced debug-tweaks. But in the context of devtool ide-sdk and the comment in the example, the post-install-logging-image feature doesn't really make much sense. Therefore, remove it.

---
 documentation/sdk-manual/extensible.rst | 1 -
 1 file changed, 1 deletion(-)
documentation/sdk-manual/extensible.rst +0 -1
index 3733997fa..1cb1bb47c 100644
@@ -658,7 +658,6 @@ The extensible SDK supports two different development modes.
          allow-empty-password \
          allow-root-login \
          empty-root-password \
-         post-install-logging \
       "
 
       # Remote debugging needs gdbserver on the target device
Signature · 1 line
2.47.1