Bug 2372993 - keylime-agent-rust: FTBFS in Fedora 42 and Rawhide
Summary: keylime-agent-rust: FTBFS in Fedora 42 and Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: keylime-agent-rust
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Anderson Sasaki
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F43FTBFS 2370589
TreeView+ depends on / blocked
 
Reported: 2025-06-16 10:01 UTC by Fabio Valentini
Modified: 2025-08-14 03:57 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-11 17:11:23 UTC
Type: ---
Embargoed:
tstellar: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1798 0 None None None 2025-07-10 01:49:10 UTC

Description Fabio Valentini 2025-06-16 10:01:52 UTC
Description of problem:
Package keylime-agent-rust fails to build from source in Fedora 42.

It looks like this started happening after the tss-esapi crate (rust-tss-esapi) was updated from v7.5.1 to v7.6.0.

I'm not sure why a minor version update like this causes a compilation failure in a dependent package (it shouldn't) - though the changes between 7.5.1 and 7.6.0 look suspiciously large. This is the error from the build log:

```
error[E0277]: the trait bound `AsymmetricAlgorithmSelection: From<EncryptionAlgorithm>` is not satisfied
   --> keylime/src/tpm.rs:598:64
    |
598 |         let cert = match ek::retrieve_ek_pubcert(&mut ctx, alg.into()) {
    |                                                                ^^^^ the trait `From<EncryptionAlgorithm>` is not implemented for `AsymmetricAlgorithmSelection`
    |
    = note: required for `EncryptionAlgorithm` to implement `Into<AsymmetricAlgorithmSelection>`
```

Version-Release number of selected component (if applicable):
0.2.7-4.fc42

Steps to Reproduce:
koji build --scratch f42 keylime-agent-rust-0.2.7-4.fc42.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/keylime-agent-rust


Reproducible: Always

Comment 1 Tom Stellard 2025-07-10 01:53:40 UTC
This package is still failing to build: https://koji.fedoraproject.org/koji/taskinfo?taskID=13471824

@decathorpe @dueno Are you planning to look into this?

Comment 2 Anderson Sasaki 2025-07-10 08:24:02 UTC
(In reply to Tom Stellard from comment #1)
> This package is still failing to build:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=13471824
> 
> @decathorpe @dueno Are you planning to look into this?

Sorry about it, I'm taking this and will update with the newest version as soon as we have a new release.

Comment 3 Fabio Valentini 2025-07-10 15:16:34 UTC
No need to "needinfo" me, I *reported* this issue - if I could have fixed it I would have done so.
But it appears to be caused by upstream changes in tss-esapi between v7.5.1 and v7.6.0 that I don't really understand.


Note You need to log in before you can comment on or make changes to this bug.