Skip to contentSkip to conversation

openssl: pass PERL=perl environment variable to configurator

PATCH In review Ruslan Bilovol 1 participant 2 messages Dec 21, 2018 – Mar 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: pass PERL=perl environment variable to configurator

In our build environment we use wrapper script for perl in non-standard configuration with extra variables set (provided by custom buildtools-tarball).

In this case openssl fails to build because by default it's Configure script detects and uses perl executable directly (with absolute path) obviously missing extra settings from wrapper script.

Pass PERL=perl environment variable to Configure, so it won't try to use perl executable directly but will use what is provided from environment.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +1 -1
index 5c4e69c..6a72b5c 100644
@@ -112,7 +112,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=perl PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
 	perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
 	perl ${B}/configdata.pm --dump
 }
Signature · 1 line
1.9.1
#1 lore raw

It seems this patch was forgotten and master moved forward.

Will resend it from latest master

Thanks,
Ruslan

Quoted 34 lines · Ruslan Bilovol

In our build environment we use wrapper script for perl in non-standard configuration with extra variables set (provided by custom buildtools-tarball).

In this case openssl fails to build because by default it's Configure script detects and uses perl executable directly (with absolute path) obviously missing extra settings from wrapper script.

Pass PERL=perl environment variable to Configure, so it won't try to use perl executable directly but will use what is provided from environment.

---
  meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +1 -1
index 5c4e69c..6a72b5c 100644
@@ -112,7 +112,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=perl PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
  	perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} --prefix=$useprefix --openssldir=${libdir}/ssl-1.1 --libdir=${libdir} $target
  	perl ${B}/configdata.pm --dump
  }