summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-12 16:55:31 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-10-09 02:04:26 +0530
commitb0b31d163d308a2f9c598270d6ae017d8d126b9c (patch)
treec4b9f2426275b009d34bdec0fbeaf4624607b732
parente38b8b9356ffbe5dd7d80af193d2b42a98053079 (diff)
openssl.recipe: Ensure that Perl uses forward slashes
Someone reported on IRC that openssl was failing to build because it was complaining about Perl using backward slashes instead of forward slashes. Turned out to be because someone had overriden TERM to be `dumb` instead of the default `cygwin`. Set those vars ourselves to prevent this from happening. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/634>
-rw-r--r--recipes/openssl.recipe6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/openssl.recipe b/recipes/openssl.recipe
index e94126c3..897d644a 100644
--- a/recipes/openssl.recipe
+++ b/recipes/openssl.recipe
@@ -99,6 +99,12 @@ class Recipe(recipe.Recipe):
# mingw-perl that was downloaded and installed by bootstrap.
openssl_path = os.path.join(self.config.mingw_perl_prefix, 'bin')
self.prepend_env('PATH', openssl_path, sep=';')
+ # Ensure that Perl's Filei/Spec.pm uses forward-slashes. These vars
+ # are automatically set by the MSYS terminal, but they might get
+ # overriden by something, which will cause Perl to use backward
+ # slashes and fail `Configurations/unix-checker.pm` on configure.
+ self.set_env('MSYSTEM', 'MINGW32')
+ self.set_env('TERM', 'cygwin')
@async_modify_environment
async def configure(self):