[meta-baryon][PATCH 2/4] samba: remove unused directories after install


Kevin Strasser <kevin.strasser@...>
 

Some of the directories that are created during installation are left
empty and not shipped in the image.

Removing them clears up the following QA warning:

"WARNING: QA Issue: samba: Files/directories were installed but not shipped
/usr/lib/idmap
/usr/lib/nss_info
/usr/lib/perfcount
/usr/lib/pdb
/usr/lib/rpc
/usr/lib/gpext"

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
---
recipes-connectivity/samba/samba.inc | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-connectivity/samba/samba.inc b/recipes-connectivity/samba/samba.inc
index 4e4f23c..8090656 100644
--- a/recipes-connectivity/samba/samba.inc
+++ b/recipes-connectivity/samba/samba.inc
@@ -70,6 +70,8 @@ do_install_append() {
mkdir -p ${D}${base_sbindir}
rm -f ${D}${bindir}/*.old
rm -f ${D}${sbindir}/*.old
+ rmdir ${D}${libdir}/idmap ${D}${libdir}/nss_info ${D}${libdir}/perfcount
+ rmdir ${D}${libdir}/pdb ${D}${libdir}/rpc ${D}${libdir}/gpext
[ -f ${D}${sbindir}/mount.cifs ] && mv ${D}${sbindir}/mount.cifs ${D}${base_sbindir}/
[ -f ${D}${sbindir}/umount.cifs ] && mv ${D}${sbindir}/umount.cifs ${D}${base_sbindir}/

--
1.7.9.5

Join yocto@lists.yoctoproject.org to automatically receive all group messages.