All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] libselinux: fix usrmerge do_install
@ 2018-08-29  6:05 mingli.yu
  0 siblings, 0 replies; only message in thread
From: mingli.yu @ 2018-08-29  6:05 UTC (permalink / raw)
  To: yocto, Joe_MacDonald

From: Mingli Yu <Mingli.Yu@windriver.com>

When usrmerge enabled in DISTRO_FEATURES,
the binary actually installed under ${base_sbindir},
so cannot remove ${D}${base_sbindir} when
usrmerge enabled.

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
 recipes-security/selinux/libselinux.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/recipes-security/selinux/libselinux.inc b/recipes-security/selinux/libselinux.inc
index 51d0875..ae47b5a 100644
--- a/recipes-security/selinux/libselinux.inc
+++ b/recipes-security/selinux/libselinux.inc
@@ -34,7 +34,9 @@ do_compile_append() {
 do_install_append() {
     oe_runmake install-pywrap swigify \
             PYSITEDIR=${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages
-    rm -rf ${D}${base_sbindir}
+    if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then
+        rm -rf ${D}${base_sbindir}
+    fi
 }
 
 BBCLASSEXTEND = "native"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-29  6:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29  6:05 [meta-selinux][PATCH] libselinux: fix usrmerge do_install mingli.yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.