diff options
| author | Florian Wickert <fw@ferncast.de> | 2023-11-03 15:50:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-05 08:44:06 +0000 |
| commit | 3c104cb8f66ea1329c83f34c0e6169194039d3f9 (patch) | |
| tree | ec23a134bd55bf986fbefae95ce5ad9b866a7e97 | |
| parent | 81a400a8f56f2a8122102d7f3c13062e1e5205dc (diff) | |
| download | poky-3c104cb8f66ea1329c83f34c0e6169194039d3f9.tar.gz | |
systemd: fix libnss-mymachines packaging
By removing libnss_mymachines.so.2 from FILES:${PN}-container it
correctly gets packaged into libnss-mymachines, just like the other
libnss-* components, due to PACKAGES_DYNAMIC.
To make up for the missing lib in the container package, I added
libnss-mymachines to RDEPENDS:${PN}-container. As I understand it,
the lib should be installed even without this if anything from the
container package links against it. But since I don't know if there
was a special reason to explicitly add it to the container files list,
like something using dlopen to load the lib, it seemd to be the
safest option.
(From OE-Core rev: 90f143984732ba0453c2d3a734eeb4d1a289269b)
Signed-off-by: Florian Wickert <fw@ferncast.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/systemd/systemd_254.4.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd_254.4.bb b/meta/recipes-core/systemd/systemd_254.4.bb index ef29116bf9..ddc8a0219a 100644 --- a/meta/recipes-core/systemd/systemd_254.4.bb +++ b/meta/recipes-core/systemd/systemd_254.4.bb | |||
| @@ -534,7 +534,6 @@ FILES:${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c | |||
| 534 | ${exec_prefix}/lib/tmpfiles.d/systemd-nspawn.conf \ | 534 | ${exec_prefix}/lib/tmpfiles.d/systemd-nspawn.conf \ |
| 535 | ${exec_prefix}/lib/tmpfiles.d/README \ | 535 | ${exec_prefix}/lib/tmpfiles.d/README \ |
| 536 | ${systemd_system_unitdir}/systemd-nspawn@.service \ | 536 | ${systemd_system_unitdir}/systemd-nspawn@.service \ |
| 537 | ${libdir}/libnss_mymachines.so.2 \ | ||
| 538 | ${datadir}/dbus-1/system-services/org.freedesktop.import1.service \ | 537 | ${datadir}/dbus-1/system-services/org.freedesktop.import1.service \ |
| 539 | ${datadir}/dbus-1/system-services/org.freedesktop.machine1.service \ | 538 | ${datadir}/dbus-1/system-services/org.freedesktop.machine1.service \ |
| 540 | ${datadir}/dbus-1/system.d/org.freedesktop.import1.conf \ | 539 | ${datadir}/dbus-1/system.d/org.freedesktop.import1.conf \ |
| @@ -543,6 +542,8 @@ FILES:${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c | |||
| 543 | ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \ | 542 | ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \ |
| 544 | " | 543 | " |
| 545 | 544 | ||
| 545 | RDEPENDS:${PN}-container = "libnss-mymachines" | ||
| 546 | |||
| 546 | # "machinectl import-tar" uses "tar --numeric-owner", not supported by busybox. | 547 | # "machinectl import-tar" uses "tar --numeric-owner", not supported by busybox. |
| 547 | RRECOMMENDS:${PN}-container += "\ | 548 | RRECOMMENDS:${PN}-container += "\ |
| 548 | ${PN}-journal-gatewayd \ | 549 | ${PN}-journal-gatewayd \ |
