[yocto] [meta-baryon][PATCH 4/4] samba: fix QA error due to volatiles presence

Paul Eggleton paul.eggleton at linux.intel.com
Mon Sep 23 06:07:03 PDT 2013


Adapted from a meta-oe change by Jonathan Liu <net147 at gmail.com>.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
 recipes-connectivity/samba/samba_3.6.8.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-connectivity/samba/samba_3.6.8.bb b/recipes-connectivity/samba/samba_3.6.8.bb
index 55bed1e..d2722a3 100644
--- a/recipes-connectivity/samba/samba_3.6.8.bb
+++ b/recipes-connectivity/samba/samba_3.6.8.bb
@@ -58,6 +58,12 @@ do_compile () {
 	base_do_compile
 }
 
+do_install_append() {
+	rmdir "${D}${localstatedir}/lock"
+	rmdir "${D}${localstatedir}/run"
+	rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
+}
+
 pkg_postinst_${PN} () {
 	if [ "x$D" != "x" ] ; then
 		exit 1
-- 
1.8.1.2




More information about the yocto mailing list