From b0b31d163d308a2f9c598270d6ae017d8d126b9c Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 12 Jun 2020 16:55:31 +0530 Subject: 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: --- recipes/openssl.recipe | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- cgit v1.2.3