From d9e4a452a85593a52ccef865ab9fe07ea78a9ae8 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 29 Dec 2022 20:06:09 +0100 Subject: [PATCH] nominatim: enable luajit --- cookbooks/nominatim/recipes/default.rb | 3 ++- .../nominatim/templates/default/nominatim-update-source.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 26e4d4caf..d6ea07376 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -132,6 +132,7 @@ package %w[ libpq-dev libproj-dev liblua5.3-dev + libluajit-5.1-dev lua5.3 python3-pyosmium python3-psycopg2 @@ -207,7 +208,7 @@ execute "compile_nominatim" do action :nothing user "nominatim" cwd build_directory - command "cmake #{source_directory} && make" + command "cmake -D WITH_LUAJIT=ON #{source_directory} && make" notifies :run, "execute[install_nominatim]" end diff --git a/cookbooks/nominatim/templates/default/nominatim-update-source.erb b/cookbooks/nominatim/templates/default/nominatim-update-source.erb index 43a486511..5074b237e 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update-source.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update-source.erb @@ -19,5 +19,5 @@ git merge origin/<%= node[:nominatim][:revision] %> git submodule update cd <%= @builddir %> -cmake . +cmake -D WITH_LUAJIT=ON . make -- 2.39.5