[oe] [meta-oe][PATCH] polkit: fixup 'installed but not shipped' error
Khem Raj
raj.khem at gmail.com
Mon Oct 15 22:01:33 UTC 2018
On Mon, Oct 15, 2018 at 2:11 PM Mark Asselstine
<mark.asselstine at windriver.com> wrote:
>
> 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
may be we can use bitbake variables here and also optimize it a bit if
possible ?
too many installs there
> + mv ${D}${libdir}/gir-1.0 ${D}/usr/share/.
> + fi
> +}
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list