diff mbox series

[v3,1/3] migration-guides: systemd.bbclass do not add Also services for 5.2

Message ID 20250113233736.4181201-2-adrian.freihofer@siemens.com
State Superseded
Headers show
Series Cover systemd.bbclass and devtool ide-sdk changes | expand

Commit Message

Adrian Freihofer Jan. 13, 2025, 11:31 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@gmail.com>

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

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 .../migration-guides/migration-5.2.rst        | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Quentin Schulz Jan. 14, 2025, 10:03 a.m. UTC | #1
Hi Adrian,

On 1/14/25 12:31 AM, Adrian Freihofer via lists.yoctoproject.org wrote:
> From: Adrian Freihofer <adrian.freihofer@gmail.com>
> 
> Covers the chagnes introduced by commit
> https://git.yoctoproject.org/poky/commit/?id=efa5f65c2214239ed7aaf7bd8998683e755c5660
> 
> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> ---
>   .../migration-guides/migration-5.2.rst        | 20 +++++++++++++++++++
>   1 file changed, 20 insertions(+)
> 
> diff --git a/documentation/migration-guides/migration-5.2.rst b/documentation/migration-guides/migration-5.2.rst
> index cb70e19da0c..0e0566fa6f3 100644
> --- a/documentation/migration-guides/migration-5.2.rst
> +++ b/documentation/migration-guides/migration-5.2.rst
> @@ -74,6 +74,26 @@ 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

I think we want "``systemd`` service" here instead of "systemd ``service``".

> +   files by starting them as

I am not a native speaker but I would use "via" instead of "as" here. 
Not convinced it's proper though.

> +   `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 :term:`FILES` and :term:`SYSTEMD_SERVICE`

s/B/``B``/ for consistency.

Cheers,
Quentin
diff mbox series

Patch

diff --git a/documentation/migration-guides/migration-5.2.rst b/documentation/migration-guides/migration-5.2.rst
index cb70e19da0c..0e0566fa6f3 100644
--- a/documentation/migration-guides/migration-5.2.rst
+++ b/documentation/migration-guides/migration-5.2.rst
@@ -74,6 +74,26 @@  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 :term:`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
 ~~~~~~~~~~~~~~