Skip to contentSkip to conversation

make OPENSSL_ENGINES match install path

PATCH In review George McCollister 5 participants 12 messages Sep 25, 2019 – Oct 25, 2019

lore
Share & tools
lore
#0 lore raw

cover make OPENSSL_ENGINES match install path

Set OPENSSL_ENGINES in the openssl 1.1 recipe to the path where engines are actually installed. This should be cherry-picked to warrior and probably anything older with an openssl 1.1 recipe. I've not tested it with anything older than warrior so someone else can make that call.

George McCollister (1):
openssl: make OPENSSL_ENGINES match install path

 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/1 openssl: make OPENSSL_ENGINES match install path

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
 	    OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
 	    SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
 	    SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-	    OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+	    OPENSSL_ENGINES=${libdir}/engines-1.1
 }
 
 do_install_append_class-nativesdk () {
Signature · 1 line
2.22.0
#2 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 12 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
index 072f727e0b..8819e19ec4 100644

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
@@ -148,7 +148,7 @@ do_install_append_class-native () {
 	    OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
 	    SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
 	    SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-	    OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+	    OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

--Mark

Quoted 4 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
 }
 
 do_install_append_class-nativesdk () {
#3 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 9 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
          OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
          SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
          SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 3 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

How shall we proceed? Does anyone else want to chime in?

Quoted 5 lines

--Mark

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
 }
 
Quoted 8 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 154

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
 do_install_append_class-nativesdk () {

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

-George

#4 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 46 lines · George McCollister
Quoted 9 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
  meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
           OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
           SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
           SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 3 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

Quoted 5 lines

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

How shall we proceed? Does anyone else want to chime in?

Using /usr/lib/<package> is known jargon and lets use it. I think doing it the way other distros are doing it and how upstream defaults are is also helpful. it reduced one more thing to worry about. Release branches should not be an issue as long as we have them packages in same output package.

Quoted 16 lines
Quoted 5 lines

--Mark

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  }
 
Quoted 8 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 154

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  do_install_append_class-nativesdk () {

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

-George

#5 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 51 lines · Khem Raj
Quoted 49 lines · George McCollister
Quoted 9 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
  meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
           OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
           SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
           SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 3 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

Quoted 8 lines
Quoted 2 lines

How shall we proceed? Does anyone else want to chime in?

Using /usr/lib/<package> is known jargon and lets use it. I think doing it the way other distros are doing it and how upstream defaults are is also helpful. it reduced one more thing to worry about. Release branches should not be an issue as long as we have them packages in same output package.

It looks like Fedora is also using engines-1.1:
https://apps.fedoraproject.org/packages/openssl-libs/

I've found there is no Configure switch to set the engines directory. I believe it will require a patch to changes 3 - 4 lines in Configurations/unix-Makefile.tmpl. meta-oe/recipes-support/libp11/libp11_0.4.10.bb would also need to be changed to use the new path.

Is carrying a custom patch to deviate from the upstream package and major distribution behavior really wise?

If there is somewhat of a consensus to go that way knowing it requires a custom patch I'll send a patch for openssl and then one to fix libp11 (which the first patch will break).

Quoted 18 lines
Quoted 17 lines
Quoted 6 lines

--Mark

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  }
 
Quoted 8 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 154

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  do_install_append_class-nativesdk () {

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

-George

#6 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 65 lines · George McCollister
Quoted 51 lines · Khem Raj
Quoted 49 lines · George McCollister
Quoted 9 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
  meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
           OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
           SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
           SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 3 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

Quoted 8 lines
Quoted 2 lines

How shall we proceed? Does anyone else want to chime in?

Using /usr/lib/<package> is known jargon and lets use it. I think doing it the way other distros are doing it and how upstream defaults are is also helpful. it reduced one more thing to worry about. Release branches should not be an issue as long as we have them packages in same output package.

It looks like Fedora is also using engines-1.1:
https://apps.fedoraproject.org/packages/openssl-libs/

Quoted 9 lines

I've found there is no Configure switch to set the engines directory. I believe it will require a patch to changes 3 - 4 lines in Configurations/unix-Makefile.tmpl. meta-oe/recipes-support/libp11/libp11_0.4.10.bb would also need to be changed to use the new path.

Is carrying a custom patch to deviate from the upstream package and major distribution behavior really wise?

right. so lets not do it.

Quoted 22 lines

If there is somewhat of a consensus to go that way knowing it requires a custom patch I'll send a patch for openssl and then one to fix libp11 (which the first patch will break).

Quoted 18 lines
Quoted 17 lines
Quoted 6 lines

--Mark

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  }
 
Quoted 8 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 154

Quoted 2 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +0 -0
  do_install_append_class-nativesdk () {

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

-George

#7 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

In reply to George McCollister
Quoted 37 lines · George McCollister
Quoted 8 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
          OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
          SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
          SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

It would be interesting to know when the path in the -native wrapper script stopped matching the path where the engines plugins are installed. ie was the wrapper script always wrong? Did the default install path used by openssl change at some point?

Quoted 4 lines

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

How shall we proceed? Does anyone else want to chime in?

The change being proposed is for the openssl-native wrapper script, so won't affect anything on the target.

I'm curious why openssl-native needs engines plugins at all?

#8 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 48 lines · Andre McCurdy
Quoted 37 lines · George McCollister
Quoted 8 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
          OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
          SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
          SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

Quoted 4 lines

It would be interesting to know when the path in the -native wrapper script stopped matching the path where the engines plugins are installed. ie was the wrapper script always wrong? Did the default install path used by openssl change at some point?

It's been wrong on and off with openssl 1.0 and I believe always wrong with openssl 1.1.

Quoted 10 lines
Quoted 5 lines

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

How shall we proceed? Does anyone else want to chime in?

The change being proposed is for the openssl-native wrapper script, so won't affect anything on the target.

I'm curious why openssl-native needs engines plugins at all?

I need the pkcs11 engine for pkcs11 signing with an HSM. Unfortunately for me most people won't notice if the wrapper doesn't match the installed plugin path.

#9 lore raw

Re: [PATCH 1/1] openssl: make OPENSSL_ENGINES match install path

Quoted 63 lines · George McCollister
Quoted 48 lines · Andre McCurdy
Quoted 37 lines · George McCollister
Quoted 8 lines · Mark Hatle
Quoted 7 lines · George McCollister

Set OPENSSL_ENGINES to the path where engines are actually installed.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

meta/recipes-connectivity/openssl/openssl_1.1.1d.bb do_install_append_class-native () { · line 151

Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +1 -1
index 072f727e0b..8819e19ec4 100644
@@ -148,7 +148,7 @@ do_install_append_class-native () {
          OPENSSL_CONF=${libdir}/ssl-1.1/openssl.cnf \
          SSL_CERT_DIR=${libdir}/ssl-1.1/certs \
          SSL_CERT_FILE=${libdir}/ssl-1.1/cert.pem \
-         OPENSSL_ENGINES=${libdir}/ssl-1.1/engines
+         OPENSSL_ENGINES=${libdir}/engines-1.1

Is this a bug in the openssl recipe (it's placing engines in the wrong place), or a bug in the recipes providing acceleration engines and THEY are going into the wrong place?

This recipe installs:
packages-split/openssl-engines/usr/lib/engines-1.1/afalg.so packages-split/openssl-engines/usr/lib/engines-1.1/padlock.so packages-split/openssl-engines/usr/lib/engines-1.1/capi.so

libp11 in meta-oe installs these:
packages-split/libp11/usr/lib/engines-1.1 packages-split/libp11/usr/lib/engines-1.1/pkcs11.so packages-split/libp11-dev/usr/lib/engines-1.1 packages-split/libp11-dev/usr/lib/engines-1.1/libpkcs11.so

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

The ssl-1.1/engines makes more sense to me.. as /usr/lib/engines-1.1 obscures that they are OpenSSL related.

I don't have a strong opinion either way but ssl-1.1/engines does make a bit more sense.
Debian appears to install them in engines-1.1 though:
https://packages.debian.org/buster/amd64/libssl1.1/filelist

Quoted 4 lines

It would be interesting to know when the path in the -native wrapper script stopped matching the path where the engines plugins are installed. ie was the wrapper script always wrong? Did the default install path used by openssl change at some point?

It's been wrong on and off with openssl 1.0 and I believe always wrong with openssl 1.1.

Quoted 6 lines
Quoted 5 lines

I do need this fixed in warrior though and wonder if anyone would gripe about changing where they are installed post release.

How shall we proceed? Does anyone else want to chime in?

Quoted 8 lines
Quoted 4 lines

The change being proposed is for the openssl-native wrapper script, so won't affect anything on the target.

I'm curious why openssl-native needs engines plugins at all?

I need the pkcs11 engine for pkcs11 signing with an HSM. Unfortunately for me most people won't notice if the wrapper doesn't match the installed plugin path.

OK. Not a use case which others are very likely to see, but good to have it fixed anyway.

Note that (for unknown historical reasons) native and nativesdk use different approaches to ensuring that these paths are correctly defined. Native uses a wrapper script and nativesdk exports environment variables globally via the SDK environment-setup script. They probably both need fixing.