Package Details: osrm-backend 26.6.5-1

Git Clone URL: https://aur.archlinux.org/osrm-backend.git (read-only, click to copy)
Package Base: osrm-backend
Description: High performance routing engine written in C++14 designed to run on OpenStreetMap data.
Upstream URL: https://github.com/Project-OSRM/osrm-backend
Licenses: BSD-2-Clause
Conflicts: osrm-backend
Provides: osrm-backend
Submitter: mille337
Maintainer: archlinuxauruser
Last Packager: archlinuxauruser
Votes: 6
Popularity: 0.84
First Submitted: 2017-11-25 10:17 (UTC)
Last Updated: 2026-06-05 02:18 (UTC)

Latest Comments

1 2 Next › Last »

archlinuxauruser commented on 2026-05-28 06:06 (UTC)

After reviewing your work here and on github, Sir_Delajolie I am impressed. I don't know how you did it but I got it to work also. Helps that sol2 maintainer has now updated the PKGBUILD with the patch.

Sir_Delajolie commented on 2026-05-27 06:16 (UTC)

I seem to have a working PKGBUILD for 26.5.0.

There is a patch needed for the sol2 package https://aur.archlinux.org/pkgbase/sol2#comment-1072986 and another patch for some missing includes in osrm-backend https://github.com/Project-OSRM/osrm-backend/pull/7589

diff --git a/PKGBUILD b/PKGBUILD
index 9c43265..4b7e03e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,45 +2,52 @@
 # Contributor: Julien Desgats <julien at desgats dot fr>

 pkgname=osrm-backend
-pkgver=26.4.1
+pkgver=26.5.0
 pkgrel=1
 pkgdesc="High performance routing engine written in C++14 designed to run on OpenStreetMap data."
 arch=('x86_64')
 url="https://github.com/Project-OSRM/${pkgname}"
 license=('BSD')
 depends=(
+       boost-libs
        bzip2
        doxygen
        expat
+       flatbuffers
        git
+       libarchive
        libosmium
        libxml2
        libzip
-       lua
+       lua54
        onetbb
        pkgconf
        protozero
+       zlib
 )
-# boost-libs
 # libc++
 makedepends=(
        cmake
        boost
+       rapidjson
+       sol2
+       vtzero
 )
 provides=("${pkgname}")
 conflicts=("${pkgname}")

 source=("${pkgname}-${pkgver}-LICENSE::${url/github/raw.githubusercontent}/refs/heads/master/LICENSE.TXT"
-"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-       # "${pkgname}-${pkgver}.patch")
+       "${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+       "${pkgname}-${pkgver}.patch::${url}/pull/7589.diff")

 b2sums=('7e714e99eaea01b1ce336c74e2f4a6f5af6aa059ef16d0e353864c7e188df88682ea5a41b94d42e6daeabfd96e7f352790e04a0bb273c1633747c17e5c348f5a'
-        '4b35ebec16f56361c6c5a63564c9c6e96636cf54ec1d52b73c691d94544d0862bafe8f3361b4142cebdbbf97e87c6b6222c88c9383c8780b35c15c24339ed6bb')
-        # 'ec09533d0ba993946841912a48fee01161dc09e2cc920e7b80c209163a228bf344a9e716b0ba371774c96ac15ca82a3aba4ad204dd981ab85a10bf31ba668aff')
+       'e7f7c7b292615a55fd283d7e2342e0d447e73555aa3afab1972f279b7b08b289c89d0d821a1ac57ac0afe4f4ce1a404b78f329c74f7f3281b8cfad081e521367'
+       '27eaaf313bfcc8485c9d0867c79cf6871e2067ebd1d3b8b43429de101f18799dd17c10a0b301fdfd5e36a41ca4815083058083e9a50e1c1a13a17604d50aa3ec')

 prepare() {
        cd "${pkgname}-${pkgver}"
-       # patch -Np1 -i ../"${pkgname}-${pkgver}.patch"
+       sed -e 's/-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2//' -i CMakeLists.txt
+       patch -Np1 -i ../"${pkgname}-${pkgver}.patch"

        # for p in ../*.patch; do
        #       patch -Np1 -i "$p"
@@ -56,15 +63,13 @@ build() {
                # -S <path-to-source>          = Explicitly specify a source directory.
                -S "${srcdir}/${pkgname}-${pkgver}"
                # -D CMAKE_BUILD_TYPE=Debug
-               -D CMAKE_BUILD_TYPE=RelWithDebInfo
+               -D CMAKE_BUILD_TYPE=None
                # -D CMAKE_BUILD_TYPE=Release
                -D CMAKE_INSTALL_PREFIX=/usr
                -D CMAKE_INSTALL_LIBDIR=lib
                -D BUILD_SHARED_LIBS=ON
-               -D LUA_INCLUDE_DIR=/usr/include
+               -D LUA_INCLUDE_DIR=/usr/include/lua5.4
                -W no-dev
-               -D CMAKE_C_FLAGS="-D_FORTIFY_SOURCE=2"
-               -D CMAKE_CXX_FLAGS="-D_FORTIFY_SOURCE=2"
        )
        cmake "${cmake_options[@]}"
        # make VERBOSE=1

archlinuxauruser commented on 2026-05-24 01:34 (UTC) (edited on 2026-05-24 04:14 (UTC) by archlinuxauruser)

Build method seems to have changed upstream for 26.5.0. Having trouble getting this to compile now using the suggested method on the main page (https://github.com/Project-OSRM/osrm-backend#building-from-source)

Second command fails i.e.:

$ cmake --build --preset ci-linux
[137/151] Building CXX object CMakeFiles/osrm-io-benchmark.dir/src/tools/io-benchmark.cpp.o
FAILED: [code=1] CMakeFiles/osrm-io-benchmark.dir/src/tools/io-benchmark.cpp.o 
ccache /usr/bin/c++ 
[..snip..]
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unneeded-internal-declaration’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-ambiguous-reversed-operator’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-deprecated-comma-subscript’ may have been intended to silence earlier diagnostics
[142/151] Building CXX object CMakeFiles/osrm_extract.dir/src/osrm/extractor.cpp.o
ninja: build stopped: subcommand failed.

Open to suggestions here.

archlinuxauruser commented on 2026-01-11 04:24 (UTC) (edited on 2026-01-11 04:24 (UTC) by archlinuxauruser)

This still won't compile for me using the setting:

-D CMAKE_BUILD_TYPE=Release 

but will if I use

-D CMAKE_BUILD_TYPE=RelWithDebInfo

for reasons yet to determine.

archlinuxauruser commented on 2026-01-10 12:03 (UTC) (edited on 2026-01-10 12:05 (UTC) by archlinuxauruser)

I implemented a patch for your upstream fix https://github.com/Project-OSRM/osrm-backend/pull/7220 . Thanks for the tip.

Unfortunately, there are still compile errors generated from some warnings, which I'll continue to work on.

Sir_Delajolie commented on 2026-01-09 18:53 (UTC)

This package doesn't compile with current boost (1.89.0). There is a fix upstream but it's not yet in a release: https://github.com/Project-OSRM/osrm-backend/pull/7220

thibaultmol commented on 2023-06-15 15:30 (UTC)

Please update this package

firoz commented on 2022-02-07 16:14 (UTC)

tbb 2021.5.0 isn't found by cmake

mille337 commented on 2019-11-03 15:37 (UTC)

Good point, I missed that it was packaging the static libs, I just switched to dynamic ones.

alialamine commented on 2019-11-02 18:15 (UTC)

Can you please add the flag -DBUILD_SHARED_LIBS=ON to the cmake command?