Skip to content

Commit f08dd1a

Browse files
committed
[GR-15555] Always recompile the OpenSSL C extension, as the check is inaccurate.
PullRequest: truffleruby/827
2 parents 04afba2 + f6cd2d2 commit f08dd1a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Bug fixes:
55
* The debugger now sees global variables as the global scope.
66
* Temporary variables are no longer visible in the debugger.
77
* Setting breakpoints on some lines has been fixed.
8+
* The OpenSSL C extension is now always recompiled, fixing various bugs when using the extension (e.g., when using Bundler in TravisCI) (#1676, #1627, #1632).
89

910
Compatibility:
1011

lib/truffle/post_install_hook.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ elif [ "$TRUFFLERUBY_RECOMPILE_OPENSSL" == "true" ]; then
2626
echo "Recompiling the OpenSSL C extension (TRUFFLERUBY_RECOMPILE_OPENSSL=true)"
2727
recompile_openssl
2828
else
29-
check=$("$root/bin/truffleruby" -ropenssl -e 'print OpenSSL' 2>&1 || echo FAILED)
30-
if [ "$check" == "OpenSSL" ]; then
31-
echo "Using the precompiled OpenSSL C extension"
32-
else
33-
echo "Recompiling the OpenSSL C extension (libssl version is incompatible)"
34-
recompile_openssl
35-
fi
29+
echo "Recompiling the OpenSSL C extension (against the installed libssl)"
30+
recompile_openssl
3631
fi
3732

3833
echo "TruffleRuby was successfully installed in $root"

0 commit comments

Comments
 (0)