All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Tricca <philip.b.tricca at intel.com>
To: tpm2@lists.01.org
Subject: Re: [tpm2] building tpm2-tools with bitbake fails even though tpm2-tss builds fine
Date: Tue, 20 Feb 2018 13:49:07 -0800	[thread overview]
Message-ID: <20180220214907.GA6093@intel.com> (raw)
In-Reply-To: 2ba64c1cd60f46bda1192e4741b926ef@AZDC-MMB02.GD-MS.US

[-- Attachment #1: Type: text/plain, Size: 2445 bytes --]

On Tue, Feb 20, 2018 at 08:37:36PM +0000, Scheie, Peter M wrote:
> 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.

This is bitrot: I've been neglecting these recipes for a while now.
They're a personal project, not on my Intel time. Still, Trevor has
been proding me along with some very helpful patches. We've got a
'rocko' branch where we're refreshing versions and accounting for
minor changes in the upstream build.

I think the TSS2 libraries and the daemon should now be building the
latest release but I haven't done the tools yet. This could be part of
what you're running into.

> 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?

See above. Also: https://github.com/flihp/meta-measured/pulls/

> 
> *          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?

I don't remember. I think I was trying to support multiple versions of
one component at some point and the build required different
work-arounds in the bitbake metadata. As the build has gotten better the
version specific files (*.bb) have shrunk as the workarounds have come
out. Eventually they may go away completely ...

> *         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?

No clue. The right thing to do is to update the recipe to the latest and
go from there.

Philip

> 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?


             reply	other threads:[~2018-02-20 21:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20 21:49 Philip Tricca [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-22 19:39 [tpm2] building tpm2-tools with bitbake fails even though tpm2-tss builds fine Scheie, Peter M
2018-02-22  5:04 Philip Tricca
2018-02-21 20:38 Scheie, Peter M
2018-02-21 16:19 Scheie, Peter M
2018-02-21 14:27 Scheie, Peter M
2018-02-20 23:33 Javier Martinez Canillas
2018-02-20 20:37 Scheie, Peter M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180220214907.GA6093@intel.com \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.