]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: enable luajit
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 29 Dec 2022 19:06:09 +0000 (20:06 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 29 Dec 2022 19:06:09 +0000 (20:06 +0100)
cookbooks/nominatim/recipes/default.rb
cookbooks/nominatim/templates/default/nominatim-update-source.erb

index 26e4d4caf53b8f021dcd4245f61e5ac3f3a618ab..d6ea0737604ad01b6c4721aba330a92731ee7f5c 100644 (file)
@@ -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
 
index 43a48651150fa4acf3acb1311e8c4d2932a1ef9c..5074b237e3a9667955bab0099aea6c23ddc55f0c 100644 (file)
@@ -19,5 +19,5 @@ git merge origin/<%= node[:nominatim][:revision] %>
 git submodule update
 
 cd <%= @builddir %>
-cmake .
+cmake -D WITH_LUAJIT=ON .
 make