Patchwork [06/16] libgcrypt: Fix unpackaged file warning

login
register
mail settings
Submitter Richard Purdie
Date Feb. 23, 2012, 1:38 p.m.
Message ID <d5a69399aef26eb53512377b74a23a044f44f305.1330004039.git.richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/21719/
State Accepted
Commit db3d5baa07ce8c81d229fdea4d80671768efa7a3
Headers show

Comments

Richard Purdie - Feb. 23, 2012, 1:38 p.m.
WARNING: For recipe libgcrypt, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/sbin

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-support/libgcrypt/libgcrypt.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-support/libgcrypt/libgcrypt.inc b/meta/recipes-support/libgcrypt/libgcrypt.inc
index 088cd34..a890188 100644
--- a/meta/recipes-support/libgcrypt/libgcrypt.inc
+++ b/meta/recipes-support/libgcrypt/libgcrypt.inc
@@ -21,6 +21,9 @@  EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
 do_install_append() {
 	install -d ${D}/${libdir}/pkgconfig
 	install -m 0644 ${S}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/
+	
+	# Remove empty sbin directory since we don't build the daemon that would install there
+	rmdir ${D}${sbindir}
 }
 
 ARM_INSTRUCTION_SET = "arm"