]> code.ossystems Code Review - openembedded-core.git/commitdiff
mesa: fix installed-vs-shipped error
authorKai Kang <kai.kang@windriver.com>
Tue, 29 May 2018 09:02:07 +0000 (17:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 May 2018 20:06:03 +0000 (21:06 +0100)
When 'opengl' is not set in DISTRO_FEATURES, ${libdir}/pkgconfig is an
empty directory and cause installed-vs-shipped error.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/mesa.inc

index 8bf417ac7376c5fdabb8fb6fab90cdebb1b6744a..fa99f7d50cc19af81c4eb5ea2533c5814625414b 100644 (file)
@@ -138,6 +138,7 @@ do_install_append () {
     # libwayland-egl has been moved to wayland 1.15+
     rm -f ${D}${libdir}/libwayland-egl*
     rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc
+    rmdir --ignore-fail-on-non-empty ${D}${libdir}/pkgconfig
 }
 
 # For the packages that make up the OpenGL interfaces, inject variables so that