I’m trying to build tpm2-tools with bitbake, but it fails saying it cannot find sapi (“Package requirements (sapi >- 1.3.0 sapi < 2.0.0) were not met”) which is provided by tpm2-tss (right?).  Tpm2-tss builds just fine, and when I try to build tpm2-tools, I can see tpm2-tss being built since it’s listed as a dependency in the recipe.  But something breaks somewhere.

 

I should add that I’m not using the git clone of tpm2-tools, but rather the tar file from releases.  For my recipe, I’ve modified tpm2-tools_2.1.0.bb so that it points to the tar file rather than the github repo, and renamed it tpm2-tools_3.0.3.bb.  Working through this, I’m confused by several things:

·         Why is the recipe version 2.1.0 on the OpenEmbedded.org website when the latest tar file is 3.0.3?

·          Why is the recipe made up of two files, tpm2-tools_2.1.0.bb and tpm2-tools.inc instead  of just putting it all in the .bb file?

·         Why does the SRC_URI in the .bb file point to gcc7.diff which references, among others, a main.c file that isn’t in the tar file? 

 

As I said, I’ve modified the recipe files to use the 3.0.3 tar file for the SRC_URI, but I suspect something else is not quite right perhaps because of how I’m mixing versions of tar files and recipes (even though I’ve removed all references to the 2.1.0 version) and causing the sapi error.  Ideas?

 

Peter