findutils installs an empty /var which is already created
by base-files. It doesn't need to be packaged by findutils.
this helps to align towards stateless
system expectations or when updates are done via meta-updater.

Signed-off-by: Vishwas Udupa <[email protected]>
---
 meta/recipes-extended/findutils/findutils_4.10.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-extended/findutils/findutils_4.10.0.bb 
b/meta/recipes-extended/findutils/findutils_4.10.0.bb
index 29ad6c7350..91bb1be170 100644
--- a/meta/recipes-extended/findutils/findutils_4.10.0.bb
+++ b/meta/recipes-extended/findutils/findutils_4.10.0.bb
@@ -15,6 +15,10 @@ EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
 # need od from coreutils for -t option
 RDEPENDS:${PN}-ptest += "bash sed grep coreutils"
 
+do_install:append() {
+       rmdir ${D}${localstatedir}
+}
+
 do_install_ptest:class-target() {
        mkdir -p ${D}${PTEST_PATH}/tests/
        cp ${S}/init.cfg ${D}${PTEST_PATH}
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#226204): 
https://lists.openembedded.org/g/openembedded-core/message/226204
Mute This Topic: https://lists.openembedded.org/mt/116254340/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to