From c34d99aba3f7adb752462a83e46829733d73cc61 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Tue, 3 Sep 2024 18:21:21 -0700 Subject: [PATCH] Use backports for osm2pgsql on debian --- cookbooks/tile/recipes/default.rb | 7 +++++++ test/integration/tile/inspec/osm2pgsql_spec.rb | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 test/integration/tile/inspec/osm2pgsql_spec.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 2ebcbf041..4f067ee68 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -505,6 +505,13 @@ directory "/var/log/tile" do mode "755" end +if platform?("debian") + apt_preference "osm2pgsql" do + pin "release o=Debian Backports" + pin_priority "600" + end +end + package %w[ osm2pgsql osmium-tool diff --git a/test/integration/tile/inspec/osm2pgsql_spec.rb b/test/integration/tile/inspec/osm2pgsql_spec.rb new file mode 100644 index 000000000..e5efe3340 --- /dev/null +++ b/test/integration/tile/inspec/osm2pgsql_spec.rb @@ -0,0 +1,4 @@ +describe package("osm2pgsql") do + it { should be_installed } + its("version") { should cmp >= "1.11.0" } +end -- 2.39.5