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

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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