public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] python3-cryptography: Add legacy-openssl packageconfig
@ 2026-01-22  2:57 Colin Pinnell McAllister
  2026-01-26 10:05 ` [OE-core] " Alexander Kanavin
  2026-02-07 11:51 ` [PATCH v2] " Colin Pinnell McAllister
  0 siblings, 2 replies; 5+ messages in thread
From: Colin Pinnell McAllister @ 2026-01-22  2:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Colin Pinnell McAllister

Fixes [YOCTO #15416]

Adds legacy-openssl packageconfig option to allow users to specify
if they would like the cryptography module to support the legacy OpenSSL
module or not. The legacy-openssl packageconfig option ensures the
openssl-ossl-module-legacy package is set as a runtime dependency. If
the packageconfig option is disabled,
CRYPTOGRAPHY_BUILD_OPENSSL_NO_LEGACY will prevent the library from ever
attempting to load the legacy provdier.

Signed-off-by: Colin Pinnell McAllister <colinmca242@gmail.com>
---

I wasn't sure if this new packageconfig option should be enabled or
disabled by default. Leaving it enabled seems like the less disruptive
option, although it's leaving the module in a less secure state by
default.

I'm happy to update the patch to leave the option disabled by default
if others think that would be better.

 meta/recipes-devtools/python/python3-cryptography.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography.bb b/meta/recipes-devtools/python/python3-cryptography.bb
index b3b45cd172..366fda5e87 100644
--- a/meta/recipes-devtools/python/python3-cryptography.bb
+++ b/meta/recipes-devtools/python/python3-cryptography.bb
@@ -22,6 +22,11 @@ require ${BPN}-crates.inc
 
 inherit pypi python_maturin cargo-update-recipe-crates pkgconfig
 
+PACKAGECONFIG ??= "legacy-openssl"
+PACKAGECONFIG[legacy-openssl] = ",,,openssl-ossl-module-legacy"
+
+export CRYPTOGRAPHY_BUILD_OPENSSL_NO_LEGACY = "${@bb.utils.contains('PACKAGECONFIG', 'legacy-openssl', '0', '1', d)}"
+
 DEPENDS += " \
     python3-cffi-native \
     openssl \
-- 
2.49.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-07 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22  2:57 [PATCH] python3-cryptography: Add legacy-openssl packageconfig Colin Pinnell McAllister
2026-01-26 10:05 ` [OE-core] " Alexander Kanavin
2026-01-26 13:55   ` Colin
2026-01-26 20:03     ` Alexander Kanavin
2026-02-07 11:51 ` [PATCH v2] " Colin Pinnell McAllister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox