Skip to content

Commit 10c274a

Browse files
chrisseatonansalond
authored andcommitted
Ubuntu needs the post-install hook to be run
(cherry picked from commit 1c9bc59)
1 parent f257e96 commit 10c274a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

doc/user/installing-libssl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ We recommend `libssl-dev` instead of `libssl1.0.0`, even though we aren't using
2222
it for development because the latter doesn't seem to put the shared library in
2323
a place where we can find it.
2424

25+
After installing GraalVM and Ruby you will need to rebuild `openssl` for the
26+
version in Ubuntu - run `lib/truffle/post_install_hook.sh`. Make sure you run
27+
it with TruffleRuby on your `$PATH`.
28+
2529
## Fedora
2630

2731
On Fedora 25 or older, the default openssl is correct, so you only need to

tool/docker-configs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ol7:
7979
cppext:
8080
- RUN yum install -y libcxx libcxx-devel
8181
rvm:
82+
post-install: false
8283
ubuntu1604:
8384
base: ubuntu:16.04
8485
setup:
@@ -104,6 +105,7 @@ ubuntu1604:
104105
cppext:
105106
- RUN apt-get install -y libc++-dev
106107
rvm:
108+
post-install: true
107109
fedora25:
108110
base: fedora:25
109111
setup:
@@ -129,3 +131,4 @@ fedora25:
129131
- RUN dnf install -y libcxx
130132
rvm:
131133
- RUN dnf install -y procps
134+
post-install: false

tool/jt.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,7 @@ def dockerfile(*args)
20072007
lines.push "RUN $D_GRAALVM_BASE/bin/gu install /test/#{graalvm_component}"
20082008
lines.push "ENV D_RUBY_BASE=$D_GRAALVM_BASE/jre/languages/ruby"
20092009
lines.push "ENV D_RUBY_BIN=$D_GRAALVM_BASE/bin"
2010+
lines.push "RUN PATH=$D_RUBY_BIN:$PATH $D_RUBY_BASE/lib/truffle/post_install_hook.sh" if distro.fetch('post-install')
20102011
when :source
20112012
lines.push "RUN git clone --depth 1 https://github.com/graalvm/mx.git"
20122013
lines.push "ENV PATH=$PATH:/test/mx"

0 commit comments

Comments
 (0)