diff options
author | Ross Burton <ross.burton@intel.com> | 2015-11-11 14:50:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-25 07:50:32 +0000 |
commit | 036d2dc77f0d6849f9c1121b2848952217e861c7 (patch) | |
tree | 84fdf6b93ee0bbd4b366b2e85e4d54c87aec987a /meta/recipes-connectivity | |
parent | cf366d8c2b0436a1453b49c72044373a4e0c661b (diff) | |
download | poky-036d2dc77f0d6849f9c1121b2848952217e861c7.tar.gz |
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 ]
(From OE-Core rev: 2f9a2fbc46aa435a0a7f7662bb62029ac714f25a)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl_1.0.2d.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb index fd568414fa..659e0bd49e 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2d.bb | |||
@@ -56,3 +56,13 @@ PARALLEL_MAKEINST = "" | |||
56 | do_configure_prepend() { | 56 | do_configure_prepend() { |
57 | cp ${WORKDIR}/find.pl ${S}/util/find.pl | 57 | cp ${WORKDIR}/find.pl ${S}/util/find.pl |
58 | } | 58 | } |
59 | |||
60 | # The crypto_use_bigint patch means that perl's bignum module needs to be | ||
61 | # installed, but some distributions (for example Fedora 23) don't ship it by | ||
62 | # default. As the resulting error is very misleading check for bignum before | ||
63 | # building. | ||
64 | do_configure_prepend() { | ||
65 | if ! perl -Mbigint -e true; then | ||
66 | 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." | ||
67 | fi | ||
68 | } | ||