siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
129 stars 76 forks source link

iot2050-example-image: Fix wrongly installed openssl armhf #444

Closed BaochengSu closed 1 year ago

BaochengSu commented 1 year ago

The openssl (target version, arm64) should be installed into the example image, not the openssl-compat (armhf version).

Meanwhile integrate the libssl1.1-compat for armhf compatible architecture.

Test result:

root@iot2050-debian:~# apt list --installed | grep ssl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libssl-dev/now 1.1.1n-0+deb11u4+iot2050 arm64 [installed,local]
libssl1.1/now 1.1.1n-0+deb11u4+iot2050 arm64 [installed,local]
libssl1.1/now 1.1.1n-0+deb11u4+iot2050 armhf [installed,local]
openssl/now 1.1.1n-0+deb11u4+iot2050 arm64 [installed,local]
jan-kiszka commented 1 year ago

This is very likely broken as now nothing is requesting the building of the compat packages. We should rather add a

PROVIDES += "libssl1.1"

to the openssl recipe and then request

IMAGE_INSTALL += "libssl-1.1-compat openssl"

Make sure to validate all of this via clean rebuilds.

BaochengSu commented 1 year ago

This is very likely broken as now nothing is requesting the building of the compat packages. We should rather add a

PROVIDES += "libssl1.1"

to the openssl recipe and then request

IMAGE_INSTALL += "libssl-1.1-compat openssl"

Make sure to validate all of this via clean rebuilds.

Yep, this is indeed a more safer way to avoid possible future brokens.

Refined to adapt this way.