polkit: fixup 'installed but not shipped' error
PATCH 1/1 polkit: fixup 'installed but not shipped' error
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.
--- meta-oe/recipes-extended/polkit/polkit_0.115.bb | 9 +++++++++ 1 file changed, 9 insertions(+)
meta-oe/recipes-extended/polkit/polkit_0.115.bb +9 -0
@@ -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 +}
Signature · 1 line
2.7.4
Quoted 30 lines · Mark Asselstine
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 withindo_install.
polkit: 3 installed and not shipped files. [installed-vs-shipped]
ERROR: polkit-0.115-r0do_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 <[email protected]>--- meta-oe/recipes-extended/polkit/polkit_0.115.bb | 9 +++++++++ 1 file changed, 9 insertions(+)meta-oe/recipes-extended/polkit/polkit_0.115.bb +0
-0
meta-oe/recipes-extended/polkit/polkit_0.115.bb USERADD_PARAM_${PN} = "--system --no-create-home --user-group --home-dir ${sysco · line 61
Quoted 9 lines
meta-oe/recipes-extended/polkit/polkit_0.115.bb +6
-0@@ -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
Quoted 14 lines
meta-oe/recipes-extended/polkit/polkit_0.115.bb +3
-1+ mv ${D}${libdir}/gir-1.0 ${D}/usr/share/. + fi +} --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 3 lines · Khem Raj
may be we can use bitbake variables here and also optimize it a bit if possible ?
too many installs there
It is not the issue of polkit, but gobject-introspection.bbclass in oe-core, I've sent the fix to oe-core.
Here is my fix:
commit 29b41806fa5679881efd04b0b41ecbf4ddd07d11
Author: Hongxu Jia <[email protected]>
Date: Tue Oct 16 15:31:23 2018 +0800
gobject-introspection.bbclass: fix gir installed but not shipped in any package while multilib enabled
Since commit [9524330 gobject-introspection: fix multilib install file conflicts] applied in oe-core, while multilib enabled, gir files will be installed to `${libdir}'.
Refer above commit, modify gobject-introspection.bbclass to split gir to package correctly.
meta/classes/gobject-introspection.bbclass +0 -0
@@ -40,4 +40,4 @@ FILES_${PN}_append = " ${libdir}/girepository-*/*.typelib"
# .gir files go to dev package, as they're needed for developing (but not for
# running) things that depends on introspection.
-FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir"
+FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"//Hongxu
Quoted 2 lines
Quoted 1 line
+ mv ${D}${libdir}/gir-1.0 ${D}/usr/share/.
Quoted 8 lines · Hongxu Jia
Quoted 3 lines · Khem Raj
may be we can use bitbake variables here and also optimize it a bit if possible ?
too many installs thereIt is not the issue of polkit, but gobject-introspection.bbclass in oe-core, I've sent the fix to oe-core.
Hongxu, my search for a fix overlooked your patch, thanks for the heads up. For now let's withdraw my patch.
Mark
Quoted 42 lines
Here is my fix:
commit
29b41806fa5679881efd04b0b41ecbf4ddd07d11Author: Hongxu Jia <[email protected]> Date: Tue Oct 16 15:31:23 2018 +0800gobject-introspection.bbclass: fix gir installed but not shipped in
any package while multilib enabledSince commit [9524330 gobject-introspection: fix multilib install file conflicts] applied in oe-core, while multilib enabled, gir files will be installed to `${libdir}'.
Refer above commit, modify gobject-introspection.bbclass to split gir to package correctly.
Signed-off-by Hongxu Jia <[email protected]>meta/classes/gobject-introspection.bbclass +0
-0@@ -40,4 +40,4 @@ FILES_${PN}_append = " ${libdir}/girepository-*/*.typelib" # .gir files go to dev package, as they're needed for developing (butnot for
# running) things that depends on introspection.meta/classes/gobject-introspection.bbclass +1
-1-FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir" +FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"//Hongxu
Quoted 2 lines
Quoted 1 line
+ mv ${D}${libdir}/gir-1.0 ${D}/usr/share/.
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel