Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] openssl: use nativeperl to build
@ 2018-10-11  9:55 Hongxu Jia
  2018-10-11 12:00 ` richard.purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2018-10-11  9:55 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

If host perl is old version (such as perl v5.16.3 on CentOS-7.5),
the openssl-native failed at do_install, the reason is its Makefile
is not correct which is generated at do_configure by perl script.

Use nativeperl to assure latest perl on host for openssl build.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-connectivity/openssl/openssl_1.1.1.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
index 5a43a15..52d4e60 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
@@ -23,7 +23,7 @@ SRC_URI_append_class-nativesdk = " \
 SRC_URI[md5sum] = "7079eb017429e0ffb9efb42bf80ccb21"
 SRC_URI[sha256sum] = "2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d"
 
-inherit lib_package multilib_header ptest
+inherit lib_package multilib_header ptest perlnative
 
 #| ./libcrypto.so: undefined reference to `getcontext'
 #| ./libcrypto.so: undefined reference to `setcontext'
@@ -105,7 +105,9 @@ do_configure () {
 	fi
 	# WARNING: do not set compiler/linker flags (-I/-D etc.) in EXTRA_OECONF, as they will fully replace the
 	# environment variables set by bitbake. Adjust the environment variables instead.
-	perl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
+	export PERL="nativeperl"
+	/usr/bin/env nativeperl	./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} \
+	    --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
 }
 
 do_install () {
-- 
2.7.4



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

end of thread, other threads:[~2018-10-12  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-11  9:55 [PATCH] openssl: use nativeperl to build Hongxu Jia
2018-10-11 12:00 ` richard.purdie
2018-10-11 14:58   ` Hongxu Jia
2018-10-12  7:54     ` Hongxu Jia
2018-10-12  8:57       ` richard.purdie
2018-10-12  9:03         ` Hongxu Jia
2018-10-12  9:26           ` Hongxu Jia

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