systemd-systemctl-native_257.6.bb 1.0 KB

123456789101112131415161718192021222324252627
  1. FILESEXTRAPATHS:prepend := "${THISDIR}/systemd:"
  2. SUMMARY = "Systemctl executable from systemd"
  3. require systemd.inc
  4. DEPENDS = "gperf-native libcap-native util-linux-native python3-jinja2-native"
  5. SRC_URI += "file://0001-systemctl-Call-systemd-sysv-install-without-path.patch"
  6. SRC_URI += "file://0002-implment-systemd-sysv-install-for-OE.patch"
  7. inherit pkgconfig meson native
  8. MESON_TARGET = "systemctl:executable"
  9. MESON_INSTALL_TAGS = "systemctl"
  10. EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
  11. # Systemctl is supposed to operate on target, but the target sysroot is not
  12. # determined at run-time, but rather set during configure
  13. # More details are here https://github.com/systemd/systemd/issues/35897#issuecomment-2665405887
  14. EXTRA_OEMESON += "--sysconfdir ${sysconfdir_native}"
  15. do_install:append() {
  16. # Install systemd-sysv-install in /usr/bin rather than /usr/lib/systemd
  17. # (where it is normally installed) so systemctl can find it in $PATH.
  18. install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${bindir}/systemd-sysv-install
  19. }