Skip to content

Commit 9688e48

Browse files
Update libosmium to 2.18.0. Fix problem with Docker image build. (#6303)
1 parent 51a8486 commit 9688e48

File tree

333 files changed

+19918
-11799
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+19918
-11799
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ jobs:
4747
./scripts/format.sh && ./scripts/error_on_dirty.sh
4848
node ./scripts/validate_changelog.js
4949
npm run docs && ./scripts/error_on_dirty.sh
50+
51+
docker-image:
52+
needs: format-taginfo-docs
53+
runs-on: ubuntu-22.04
54+
continue-on-error: false
55+
steps:
56+
- name: Check out the repo
57+
uses: actions/checkout@v3
58+
- name: Docker build
59+
run: |
60+
docker build -f docker/Dockerfile .
5061
5162
build-test-publish:
5263
needs: format-taginfo-docs
@@ -78,13 +89,13 @@ jobs:
7889
OSRM_CONNECTION_RETRIES: 10
7990
OSRM_CONNECTION_EXP_BACKOFF_COEF: 1.5
8091

81-
- name: clang-5.0-debug
92+
- name: clang-6.0-debug
8293
continue-on-error: false
8394
node: 12
8495
runs-on: ubuntu-20.04
8596
BUILD_TOOLS: ON
8697
BUILD_TYPE: Debug
87-
CLANG_VERSION: 5.0.0
98+
CLANG_VERSION: 6.0.0
8899
CUCUMBER_TIMEOUT: 60000
89100

90101
- name: clang-11.0-debug-clang-tidy
@@ -113,7 +124,7 @@ jobs:
113124
runs-on: ubuntu-20.04
114125
BUILD_TOOLS: ON
115126
BUILD_TYPE: Release
116-
CLANG_VERSION: 5.0.0
127+
CLANG_VERSION: 6.0.0
117128
ENABLE_CONAN: ON
118129

119130
- name: gcc-11-release
@@ -230,7 +241,7 @@ jobs:
230241
node: 12
231242
runs-on: ubuntu-20.04
232243
BUILD_TYPE: Release
233-
CLANG_VERSION: 5.0.0
244+
CLANG_VERSION: 6.0.0
234245
ENABLE_GLIBC_WORKAROUND: ON
235246
ENABLE_CONAN: ON
236247
NODE_PACKAGE_TESTS_ONLY: ON
@@ -241,7 +252,7 @@ jobs:
241252
node: 12
242253
runs-on: ubuntu-20.04
243254
BUILD_TYPE: Debug
244-
CLANG_VERSION: 5.0.0
255+
CLANG_VERSION: 6.0.0
245256
ENABLE_GLIBC_WORKAROUND: ON
246257
ENABLE_CONAN: ON
247258
NODE_PACKAGE_TESTS_ONLY: ON
@@ -252,7 +263,7 @@ jobs:
252263
node: 14
253264
runs-on: ubuntu-20.04
254265
BUILD_TYPE: Release
255-
CLANG_VERSION: 5.0.0
266+
CLANG_VERSION: 6.0.0
256267
ENABLE_GLIBC_WORKAROUND: ON
257268
ENABLE_CONAN: ON
258269
NODE_PACKAGE_TESTS_ONLY: ON
@@ -263,7 +274,7 @@ jobs:
263274
node: 14
264275
runs-on: ubuntu-20.04
265276
BUILD_TYPE: Debug
266-
CLANG_VERSION: 5.0.0
277+
CLANG_VERSION: 6.0.0
267278
ENABLE_GLIBC_WORKAROUND: ON
268279
ENABLE_CONAN: ON
269280
NODE_PACKAGE_TESTS_ONLY: ON
@@ -275,7 +286,7 @@ jobs:
275286
node: 16
276287
runs-on: ubuntu-20.04
277288
BUILD_TYPE: Release
278-
CLANG_VERSION: 5.0.0
289+
CLANG_VERSION: 6.0.0
279290
ENABLE_GLIBC_WORKAROUND: ON
280291
ENABLE_CONAN: ON
281292
NODE_PACKAGE_TESTS_ONLY: ON
@@ -286,7 +297,7 @@ jobs:
286297
node: 16
287298
runs-on: ubuntu-20.04
288299
BUILD_TYPE: Debug
289-
CLANG_VERSION: 5.0.0
300+
CLANG_VERSION: 6.0.0
290301
ENABLE_GLIBC_WORKAROUND: ON
291302
ENABLE_CONAN: ON
292303
NODE_PACKAGE_TESTS_ONLY: ON
@@ -311,7 +322,7 @@ jobs:
311322
node: 16
312323
runs-on: ubuntu-20.04
313324
BUILD_TYPE: Release
314-
CLANG_VERSION: 5.0.0
325+
CLANG_VERSION: 6.0.0
315326
ENABLE_GLIBC_WORKAROUND: ON
316327
ENABLE_CONAN: ON
317328
NODE_PACKAGE_TESTS_ONLY: ON
@@ -323,7 +334,7 @@ jobs:
323334
node: 16
324335
runs-on: ubuntu-20.04
325336
BUILD_TYPE: Debug
326-
CLANG_VERSION: 5.0.0
337+
CLANG_VERSION: 6.0.0
327338
ENABLE_GLIBC_WORKAROUND: ON
328339
ENABLE_CONAN: ON
329340
NODE_PACKAGE_TESTS_ONLY: ON
@@ -346,7 +357,7 @@ jobs:
346357
node: "lts/*"
347358
runs-on: ubuntu-20.04
348359
BUILD_TYPE: Release
349-
CLANG_VERSION: 5.0.0
360+
CLANG_VERSION: 6.0.0
350361
ENABLE_GLIBC_WORKAROUND: ON
351362
ENABLE_CONAN: ON
352363
NODE_PACKAGE_TESTS_ONLY: ON
@@ -357,7 +368,7 @@ jobs:
357368
node: "lts/*"
358369
runs-on: ubuntu-20.04
359370
BUILD_TYPE: Debug
360-
CLANG_VERSION: 5.0.0
371+
CLANG_VERSION: 6.0.0
361372
ENABLE_GLIBC_WORKAROUND: ON
362373
ENABLE_CONAN: ON
363374
NODE_PACKAGE_TESTS_ONLY: ON

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- FIXED: Fix bug with reading Set values from Lua scripts. [#6285](https://github.com/Project-OSRM/osrm-backend/pull/6285)
1010
- FIXED: Bug in bicycle profile that caused exceptions if there is a highway=bicycle in the data. [#6296](https://github.com/Project-OSRM/osrm-backend/pull/6296)
1111
- Build:
12+
- CHANGED: Update libosmium to version 2.18.0. [#6303](https://github.com/Project-OSRM/osrm-backend/pull/6303)
1213
- CHANGED: Remove EXACT from find_package if using Conan. [#6299](https://github.com/Project-OSRM/osrm-backend/pull/6299)
1314
- CHANGED: Configure Undefined Behaviour Sanitizer. [#6290](https://github.com/Project-OSRM/osrm-backend/pull/6290)
1415
- CHANGED: Use Conan instead of Mason to install code dependencies. [#6284](https://github.com/Project-OSRM/osrm-backend/pull/6284)

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ RUN apt-get update && \
1010
COPY . /src
1111
WORKDIR /src
1212

13-
RUN NPROC=${BUILD_CONCURRENCY:-$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)} echo "Building OSRM ${DOCKER_TAG}" && \
13+
RUN NPROC=${BUILD_CONCURRENCY:-$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)} && \
14+
echo "Building OSRM ${DOCKER_TAG}" && \
1415
git show --format="%H" | head -n1 > /opt/OSRM_GITSHA && \
1516
echo "Building OSRM gitsha $(cat /opt/OSRM_GITSHA)" && \
1617
mkdir -p build && \

third_party/libosmium/.clang-tidy

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
---
2-
Checks: '*,-android-cloexec-*,-bugprone-branch-clone,-bugprone-macro-parentheses,-cert-dcl21-cpp,-cert-err58-cpp,-clang-analyzer-optin.cplusplus.VirtualCall,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-vararg,-fuchsia-*,-google-runtime-references,-hicpp-avoid-c-arrays,-hicpp-invalid-access-moved,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-vararg,-misc-macro-parentheses,-misc-non-private-member-variables-in-classes,-misc-unused-parameters,-modernize-avoid-c-arrays,-modernize-make-unique,-modernize-raw-string-literal,-modernize-use-trailing-return-type,-readability-avoid-const-params-in-decls,-readability-implicit-bool-cast,-readability-implicit-bool-conversion,-readability-magic-numbers'
2+
Checks: '*,-abseil-string-find-str-contains,-altera-*,-android-cloexec-*,-bugprone-branch-clone,-bugprone-easily-swappable-parameters,-bugprone-macro-parentheses,-cert-dcl21-cpp,-cert-err58-cpp,-clang-analyzer-optin.cplusplus.VirtualCall,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-vararg,-fuchsia-*,-google-runtime-references,-hicpp-avoid-c-arrays,-hicpp-invalid-access-moved,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-vararg,-llvmlibc-*,-llvm-qualified-auto,-misc-macro-parentheses,-misc-non-private-member-variables-in-classes,-misc-no-recursion,-misc-unused-parameters,-modernize-avoid-c-arrays,-modernize-make-unique,-modernize-raw-string-literal,-modernize-use-trailing-return-type,-readability-avoid-const-params-in-decls,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-implicit-bool-cast,-readability-implicit-bool-conversion,-readability-magic-numbers,-readability-qualified-auto'
33
#
44
# For a list of check options, see:
55
# https://clang.llvm.org/extra/clang-tidy/checks/list.html
66
#
77
# Disabled checks:
88
#
9+
# abseil-string-find-str-contains
10+
# We don't want the dependency.
11+
#
12+
# altera-*
13+
# Doesn't apply.
14+
#
915
# android-cloexec-*
1016
# O_CLOEXEC isn't available on Windows making this non-portable.
1117
#
1218
# bugprone-branch-clone
1319
# Nice idea but collides but with switch statements we'll need to use
1420
# fall-throughs to fix this, which is also bad.
1521
#
22+
# bugprone-easily-swappable-parameters
23+
# Interesting test, but not something we can do much about in many places.
24+
#
1625
# bugprone-macro-parentheses
1726
# False positive in the only place where it reports something and
1827
# disabling locally doesn't work.
@@ -87,6 +96,14 @@ Checks: '*,-android-cloexec-*,-bugprone-branch-clone,-bugprone-macro-parentheses
8796
# hicpp-vararg
8897
# Too strict, sometimes calling vararg functions is necessary.
8998
#
99+
# llvm-qualified-auto
100+
# readability-qualified-auto
101+
# This reports too many cases. Typical case is an iterator that might be
102+
# a pointer on one system but some special type on another.
103+
#
104+
# llvmlibc-*
105+
# Doesn't apply to us.
106+
#
90107
# misc-macro-parentheses
91108
# Old name for bugprone-macro-parentheses.
92109
#
@@ -95,6 +112,9 @@ Checks: '*,-android-cloexec-*,-bugprone-branch-clone,-bugprone-macro-parentheses
95112
# an option "IgnoreClassesWithAllMemberVariablesBeingPublic" which should
96113
# disable this, but it didn't work for me.
97114
#
115+
# misc-no-recursion
116+
# There is nothing wrong with recursion.
117+
#
98118
# misc-unused-parameters
99119
# Can't be fixed, because then Doxygen will complain. (In file
100120
# include/osmium/area/problem_reporter.hpp).
@@ -117,6 +137,12 @@ Checks: '*,-android-cloexec-*,-bugprone-branch-clone,-bugprone-macro-parentheses
117137
# This is header only library, so the declaration and implementation are
118138
# often the same and we want to have the const in implementations.
119139
#
140+
# readability-function-cognitive-complexity
141+
# Sometimes the large functions are needed.
142+
#
143+
# readability-identifier-length
144+
# Too strict.
145+
#
120146
# readability-implicit-bool-cast
121147
# Old name for readability-implicit-bool-conversion.
122148
#
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: "https://osmcode.org/sponsors.html"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Report problems with the software
3+
about: You found a (possible) bug in libosmium
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## What version of libosmium are you using?
11+
12+
<!-- Please use the [latest
13+
release](https://github.com/osmcode/libosmium/releases) or master if at all
14+
possible. -->
15+
16+
17+
## What operating system and compiler are you using?
18+
19+
<!-- Also what Linux distribution if applicable, OS version? -->
20+
21+
22+
## Tell us something about your system
23+
24+
<!-- How much RAM do you have, how many CPUs, bare metal or cloud setup? -->
25+
26+
27+
## What did you do exactly?
28+
29+
<!-- Please provide the command(s) you used including all options etc. Include
30+
links to input files. -->
31+
32+
33+
## What did you expect to happen?
34+
35+
<!-- Describe in detail what you expected the above would do. -->
36+
37+
38+
## What did happen instead?
39+
40+
<!-- Please describe what happened and why you think this is wrong. Please
41+
include (or link to, if it is too verbose) the log output. -->
42+
43+
44+
## What did you do to try analyzing the problem?
45+
46+
<!-- Describe what steps you already did to try analyzing the problem before
47+
reporting. -->
48+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: help.osm.org
3+
url: https://help.openstreetmap.org/
4+
about: Ask questions and get support from the community.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Windows Build
2+
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Build
7+
run: cmake --build . --config Release --verbose
8+
shell: bash
9+
working-directory: build
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Build
2+
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Build
7+
run: make VERBOSE=1
8+
shell: bash
9+
working-directory: build
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Windows CMake
2+
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Create build directory
7+
run: mkdir build
8+
shell: bash
9+
- name: Configure
10+
run: cmake -LA .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_HEADERS=OFF -DBUILD_BENCHMARKS=ON -DOsmium_DEBUG=TRUE -DPROTOZERO_INCLUDE_DIR=${GITHUB_WORKSPACE}/../protozero/include
11+
shell: bash
12+
working-directory: build
13+

0 commit comments

Comments
 (0)