[yocto] dhcp and avahi package addition to image

Pandey, Kamal Kamal.Pandey at ifm.com
Tue Apr 9 07:15:05 PDT 2019


Hello,

I was trying to add avahi and dhcp  to my image. While running $bitbake dhcp avahi, everything is working fine but when I add these packages to packagegroup  or directly to the image recipe using EXTRA_IMAGE_INSTALL or IMAGE_INSTALL_append. It starts giving error.
The error  for avahi is shown below:
ERROR: core-image-special-pdm3-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/oe-rootfs-repo --installroot=/home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/rootfs --setopt=logdir=/home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/temp --nogpgcheck install packagegroup-pdm3-apps packagegroup-pdm3-qt packagegroup-core-tools-debug packagegroup-core-boot packagegroup-core-x11 packagegroup-pdm3-base packagegroup-core-tools-profile packagegroup-pdm3-fonts base-passwd packagegroup-core-ssh-openssh shadow run-postinsts kernel-image-fitimage-4.14.79-yocto-standard' returned 1:
Added oe-repo repo from /home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:00 ago on Tue 09 Apr 2019 01:49:20 PM UTC.
Error:
Problem: conflicting requests
  - nothing provides avahi needed by packagegroup-pdm3-apps-1.0-r1.noarch

ERROR: core-image-special-pdm3-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/iepl007/yocto_build/build_dir/tmp/work/pdm3_zynqmp-pdm3-linux/core-image-special-pdm3/1.0-r0/temp/log.do_rootfs.12565
ERROR: Task (/home/iepl007/yocto_build/poky/../meta-pdm3-dev/meta-ifm-pdm3/recipes-core/images/core-image-special-pdm3.bb:do_rootfs) failed with exit code '1'


And the error for dhcp is shown below:


ERROR: Nothing RPROVIDES 'dhcp' (but /home/iepl007/yocto_build/poky/../meta-pdm3-dev/meta-ifm-pdm3/recipes-core/packagegroups/packagegroup-pdm3-app.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'dhcp' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['dhcp']
NOTE: Runtime target 'packagegroup-pdm3-apps' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-pdm3-apps', 'dhcp']
ERROR: Required build target 'pdm3-special-swuimage' has no buildable providers.
Missing or unbuildable dependency chain was: ['pdm3-special-swuimage', 'core-image-special-pdm3', 'packagegroup-pdm3-apps', 'dhcp']

Please provide a solution for this I don't want to clean my sstate-cache or the tmp directory. I am ready to debug the corrupted sstate if someone is experienced with sstate-cache.
Thanks
Kamal Pandey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190409/80d9b4b1/attachment-0001.html>


More information about the yocto mailing list