Skip to contentSkip to conversation

gstd: Remove empty /var/volatile/log

PATCH New Khem Raj 1 participant 1 message Nov 4, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gstd: Remove empty /var/volatile/log

This dir is created at runtime via systemd-tmpfiles

---
 meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb +3 -1
index 5ea104ddbc..d37ab986c0 100644
@@ -20,7 +20,9 @@ PV = "1.0+really0.8.0"
 inherit autotools pkgconfig gettext gtk-doc
 
 do_install:append() {
-        rm -fr ${D}${localstatedir}/run ${D}/run ${D}${bindir}/gst-client ${D}${bindir}/gstd-client
+        rmdir ${D}${localstatedir}/run/${BPN} ${D}${localstatedir}/run \
+              ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/log
+        rm -f ${D}${bindir}/gst-client ${D}${bindir}/gstd-client
         if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
                 install -d ${D}${sysconfdir}/tmpfiles.d
                 echo "d /run/${BPN} - - - -" \
Signature · 1 line
2.33.1