On 6/28/2024 8:35 AM, phess...@openbsd.org wrote:
> http://build-failures.rhaalovely.net/aarch64/2024-06-25/games/openrct2.log

This one is probably because -Werror is turned on and it probably
shouldn't be. Diff attached.

OK?

~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/openrct2/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- Makefile    29 May 2024 09:56:15 -0000      1.23
+++ Makefile    28 Jun 2024 16:02:00 -0000
@@ -15,6 +15,7 @@ DISTFILES.c =         opensfx-${OPENSFX_V}{open
 DISTFILES.d =  openmsx-${OPENMSX_V}{openmusic}.zip
 DISTFILES.e =  replays-${REPLAYS_V}{replays}.zip
 PKGNAME =      openrct2-${V}
+REVISION =     0
 CATEGORIES =   games x11
 
 HOMEPAGE =     https://openrct2.org/
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt        28 Jun 2024 16:02:00 -0000
@@ -0,0 +1,12 @@
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -332,7 +332,7 @@ else ()
+ 
+     # Compiler flags
+     set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use 
value in range 0–3.")
+-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstrict-aliasing -Werror -Wundef 
-Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow")
++    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstrict-aliasing -Wundef 
-Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow")
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas 
-Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter 
-Wno-attributes")
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}")
+ 
Index: patches/patch-src_openrct2_core_String_cpp
===================================================================
RCS file: /cvs/ports/games/openrct2/patches/patch-src_openrct2_core_String_cpp,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_openrct2_core_String_cpp
--- patches/patch-src_openrct2_core_String_cpp  31 May 2024 07:38:36 -0000      
1.1
+++ patches/patch-src_openrct2_core_String_cpp  28 Jun 2024 16:02:00 -0000
@@ -1,7 +1,7 @@
 Index: src/openrct2/core/String.cpp
 --- src/openrct2/core/String.cpp.orig
 +++ src/openrct2/core/String.cpp
-@@ -15,7 +15,7 @@
+@@ -14,7 +14,7 @@
  #include <stdexcept>
  #include <vector>
  #ifndef _WIN32

Reply via email to