From: Sarah Hoffmann Date: Thu, 29 Dec 2022 19:06:09 +0000 (+0100) Subject: nominatim: enable luajit X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/d9e4a452a85593a52ccef865ab9fe07ea78a9ae8 nominatim: enable luajit --- 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