|
1 | 1 | class OsrmBackend < Formula |
2 | 2 | desc "High performance routing engine" |
3 | 3 | homepage "https://project-osrm.org/" |
| 4 | + url "https://github.com/Project-OSRM/osrm-backend/archive/refs/tags/v6.0.0.tar.gz" |
| 5 | + sha256 "369192672c0041600740c623ce961ef856e618878b7d28ae5e80c9f6c2643031" |
4 | 6 | license "BSD-2-Clause" |
5 | | - revision 8 |
6 | 7 | head "https://github.com/Project-OSRM/osrm-backend.git", branch: "master" |
7 | 8 |
|
8 | | - # TODO: Remove `conflicts_with "mapnik"` in release that has following commit: |
9 | | - # https://github.com/Project-OSRM/osrm-backend/commit/c1ed73126dd467171dc7adb4ad07864909bcb90f |
10 | | - stable do |
11 | | - url "https://github.com/Project-OSRM/osrm-backend/archive/refs/tags/v5.27.1.tar.gz" |
12 | | - sha256 "52391580e0f92663dd7b21cbcc7b9064d6704470e2601bf3ec5c5170b471629a" |
13 | | - |
14 | | - # Backport commit to build with CMake 4. Remove in the next release |
15 | | - patch do |
16 | | - url "https://github.com/Project-OSRM/osrm-backend/commit/d691af4860350287041676178ceb511b240c336c.patch?full_index=1" |
17 | | - sha256 "216a143e58ee96abf4585b0f1d046469f7b42966e175b3b7b30350c232b48fff" |
18 | | - end |
19 | | - |
20 | | - # Backport fix for Boost 1.85.0. Remove in the next release. |
21 | | - # PR ref: https://github.com/Project-OSRM/osrm-backend/pull/6856 |
22 | | - patch do |
23 | | - url "https://github.com/Project-OSRM/osrm-backend/commit/10ec6fc33547e4b96a5929c18db57fb701152c68.patch?full_index=1" |
24 | | - sha256 "4f475ed8a08aa95a2b626ba23c9d8ac3dc55d54c3f163e3d505d4a45c2d4e504" |
25 | | - end |
26 | | - |
27 | | - # Backport fix for missing include. Remove in the next release. |
28 | | - # Ref: https://github.com/Project-OSRM/osrm-backend/commit/565959b3896945a0eb437cc799b697be023121ef |
29 | | - # |
30 | | - # Also backport sol2.hpp workaround to avoid a Clang bug. Remove in the next release |
31 | | - # Ref: https://github.com/Project-OSRM/osrm-backend/commit/523ee762f077908d03b66d0976c877b52adf22fa |
32 | | - # |
33 | | - # Also add diff from open PR to support Boost 1.87.0 |
34 | | - # Ref: https://github.com/Project-OSRM/osrm-backend/pull/7073 |
35 | | - patch :DATA |
36 | | - end |
37 | | - |
38 | 9 | livecheck do |
39 | 10 | url :stable |
40 | 11 | regex(/^v?(\d+(?:\.\d+)+)$/i) |
@@ -67,12 +38,6 @@ class OsrmBackend < Formula |
67 | 38 | conflicts_with "mapnik", because: "both install Mapbox Variant headers" |
68 | 39 |
|
69 | 40 | def install |
70 | | - # Workaround to build with CMake 4. Remove in the next release |
71 | | - if build.stable? |
72 | | - odie "Remove CMake 4 workaround!" if version >= 6 |
73 | | - ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5" |
74 | | - end |
75 | | - |
76 | 41 | # Work around build failure: duplicate symbol 'boost::phoenix::placeholders::uarg9' |
77 | 42 | # Issue ref: https://github.com/boostorg/phoenix/issues/111 |
78 | 43 | ENV.append_to_cflags "-DBOOST_PHOENIX_STL_TUPLE_H_" |
@@ -129,67 +94,3 @@ def install |
129 | 94 | assert_path_exists testpath/"test.osrm.names", "osrm-extract generated no output!" |
130 | 95 | end |
131 | 96 | end |
132 | | - |
133 | | -__END__ |
134 | | -diff --git a/include/extractor/suffix_table.hpp b/include/extractor/suffix_table.hpp |
135 | | -index 5d16fe6..2c378bf 100644 |
136 | | ---- a/include/extractor/suffix_table.hpp |
137 | | -+++ b/include/extractor/suffix_table.hpp |
138 | | -@@ -3,6 +3,7 @@ |
139 | | - |
140 | | - #include <string> |
141 | | - #include <unordered_set> |
142 | | -+#include <vector> |
143 | | - |
144 | | - #include "util/string_view.hpp" |
145 | | - |
146 | | -diff --git a/third_party/sol2-3.3.0/include/sol/sol.hpp b/third_party/sol2-3.3.0/include/sol/sol.hpp |
147 | | -index 8b0b7d36ea4ef2a36133ce28476ae1620fcd72b5..d7da763f735434bf4a40b204ff735f4e464c1b13 100644 |
148 | | ---- a/third_party/sol2-3.3.0/include/sol/sol.hpp |
149 | | -+++ b/third_party/sol2-3.3.0/include/sol/sol.hpp |
150 | | -@@ -19416,7 +19416,14 @@ namespace sol { namespace function_detail { |
151 | | - } |
152 | | - |
153 | | - template <bool is_yielding, bool no_trampoline> |
154 | | -- static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) { |
155 | | -+ static int call(lua_State* L) |
156 | | -+// see https://github.com/ThePhD/sol2/issues/1581#issuecomment-2103463524 |
157 | | -+#if SOL_IS_ON(SOL_COMPILER_CLANG) |
158 | | -+ // apparent regression in clang 18 - llvm/llvm-project#91362 |
159 | | -+#else |
160 | | -+ noexcept(std::is_nothrow_copy_assignable_v<T>) |
161 | | -+#endif |
162 | | -+ { |
163 | | - int nr; |
164 | | - if constexpr (no_trampoline) { |
165 | | - nr = real_call(L); |
166 | | -@@ -19456,7 +19463,14 @@ namespace sol { namespace function_detail { |
167 | | - } |
168 | | - |
169 | | - template <bool is_yielding, bool no_trampoline> |
170 | | -- static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) { |
171 | | -+ static int call(lua_State* L) |
172 | | -+// see https://github.com/ThePhD/sol2/issues/1581#issuecomment-2103463524 |
173 | | -+#if SOL_IS_ON(SOL_COMPILER_CLANG) |
174 | | -+ // apparent regression in clang 18 - llvm/llvm-project#91362 |
175 | | -+#else |
176 | | -+ noexcept(std::is_nothrow_copy_assignable_v<T>) |
177 | | -+#endif |
178 | | -+ { |
179 | | - int nr; |
180 | | - if constexpr (no_trampoline) { |
181 | | - nr = real_call(L); |
182 | | -diff --git a/include/server/server.hpp b/include/server/server.hpp |
183 | | -index 34b8982e67..02b0dda050 100644 |
184 | | ---- a/include/server/server.hpp |
185 | | -+++ b/include/server/server.hpp |
186 | | -@@ -53,8 +53,7 @@ class Server |
187 | | - const auto port_string = std::to_string(port); |
188 | | - |
189 | | - boost::asio::ip::tcp::resolver resolver(io_context); |
190 | | -- boost::asio::ip::tcp::resolver::query query(address, port_string); |
191 | | -- boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(query); |
192 | | -+ boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(address, port_string).begin(); |
193 | | - |
194 | | - acceptor.open(endpoint.protocol()); |
195 | | - #ifdef SO_REUSEPORT |
0 commit comments