[oe-commits] [meta-openembedded] 03/11: fuse: Fix installed-vs-shipped for nativesdk

git at git.openembedded.org git at git.openembedded.org
Wed Sep 25 15:49:24 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 50481c6e93bc2bff5b87cf769ec6501f2f3c3ab1
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Sep 25 17:35:36 2019 +0800

    fuse: Fix installed-vs-shipped for nativesdk
    
    There are two problems:
    * The /dev is installed to '${D}/dev', not '${D}${base_prefix}'
    * The /etc is installed ${D}, but should be ${D}${sysconfdir}
    
    It works for target is because target's base_prefix is NULL, but it isn't work
    for native or nativesdk.
    
    Fixed:
    $ bitbake nativesdk-fuse
    ERROR: nativesdk-fuse-2.9.9-r0 do_package: QA Issue: nativesdk-fuse: Files/directories were installed but not shipped in any package:
      /dev
      /etc
      /etc/init.d
      /etc/udev
      /etc/init.d/fuse
      /etc/udev/rules.d
      /etc/udev/rules.d/99-fuse.rules
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb b/meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb
index c83e7f6..95e8706 100644
--- a/meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb
+++ b/meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb
@@ -54,7 +54,7 @@ do_configure_prepend() {
 }
 
 do_install_append() {
-    rm -rf ${D}${base_prefix}/dev
+    rm -rf ${D}/dev
 
     # systemd class remove the sysv_initddir only if systemd_system_unitdir
     # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
@@ -69,4 +69,10 @@ do_install_append() {
     fi
 }
 
+do_install_append_class-nativesdk() {
+    install -d ${D}${sysconfdir}
+    mv ${D}/etc/* ${D}${sysconfdir}/
+    rmdir ${D}/etc
+}
+
 BBCLASSEXTEND = "native nativesdk"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list