git: dd668bbfb7dc - main - www/osrm-backend: fix build post LLVM 19 import
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Nov 2024 08:44:09 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd668bbfb7dc3e9255ba26347b7cc48106f70c0b commit dd668bbfb7dc3e9255ba26347b7cc48106f70c0b Author: Peter Laursen <freebsd@mosedal.net> AuthorDate: 2024-11-11 13:19:41 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-11-14 08:43:23 +0000 www/osrm-backend: fix build post LLVM 19 import After the base system compiler was updated to Clang 19, the port failed to build. (The specific bug is in its version of sol2 included in this port). To fix this, I've added a patch that uses an older version of Clang on FreeBSD-CURRENT after the update to clang 19 was applied. It's a bit heavy-handed, but at least it gets the port building again on CURRENT until I can find some time to make a more permanent fix for the library. PR: 282641 --- www/osrm-backend/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/osrm-backend/Makefile b/www/osrm-backend/Makefile index 9bea0ec42188..f72880b97b5c 100644 --- a/www/osrm-backend/Makefile +++ b/www/osrm-backend/Makefile @@ -23,6 +23,7 @@ LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ libtbb.so:devel/onetbb USES= cmake compiler:c++20-lang lua:54 pkgconfig + USE_GITHUB= yes GH_ACCOUNT= Project-OSRM GH_TAGNAME= 203314b1 @@ -34,6 +35,12 @@ GROUPS= osrm OPTIONS_DEFINE= DEBUG +.include <bsd.port.options.mk> + +.if ${OSVERSION} >= 1500025 +USES+= llvm:max=18 +.endif + post-patch: @${REINPLACE_CMD} -e 's|-Werror=all -Werror=extra|-Werror=extra|g' \ ${PATCH_WRKSRC}/CMakeLists.txt