[oe] [meta-oe][PATCH] polkit: fixup 'installed but not shipped' error

Mark Asselstine mark.asselstine at windriver.com
Mon Oct 15 21:11:21 UTC 2018


When building with 'installed-vs-shipped' QA check enabled you will
see the following when building polkit:

    ERROR: polkit-0.115-r0 do_package: QA Issue: polkit:
     Files/directories were installed but not shipped in any package:
      /usr/lib64/gir-1.0
      /usr/lib64/gir-1.0/Polkit-1.0.gir
      /usr/lib64/gir-1.0/PolkitAgent-1.0.gir
    Please set FILES such that these items are packaged. Alternatively
      if they are unneeded, avoid installing them or delete them within
      do_install.
    polkit: 3 installed and not shipped files. [installed-vs-shipped]
    ERROR: polkit-0.115-r0 do_package: Fatal QA errors found, failing task.

This is a result of the gobject instrospection GIR files not being
included in any package. Create a do_install_append() to move these
files to '/usr/share' where they will be picked up by the -dev
package. This is also the commonly used location for these files.

Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 meta-oe/recipes-extended/polkit/polkit_0.115.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta-oe/recipes-extended/polkit/polkit_0.115.bb b/meta-oe/recipes-extended/polkit/polkit_0.115.bb
index ad0f66a..ffaacaa 100644
--- a/meta-oe/recipes-extended/polkit/polkit_0.115.bb
+++ b/meta-oe/recipes-extended/polkit/polkit_0.115.bb
@@ -53,3 +53,12 @@ USERADD_PARAM_${PN} = "--system --no-create-home --user-group --home-dir ${sysco
 
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 SYSTEMD_AUTO_ENABLE = "disable"
+
+do_install_append () {
+    # should always be true since we inherit gobject-introspection, but let's just be sure
+    if [ -d ${D}${libdir}/gir-1.0 ]; then
+        install -d ${D}/usr
+        install -d ${D}/usr/share
+        mv ${D}${libdir}/gir-1.0 ${D}/usr/share/.
+    fi
+}
-- 
2.7.4




More information about the Openembedded-devel mailing list