[OE-core] [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package

Pau Espin Pedrol pespin.shar at gmail.com
Mon Jun 8 11:10:51 UTC 2015


Signed-off-by: Pau Espin Pedrol <pau.espin at aweurope.be>
---
 meta/recipes-graphics/mesa/mesa.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 96313b5..f88b2a4 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -99,6 +99,11 @@ do_install_append () {
     
     # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used 
     rm -f ${D}${sysconfdir}/drirc
+
+    # /etc is sometimes left as an empty directory and it ends up into 'mesa' package, which is then a non-empty package
+    if [ -d ${D}${sysconfdir} ]; then
+        rmdir --ignore-fail-on-non-empty ${D}${sysconfdir}
+    fi
 }
 
 # For the packages that make up the OpenGL interfaces, inject variables so that
-- 
1.9.1




More information about the Openembedded-core mailing list