Skip to content

Commit 982192f

Browse files
committed
osrm-backend 6.0.0
1 parent de8aa72 commit 982192f

File tree

1 file changed

+6
-101
lines changed

1 file changed

+6
-101
lines changed

Formula/o/osrm-backend.rb

+6-101
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
1+
# typed: false
2+
13
class OsrmBackend < Formula
24
desc "High performance routing engine"
35
homepage "https://project-osrm.org/"
6+
url "https://github.com/Project-OSRM/osrm-backend/archive/refs/tags/v6.0.0.tar.gz"
7+
sha256 "369192672c0041600740c623ce961ef856e618878b7d28ae5e80c9f6c2643031"
48
license "BSD-2-Clause"
5-
revision 8
69
head "https://github.com/Project-OSRM/osrm-backend.git", branch: "master"
710

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-
3811
livecheck do
3912
url :stable
4013
regex(/^v?(\d+(?:\.\d+)+)$/i)
@@ -51,8 +24,10 @@ class OsrmBackend < Formula
5124
end
5225

5326
depends_on "cmake" => :build
27+
depends_on "pkgconf" => :build
5428

5529
depends_on "boost"
30+
depends_on "gcc"
5631
depends_on "libstxxl"
5732
depends_on "libxml2"
5833
depends_on "libzip"
@@ -67,12 +42,6 @@ class OsrmBackend < Formula
6742
conflicts_with "mapnik", because: "both install Mapbox Variant headers"
6843

6944
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-
7645
# Work around build failure: duplicate symbol 'boost::phoenix::placeholders::uarg9'
7746
# Issue ref: https://github.com/boostorg/phoenix/issues/111
7847
ENV.append_to_cflags "-DBOOST_PHOENIX_STL_TUPLE_H_"
@@ -129,67 +98,3 @@ def install
12998
assert_path_exists testpath/"test.osrm.names", "osrm-extract generated no output!"
13099
end
131100
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

Comments
 (0)