python3-m2crypto: fix python3-m2crypto-native do_configure:prepend()

The recent workaround for https://github.com/swiftlang/swift/issues/69311
breaks python3-m2crypto-native, with error about missing e_os2.h file in
recipe-sysroot-native.

Apply do_configure:prepend to class-target only to fix.

Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit c1693752d79b27a02a109dd76fe346cbcf860b14)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Geoff Parker 2026-02-19 16:52:25 -08:00 committed by Anuj Mittal
parent 50292b4331
commit f243689cda
No known key found for this signature in database
GPG Key ID: 4340AEFE69F5085C

View File

@ -46,7 +46,7 @@ export SWIG_FEATURES
export STAGING_DIR
do_configure:prepend() {
do_configure:prepend:class-target() {
# workaround for https://github.com/swiftlang/swift/issues/69311
sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h
}