> http://build-failures.rhaalovely.net/sparc64/2019-10-11/games/love.log (no macppc log because graphics/DevIL is broken, i've just posted a diff for that)
This is a very typical case; gcc does not consider `NULL' as `false'. I needed to dos2unix the source code as the "faulty" code had MS-DOS line endings. Once fixed it builds fine on amd64, and on macppc [0] where the runtime has been tested successfully [1]. While here i've moved HOMEPAGE to https. Comments/feedback are welcome, Charlène. [0] https://bin.charlenew.xyz/love.log [1] https://bsd.network/@julianaito/102980335050703097 Index: Makefile =================================================================== RCS file: /cvs/ports/games/love/Makefile,v retrieving revision 1.24 diff -u -p -u -p -r1.24 Makefile --- Makefile 12 Jul 2019 20:46:20 -0000 1.24 +++ Makefile 17 Oct 2019 22:26:34 -0000 @@ -5,9 +5,9 @@ COMMENT= 2D games framework for use wit V= 0.8.0 DISTNAME= love-$V-linux-src PKGNAME= love-$V -REVISION= 9 +REVISION= 10 -HOMEPAGE= http://love2d.org/ +HOMEPAGE= https://love2d.org/ CATEGORIES= games lang/lua @@ -55,5 +55,8 @@ post-extract: for i in `find . -type f`; \ do [ "$(tail -c1 $i)" == "$(printf '\n')" ] || ls -l $i; \ done +# And some files have MS-DOS line endings we don't want for patches + cd ${WRKSRC} && perl -i -pe 's/\r$$//' \ + ./src/libraries/Box2D/Collision/Shapes/b2ChainShape.h .include <bsd.port.mk> Index: patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h =================================================================== RCS file: patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h diff -N patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h 17 Oct 2019 22:26:34 -0000 @@ -0,0 +1,19 @@ +$OpenBSD$ + +ports-gcc fix for: +error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization + +Index: src/libraries/Box2D/Collision/Shapes/b2ChainShape.h +--- src/libraries/Box2D/Collision/Shapes/b2ChainShape.h.orig ++++ src/libraries/Box2D/Collision/Shapes/b2ChainShape.h +@@ -95,8 +95,8 @@ inline b2ChainShape::b2ChainShape() + m_radius = b2_polygonRadius; + m_vertices = NULL; + m_count = 0; +- m_hasPrevVertex = NULL; +- m_hasNextVertex = NULL; ++ m_hasPrevVertex = false; ++ m_hasNextVertex = false; + } + + #endif
