[yocto] [Chicken and Egg problem] Defining RDEPENDS of the package itself!

Andre McCurdy armccurdy at gmail.com
Wed Jul 18 10:06:21 PDT 2018


On Wed, Jul 18, 2018 at 7:04 AM, Zoran Stojsavljevic
<zoran.stojsavljevic at gmail.com> wrote:
> Yep. Did it. Some symlink is missing (I guess, symlink to
> /usr/local/lib/libcannelloni-common.so???
>
> Initialising tasks: 100%
> |#############################################################################################################################################################|
> Time: 0:00:00
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: cannelloni rdepends on
> cannelloni-dev [dev-deps]
> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: -dev package contains
> non-symlink .so: cannelloni-dev path
> '/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni-dev/usr/lib/libcannelloni-common.so'
> [dev-elf]
> ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors. Please
> consider fixing them.
> ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa
> ERROR: Logfile of failure stored in:
> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package_qa.7896
> ERROR: Task
> (/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 539 tasks of which 532 didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
>
> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa
> Summary: There were 2 WARNING messages shown.
> Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
>
> How I can add this symlink (!) to this recipe?

The error says "-dev package contains non-symlink .so".

Simply adding a symlink somewhere will not help. The fix is to ensure
that libcannelloni-common.so gets packaged in the main run-time
package (and not in the -dev package).

Reading the section about non-versioned shared libraries here might help:

  https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries


More information about the yocto mailing list