Bug 14776

Summary: [meta-tpm] tpm2-tss-engine recipe: wrong tpm2tss.so path
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Mykyta Dorokhin <kit-d>
Component: meta-securityAssignee: akuster <akuster808>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided    
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mykyta Dorokhin 2022-04-06 10:28:02 UTC
According to https://lists.yoctoproject.org/g/yocto/message/47921:
OpenSSL has changed its naming convention for engines, the library must be named tpm2tss.so for OpenSSL 1.1

The change itself, on the other hand, adds tpm2tss.so to tpm2-tss-engine-dev package only. So on the target system tpm2tss.so will not be installed unless I install *-dev package. I believe this is wrong, dev packages are for development, not for production. Moreover, installing tpm2-tss-engine-dev on the target also pulls in lots of other dev packages (libc6-dev, kernel-headers, etc.) and this adds about +30MB to the target image.

The openssl engine -t -c tpm2tss command also doesn't work uness tpm2-tss-engine-dev is installed.
Comment 1 Mykyta Dorokhin 2022-04-06 10:46:12 UTC
Closing. The issue is already fixed.
Comment 2 Mykyta Dorokhin 2022-04-06 10:47:03 UTC
The issue was already fixed