gstd: Install systemd unit into sysem unitdir folder
PATCH 1/1 gstd: Install systemd unit into sysem unitdir folder
bt default it installs into user systemd unitdir folder which can not be preconfigured offline.
--- .../recipes-multimedia/gstreamer-1.0/gstd_git.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb +4 -2
@@ -17,6 +17,8 @@ PV = "1.0+really0.15.0" GTKDOC_MESON_OPTION = "enable-gtk-doc" +EXTRA_OEMESON += "-Dwith-gstd-systemddir=${systemd_system_unitdir}" + inherit meson pkgconfig gettext gtk-doc systemd python3native python3-dir python3targetconfig do_install:append() {
@@ -28,7 +30,7 @@ do_install:append() { install -d ${D}${sysconfdir}/tmpfiles.d echo "d /run/${BPN} - - - -" \ > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf - echo "d /${localstatedir}/log/${BPN} 0755 root root -" \ + echo "d ${localstatedir}/log/${BPN} 0755 root root -" \ >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf fi ln -sf gst-client-1.0 ${D}${bindir}/gst-client
@@ -36,7 +38,7 @@ do_install:append() { } PACKAGES =+ "${PN}-python" -FILES:${PN} += "${systemd_user_unitdir}" +FILES:${PN} += "${systemd_system_unitdir}" FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*" SYSTEMD_SERVICE:${PN} = "gstd.service"
Signature · 1 line
2.43.0
Verified this fixes the build-time failure I observed.
Boot though does result in a [FAILED] when starting the GStreamer Daemon. I don't have enough knowledge to diagnose this, but I'll see if I can find someone who might.
Based on resolving the build time issue, this is worth going in, IMHO.
--Mark
Quoted 51 lines · Khem Raj
bt default it installs into user systemd unitdir folder which can not be preconfigured offline.
Signed-off-by Khem Raj <[email protected]>Cc Mark Hatle <[email protected]>--- .../recipes-multimedia/gstreamer-1.0/gstd_git.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb +4
-3@@ -17,6 +17,8 @@ PV = "1.0+really0.15.0" GTKDOC_MESON_OPTION = "enable-gtk-doc" +EXTRA_OEMESON += "-Dwith-gstd-systemddir=${systemd_system_unitdir}" + inherit meson pkgconfig gettext gtk-doc systemd python3native python3-dir python3targetconfig do_install:append() {@@ -28,7 +30,7 @@ do_install:append() { install -d ${D}${sysconfdir}/tmpfiles.d echo "d /run/${BPN} - - - -" \ > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf - echo "d /${localstatedir}/log/${BPN} 0755 root root -" \ + echo "d ${localstatedir}/log/${BPN} 0755 root root -" \ >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf fi ln -sf gst-client-1.0 ${D}${bindir}/gst-client@@ -36,7 +38,7 @@ do_install:append() { } PACKAGES =+ "${PN}-python" -FILES:${PN} += "${systemd_user_unitdir}" +FILES:${PN} += "${systemd_system_unitdir}" FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*" SYSTEMD_SERVICE:${PN} = "gstd.service" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#107184): https://lists.openembedded.org/g/openembedded-devel/message/107184
Mute This Topic: https://lists.openembedded.org/mt/102911359/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-