summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2025-01-17 17:11:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-20 13:45:06 +0000
commit9c2268e92ba91c4c9af36275caeca294148aa795 (patch)
treeefaed7b07bd1732b66452cb64be36abbef5346ab
parent51ffd381e38ff55ef1e864d7841a436050ffaa69 (diff)
downloadpoky-9c2268e92ba91c4c9af36275caeca294148aa795.tar.gz
migration-guides: systemd.bbclass do not add Also services for 5.2
Covers the changes introduced by commit https://git.yoctoproject.org/poky/commit/?id=efa5f65c2214239ed7aaf7bd8998683e755c5660 (From yocto-docs rev: 71acf03e02d1e21a4dbe081e75d1e4383ac2f3ac) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/migration-guides/migration-5.2.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/migration-guides/migration-5.2.rst b/documentation/migration-guides/migration-5.2.rst
index cb70e19da0..e9de6910e1 100644
--- a/documentation/migration-guides/migration-5.2.rst
+++ b/documentation/migration-guides/migration-5.2.rst
@@ -74,6 +74,26 @@ systemd changes
74 As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge`` 74 As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge``
75 :term:`PACKAGECONFIG` option as it is now implied by default. 75 :term:`PACKAGECONFIG` option as it is now implied by default.
76 76
77- ``systemd.bbclass``: If a ``systemd`` service file had referred to other service
78 files by starting them via
79 `Also <https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Also=>`__,
80 the other service files were automatically added to the :term:`FILES` variable of
81 the same package. Example:
82
83 a.service contains::
84
85 [Install]
86 Also=b.service
87
88 If ``a.service`` is packaged in package ``A``, ``b.service`` was
89 automatically packaged into package ``A`` as well. This happened even if
90 ``b.service`` was explicitly added to package ``B`` using :term:`FILES` and
91 :term:`SYSTEMD_SERVICE` variables.
92 This prevented such services from being packaged into different packages.
93 Therefore, this automatic behavior has been removed for service files (but
94 not for socket files).
95 Now all service files must be explicitly added to :term:`FILES`.
96
77Recipe changes 97Recipe changes
78~~~~~~~~~~~~~~ 98~~~~~~~~~~~~~~
79 99