]> code.ossystems Code Review - openembedded-core.git/commitdiff
openssl: fix hard paths in native openssl
authorAndré Draszik <adraszik@digisoft.tv>
Mon, 13 Oct 2014 11:09:09 +0000 (12:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Jan 2015 23:33:05 +0000 (23:33 +0000)
This causes the package to not be relocateable from sstate

The OpenSSL binaries respect a few environment variables for determining
locations of files, so we now use these to point the binaries to the
relocated locations.

[YOCTO #6827]

Signed-off-by: André Draszik <adraszik@digisoft.tv>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/openssl/openssl.inc

index 9ec884f332c74c36c42672ce24cfd39f16c58f6d..31dfd8fea76f859e95d5f274faeb348b3969cc50 100644 (file)
@@ -193,5 +193,12 @@ do_install_ptest () {
        install util/shlib_wrap.sh     ${D}${PTEST_PATH}/util
 }
 
-BBCLASSEXTEND = "native nativesdk"
+do_install_append_virtclass-native() {
+       create_wrapper ${D}${bindir}/openssl \
+           OPENSSL_CONF=${libdir}/ssl/openssl.cnf \
+           SSL_CERT_DIR=${libdir}/ssl/certs \
+           SSL_CERT_FILE=${libdir}/ssl/cert.pem \
+           OPENSSL_ENGINES=${libdir}/ssl/engines
+}
 
+BBCLASSEXTEND = "native nativesdk"