Hi,

I accidentally ran into this too and looked into it a bit.

There are two kernels in the package feedwhich Provides:the same
functionality. The one that's built afterwards is tracked in pkgdata
as runtime-reverse but the package manager has installed the other
(returned by image_list_installed_packages).

An easy workaround for me was to remove the undesired kernel-* packages from
deploy/ipk before do_rootfs.

-- Mikko

On 28/02/17 18:31, Wold, Saul wrote:
There is an existing bug open against a similar issue:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=10597

It's being investigated.

Sau!

On Fri, 2017-02-24 at 11:02 +0200, Ran Shalit wrote:
Hello,

I wanted to try update to rt-kernel to I added the following in
local.conf:

#PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
#PREFERRED_VERSION_linux-yocto ?= "4.4%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-rt"
PREFERRED_VERSION_linux-yocto-rt ?= "4.4%"

Everything compiled well with
bitbake core-image-sato-sdk

I then decided to return to the regular linux by doing:
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
PREFERRED_VERSION_linux-yocto ?= "4.4%"
#PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-rt"
#PREFERRED_VERSION_linux-yocto-rt ?= "4.4%"

But now I get errors as following:

NOTE: Preparing RunQueue
WARNING: /media/sde/yocto/poky/meta/recipes-sato/images/core-image-
sato-sdk.bb.do_rootfs
is tainted from a forced run
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Error executing a python
function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this
exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function:
<module>
      0001:
  *** 0002:license_create_manifest(d)
      0003:
File: '/media/sde/yocto/poky/meta/classes/license.bbclass', lineno:
48, function: license_create_manifest
      0044:    pkg_dic = {}
      0045:    for pkg in sorted(image_list_installed_packages(d)):
      0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR',
True),
      0047:                                'runtime-reverse', pkg)
  *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
      0049:
      0050:        pkg_dic[pkg_name] =
oe.packagedata.read_pkgdatafile(pkg_info)
      0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
      0052:            pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory:
'/media/sde/yocto/poky/build/tmp/sysroots/congatec-qa3-
64/pkgdata/runtime-reverse/kernel-4.4.26-rt19-yocto-preempt-rt'

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed:
license_create_manifest
ERROR: Logfile of failure stored in:
/media/sde/yocto/poky/build/tmp/work/congatec_qa3_64-poky-linux/core-
image-sato-sdk/1.0-r0/temp/log.do_rootfs.13106
ERROR: Task 9 (/media/sde/yocto/poky/meta/recipes-sato/images/core-
image-sato-sdk.bb,
do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7025 tasks of which 7024 didn't need
to
be rerun and 1 failed.

Does anyone have any idea ?
Ran

--
_______________________________________________
linux-yocto mailing list
linux-yo...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to