[yocto] QA Issue: Files/directories were installed but not shipped

Maciej Pijanowski maciej.pijanowski at 3mdeb.com
Thu Aug 29 22:26:18 PDT 2019


On 30.08.2019 07:20, SIMON BABY wrote:
> Hello,
> I am getting "ERROR:  QA Issue:  Files/directories were installed but not 
> shipped". Can you please help to resolve. My logs and bb files are below.
> ERROR: QA Issue: zipcpp: Files/directories were installed but not shipped in any package:
>   /usr
>   /usr/include
>   /usr/src
>   /usr/lib
>   /usr/include/zipc.h
>   /usr/include/logger.h
>   /usr/include/fmt
>   /usr/include/fmt/format.h
>   /usr/include/fmt/ranges.h
>   /usr/include/fmt/printf.h
> *bb file:*
> #
> # This file is the zipcpp recipe.
> #
>
> DEPENDS = "zeromq cppzmq"
> SUMMARY = "ZeroMQ based IPC C++ library"
> SECTION = "base"
> LICENSE = "CLOSED"
>
> SRC_URI = "git://git@elsvsapp02/TDY/ZIPCpp.git;protocol=ssh;branch=develop"
> SRCREV = "${AUTOREV}"
>
> S = "${WORKDIR}/git"
>
> LIB_ARTIFACT = "libzipcpp.so"
> LIB_VERSION = "1"
>
> do_install() {
>     install -d ${D}${libdir}
>     install -m 0755 ${S}/bin/${LIB_ARTIFACT}.${LIB_VERSION} ${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}
>     ln -rs ${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION} ${D}${libdir}/${LIB_ARTIFACT}
>     install -d ${D}${includedir}
>     install -m 0644 ${S}/include/zipc.h ${D}${includedir}
>     install -m 0644 ${S}/include/logger.h ${D}${includedir}
>     install -d ${D}${includedir}/fmt
>     install -m 0644 ${S}/include/fmt/* ${D}${includedir}/fmt
> }
>
> #do_install_append() {
> #    rm -r ${D}/usr/share
> #}
>
> FILES_${PN} += "${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}"
> FILES_${PN} += "${libdir}/${LIB_ARTIFACT}"
> PACKAGES = "${PN}"

What I would do is to remove those 3 lines to not override the default
packaging. This way,
the header files for example should be packaged correctly to the
${PN}-dev package.

If similar error still appears, you would need to add the remaining
files to some package
vie FILES_package-name. You might want to add a package with PACKAGES =+
"pacakage-name"

> Rgds
> Simon
>
-- 
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190830/fb3bea02/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190830/fb3bea02/attachment.pgp>


More information about the yocto mailing list