On Mon, Nov 17, 2025 at 02:04:08PM +0530, Suhaas Joshi via 
lists.yoctoproject.org wrote:
> Presently, /usr/lib/libckteec.so is not installed. Instead, the only
> symlink present is /usr/lib/libckteec.so.0 which points to
> libckteec.so.0.1.0. This makes OpenSSL commands fail since it looks for
> /usr/bin/libckteec.so.
> 
> So ensure that this symlink is installed by explicitly adding a
> FILES:${PN} assignment.
> 
> Signed-off-by: Suhaas Joshi <[email protected]>
> ---
> v3 -> v4:
> * I realized that libckteec.so.0* and the PKCS#11 TA file were both already 
> installed in the SDK.
>   Therefore, in v4, I have removed the logic for that since its redundant 
> now. CFG_PKCS11_TA and
>   CFG_REE_FS are enabled by-default.
> * v4 only fixes one issue: the absence of libckteec.so. /usr/bin/libckteec.so 
> should link to
>   /usr/bin/libckteec.so.0 which then links to /usr/bin/libckteec.so.0.1.0.

NAK

This patch seems to be unnecessary.

After 4 revisions it was determined that the necessary library is getting 
built and packaged.

I just checked and all the symlinks are also getting created. In accordance 
with Distro packaging guidelines, which OE follows, the *.so file is assumed 
to be a development symlink, hence it gets packaged into a corresponding *-dev 
package.

Simply pulling *.so symlink into the main package is not the right way to 
handle it. Doing so will trigger a QA error that will require a "dev-so" flag 
in INSANE_SKIP list - while not immediately violating YP Compat requirements, 
it's still not recommended.


> * Link to v3:
> https://lore.kernel.org/yocto-meta-ti/[email protected]/T/#t
> ---
>  .../recipes-security/optee/optee-client-ti-overrides.inc     | 1 +
>  meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend   | 5 +++++
>  2 files changed, 6 insertions(+)
>  create mode 100644 
> meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc
> 
> diff --git a/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc 
> b/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc
> new file mode 100644
> index 00000000..dd6a9d01
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-security/optee/optee-client-ti-overrides.inc
> @@ -0,0 +1 @@
> +FILES:${PN} += "${libdir}/libckteec.so*"
> diff --git a/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend 
> b/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
> index f193e78b..0cee127f 100644
> --- a/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
> +++ b/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
> @@ -2,3 +2,8 @@ OPTEE_TI_VERSION = ""
>  OPTEE_TI_VERSION:ti-soc = "${BPN}-ti-version.inc"
>  
>  require ${OPTEE_TI_VERSION}
> +
> +OPTEE_TI_OVERRIDES = ""
> +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc"
> +
> +require ${OPTEE_TI_OVERRIDES}
> -- 
> 2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19289): 
https://lists.yoctoproject.org/g/meta-ti/message/19289
Mute This Topic: https://lists.yoctoproject.org/mt/116334516/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to