Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbake: "The metadata is not deterministic and this needs to be fixed"

Tags:

yocto

bitbake

I'm building a Bitbake recipe and getting the following error message:

ERROR: When reparsing virtual:native:/path/to/poky/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb.do_populate_cve_db, the basehash value changed from 0b637979bcb5db4263f9ed97497a6330 to bcd28a5efe646ed4d327fefa349f889c. The metadata is not deterministic and this needs to be fixed.

This reproduces in a clean build (after bitbake -c cleanall -c cleansstate <recipe>).

What is the reason for this error? The recipe has not been modified from the upstream version.

like image 433
Konstantin Shemyak Avatar asked Feb 13 '18 08:02

Konstantin Shemyak


People also ask

What is BitBake used for?

Today, BitBake is the primary basis of the OpenEmbedded project, which is being used to build and maintain Linux distributions such as the Angstrom Distribution and which is used as the build tool for Linux projects such as the Yocto Project.

What is BitBake recipe?

BitBake recipes specify how a particular package is built. Recipes consist of the source URL (http, https, ftp, cvs, svn, git, local file system) of the package, dependencies and compile or install options. They also store the metadata for the package in standard variables.

What are BitBake layers?

The openembedded-core layer provides a utility tool called bitbake-layers, which performs actions associated with layers. It allows you to perform actions including the following: see the list of actual layers taken into account in your configuration. add existing layers to your configuration.

What is metadata yocto?

Metadata: A key element of the Yocto Project is the Metadata that is used to construct a Linux distribution and is contained in the files that the OpenEmbedded build system parses when building an image.


1 Answers

the fix I used is go to that recipe and add an empty line in the end, that will help bitbake re-recognize the recipe

like image 64
Xiao Xiu Zhe Avatar answered Sep 18 '22 09:09

Xiao Xiu Zhe