Skip to content

Commit e1ffe7d

Browse files
committed
Workaround libv8-node issue on Ubuntu 24.04
rubyjs/libv8-node#52
1 parent a6d0142 commit e1ffe7d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cookbooks/web/resources/rails_port.rb

+11
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,17 @@
408408
action :delete
409409
end
410410

411+
if platform?("ubuntu") && node[:lsb][:release] == "24.04"
412+
gem_package "libv8-node" do
413+
version "= 18.19.0.0"
414+
gem_binary node[:ruby][:gem]
415+
end
416+
417+
link "/var/lib/gems/3.2.0/gems/libv8-node-18.19.0.0-x86_64-linux/vendor/v8/x86_64-linux-gnu" do
418+
to "x86_64-linux"
419+
end
420+
end
421+
411422
bundle_install "#{rails_directory}" do
412423
action :nothing
413424
user "root"

0 commit comments

Comments
 (0)