Skip to contentSkip to conversation

openssl10, packagegroup-crypto: un-clash and install 1.0 binaries and engines

PATCH Superseded Denys Dmytriyenko 1 participant 1 message May 1, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl10, packagegroup-crypto: un-clash and install 1.0 binaries and engines

---
 .../recipes-connectivity/openssl/openssl10_%.bbappend | 11 +++++++++++
 .../packagegroups/packagegroup-arago-tisdk-crypto.bb  |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-connectivity/openssl/openssl10_%.bbappend +11 -0
index e74bcba6..a0938ca4 100644
@@ -13,3 +13,14 @@ CRYPTODEV_AFALG_PATCHES = " \
 "
 
 SRC_URI += "${CRYPTODEV_AFALG_PATCHES}"
+
+# override this from upstream to preserve engine libs, binaries and config
+# w/o clashing with 1.1
+openssl_package_preprocess () {
+        for file in `find ${PKGD} -name *.h -o -name *.pc`; do
+                rm $file
+        done
+        mv ${PKGD}/usr/bin/openssl ${PKGD}/usr/bin/openssl10
+        mv ${PKGD}/usr/bin/c_rehash ${PKGD}/usr/bin/c_rehash10
+        mv ${PKGD}/etc/ssl/openssl.cnf ${PKGD}/etc/ssl/openssl10.cnf
+}
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto.bb +3 -1
index 56e4e89e..4fe7057e 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to install crypto packages into target FS"
 LICENSE = "MIT"
-PR = "r11"
+PR = "r12"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -11,6 +11,8 @@ CRYPTO_SUPPORT = "\
     openssl-bin \
     openssl-conf \
     openssl-engines \
+    openssl10 \
+    openssl10-engines \
 "
 
 CRYPTO_SUPPORT_append_ti33x = " ti-crypto-examples cryptodev-module cryptodev-tests"
Signature · 1 line
2.17.1