openssl: sanity check that the bignum module is present
PATCH 1/1 openssl: sanity check that the bignum module is present
The crypto_use_bigint_in_x86-64_perl patch uses the "bigint" module to transparently support 64-bit integers on 32-bit hosts. Whilst bigint (part of bignum) is a core Perl module not all distributions install it (notable Fedora 23).
As the error message when bignum isn't installed is obscure, add a task to check that it is available and alert the user if it isn't.
[ YOCTO #8562 ]
--- meta/recipes-connectivity/openssl/openssl_1.0.2d.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+)
meta/recipes-connectivity/openssl/openssl_1.0.2d.bb +12 -0
@@ -56,3 +56,15 @@ PARALLEL_MAKEINST = "" do_configure_prepend() { cp ${WORKDIR}/find.pl ${S}/util/find.pl } + +# The crypto_use_bigint patch means that perl's bignum module needs to be +# installed, but some distributions (for example Fedora 23) don't ship it by +# default. As the resulting error is very misleading check for bignum before +# building. +do_checkperl() { + if ! perl -Mbigint -e true; then + 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." + fi +} +addtask checkperl before do_compileq +do_checkperl[nostamp] = "1"
Signature · 1 line
2.1.4
Quoted 46 lines
Am 11.11.2015 um 15:54 schrieb Ross Burton <[email protected]>:
The crypto_use_bigint_in_x86-64_perl patch uses the "bigint" module to transparently support 64-bit integers on 32-bit hosts. Whilst bigint (part of bignum) is a core Perl module not all distributions install it (notable Fedora 23).
As the error message when bignum isn't installed is obscure, add a task to check that it is available and alert the user if it isn't.
[ YOCTO #8562 ]
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-connectivity/openssl/openssl_1.0.2d.bb | 12 ++++++++++++1 file changed, 12 insertions(+)meta/recipes-connectivity/openssl/openssl_1.0.2d.bb +12
-0@@ -56,3 +56,15 @@ PARALLEL_MAKEINST = "" do_configure_prepend() { cp ${WORKDIR}/find.pl ${S}/util/find.pl } + +# The crypto_use_bigint patch means that perl's bignum module needs to be +# installed, but some distributions (for example Fedora 23) don't ship it by +# default. As the resulting error is very misleading check for bignum before +# building. +do_checkperl() { + if ! perl -Mbigint -e true; then + 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." + fi +} +addtask checkperl before do_compileq +do_checkperl[nostamp] = "1"Signature · 7 lines
2.1.4 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
That looks very good - I check it when I'm home on my CI machine where the ancient perls live :)
Cheers
Signature · 1 line
Jens Rehsack - [email protected]