On Sun, 13 Oct 2024 21:50:06 +0200,
izzy Meyer <izder456@disroot.org> wrote:
>
> ld: error: undefined symbol: _Unwind_Backtrace
> >>> referenced by Logger.c:1363 (src/Logger.c:1363)
> >>> build-openbsd/Logger.o:(Logger_Backtrace)
>
> ld: error: undefined symbol: _Unwind_GetIP
> >>> referenced by Logger.c:1355 (src/Logger.c:1355)
> >>> build-openbsd/Logger.o:(UnwindFrame)
> cc: error: linker command failed with exit code 1 (use -v to see
> invocation) gmake[1]: *** [Makefile:247: ClassiCube] Error 1
> gmake[1]: Leaving directory '/tmp/ClassiCube-1.3.7'
> gmake: *** [Makefile:175: openbsd] Error 2
>
You should use CXX and not CC. Here an updated diff which builds on
-current/amd64 but I haven't tested it.
Thus, I've noticed that Makefile had hardcoded /usr/local which I also
replaced to actual value inside pre-configure stage.
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/classicube/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 3 Oct 2024 08:52:39 -0000 1.3
+++ Makefile 13 Oct 2024 21:56:31 -0000
@@ -3,10 +3,10 @@ BROKEN-sparc64 = ...error "Unknown CPU a
COMMENT = classic Minecraft client written in C
-V = 1.3.6
+V = 1.3.7
PKGNAME = classicube-${V}
-DIST_TUPLE += github ClassiCube ClassiCube 1.3.6 .
+DIST_TUPLE += github ClassiCube ClassiCube ${V} .
CATEGORIES = games
@@ -26,6 +26,9 @@ RUN_DEPENDS = devel/desktop-file-utils
USE_GMAKE = Yes
ALL_TARGET = ClassiCube
+
+pre-configure:
+ @sed -i 's,/usr/local,${PREFIX},' ${WRKSRC}/Makefile
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/classicube
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/classicube/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 9 Jul 2024 16:14:11 -0000 1.1.1.1
+++ distinfo 13 Oct 2024 21:56:31 -0000
@@ -1,2 +1,2 @@
-SHA256 (ClassiCube-ClassiCube-1.3.6.tar.gz) = +reA9NzwZpoPlGg8m2WW9Ay4PglyejuRqq5ek0qXQLA=
-SIZE (ClassiCube-ClassiCube-1.3.6.tar.gz) = 2490780
+SHA256 (ClassiCube-ClassiCube-1.3.7.tar.gz) = BPlusswzi4GjaoQ7fR8j3lTvU5qA0reTu+9pqpBDWF8=
+SIZE (ClassiCube-ClassiCube-1.3.7.tar.gz) = 3717504
Index: patches/patch-Makefile
===================================================================
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Makefile 13 Oct 2024 21:56:31 -0000
@@ -0,0 +1,12 @@
+Index: Makefile
+--- Makefile.orig
++++ Makefile
+@@ -244,7 +244,7 @@ clean:
+ $(BUILD_DIR):
+ mkdir -p $(BUILD_DIR)
+ $(ENAME): $(BUILD_DIR) $(OBJECTS)
+- $(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
++ $(CXX) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
+
+
+ # macOS app bundle
--
wbr, Kirill
No comments:
Post a Comment