Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] openssl: use deterministic perl Text::Template module bundled by openssl source
@ 2018-10-12 16:28 Hongxu Jia
  2018-10-12 17:02 ` richard.purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Hongxu Jia @ 2018-10-12 16:28 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

1. The building openssl requires to install perl Text::Template module(>=1.46),
but Text::Template is a non core Perl module, openssl chooses to bundle
Text::Template 1.46 into the source, for convenience.
https://github.com/openssl/openssl/commit/8ff2af548303d311ce3591406111f77862875a60

2. While Text::Template < 1.46, the produced build files are gravely faulty.
https://github.com/openssl/openssl/pull/6682

3. If host has installed Text::Template < 1.46 (such as CentOS-7.5 has Text::
Template 1.45). The mismatched old module was used although the right one in
openssl source.

So set PERL5LIB to use deterministic perl Text::Template module bundled
by openssl source and ignore the one of host

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

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
index 5a43a15..0351858 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
@@ -105,6 +105,7 @@ 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.
+	PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
 	perl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
 }
 
-- 
2.10.2



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

* Re: [PATCH] openssl: use deterministic perl Text::Template module bundled by openssl source
  2018-10-12 16:28 [PATCH] openssl: use deterministic perl Text::Template module bundled by openssl source Hongxu Jia
@ 2018-10-12 17:02 ` richard.purdie
  0 siblings, 0 replies; 2+ messages in thread
From: richard.purdie @ 2018-10-12 17:02 UTC (permalink / raw)
  To: Hongxu Jia, openembedded-core

On Fri, 2018-10-12 at 09:28 -0700, Hongxu Jia wrote:
> 1. The building openssl requires to install perl Text::Template
> module(>=1.46),
> but Text::Template is a non core Perl module, openssl chooses to
> bundle
> Text::Template 1.46 into the source, for convenience.
> 
https://github.com/openssl/openssl/commit/8ff2af548303d311ce3591406111f77862875a60
> 
> 2. While Text::Template < 1.46, the produced build files are gravely
> faulty.
> https://github.com/openssl/openssl/pull/6682
> 
> 3. If host has installed Text::Template < 1.46 (such as CentOS-7.5
> has Text::
> Template 1.45). The mismatched old module was used although the right
> one in
> openssl source.
> 
> So set PERL5LIB to use deterministic perl Text::Template module
> bundled by openssl source and ignore the one of host

This sounds like a *much* better solution, thanks!

Cheers,

Richard




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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 16:28 [PATCH] openssl: use deterministic perl Text::Template module bundled by openssl source Hongxu Jia
2018-10-12 17:02 ` richard.purdie

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