<div dir="ltr">Hi Robert,<div><br></div><div>Can you cherry-pick this back to Jethro please?</div><div><br></div><div>Thanks,</div><div>Ross</div><div><div class="gmail_extra"><br><div class="gmail_quote">On 11 November 2015 at 15:32, Ross Burton <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">The crypto_use_bigint_in_x86-64_perl patch uses the "bigint" module to<br>
transparently support 64-bit integers on 32-bit hosts. Whilst bigint (part of<br>
bignum) is a core Perl module not all distributions install it (notable Fedora<br>
23).<br>
<br>
As the error message when bignum isn't installed is obscure, add a task to check<br>
that it is available and alert the user if it isn't.<br>
<br>
[ YOCTO #8562 ]<br>
<br>
Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>><br>
---<br>
</span> meta/recipes-connectivity/openssl/<a href="http://openssl_1.0.2d.bb" rel="noreferrer" target="_blank">openssl_1.0.2d.bb</a> | 10 ++++++++++<br>
1 file changed, 10 insertions(+)<br>
<br>
diff --git a/meta/recipes-connectivity/openssl/<a href="http://openssl_1.0.2d.bb" rel="noreferrer" target="_blank">openssl_1.0.2d.bb</a> b/meta/recipes-connectivity/openssl/<a href="http://openssl_1.0.2d.bb" rel="noreferrer" target="_blank">openssl_1.0.2d.bb</a><br>
index fd56841..659e0bd 100644<br>
--- a/meta/recipes-connectivity/openssl/<a href="http://openssl_1.0.2d.bb" rel="noreferrer" target="_blank">openssl_1.0.2d.bb</a><br>
+++ b/meta/recipes-connectivity/openssl/<a href="http://openssl_1.0.2d.bb" rel="noreferrer" target="_blank">openssl_1.0.2d.bb</a><br>
@@ -56,3 +56,13 @@ PARALLEL_MAKEINST = ""<br>
<span class=""> do_configure_prepend() {<br>
cp ${WORKDIR}/<a href="http://find.pl" rel="noreferrer" target="_blank">find.pl</a> ${S}/util/<a href="http://find.pl" rel="noreferrer" target="_blank">find.pl</a><br>
}<br>
+<br>
+# The crypto_use_bigint patch means that perl's bignum module needs to be<br>
+# installed, but some distributions (for example Fedora 23) don't ship it by<br>
+# default. As the resulting error is very misleading check for bignum before<br>
+# building.<br>
</span>+do_configure_prepend() {<br>
<div class="HOEnZb"><div class="h5">+ if ! perl -Mbigint -e true; then<br>
+ bbfatal "The perl module 'bignum' was not found but this is required to build openssl. Please install this module (often packaged as perl-bignum) and re-run bitbake."<br>
+ fi<br>
+}<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
2.1.4<br>
<br>
</font></span></blockquote></div><br></div></div></div>