Index | Thread | Search

From:
izzy Meyer <izder456@disroot.org>
Subject:
Re: UPDATE (from maintainer): games/classicube -> 1.3.8
To:
ports@openbsd.org
Date:
Fri, 13 Mar 2026 09:38:56 -0500

Download raw body.

Thread
On Fri, 13 Mar 2026 09:35:00 -0500
izzy Meyer <izder456@disroot.org> wrote:

> Hello ports@
> 
> Here's a relatively small update of classicube to 1.3.8
> 
> Found a small hiccup  regarding LibreSSL that needed a backport patch
> for our port, but this should be sufficient for now:
> 
> https://github.com/ClassiCube/ClassiCube/issues/1520
> 
> Release notes on their GitHub page:
> https://github.com/ClassiCube/ClassiCube/releases/tag/1.3.8
> 
> Could I get OKs? Thanks,
> 

Hit send too early. This release no longer dlopen()'s libcurl. So update
WANTLIB and LIB_DEPENDS

-- 
iz (she/her)

> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.

izder456 (dot) neocities (dot) org
diff --git games/classicube/Makefile games/classicube/Makefile
index 223eb219d61..d0bee43c28c 100644
--- games/classicube/Makefile
+++ games/classicube/Makefile
@@ -3,7 +3,7 @@ BROKEN-sparc64 =	...error "Unknown CPU architecture"
 
 COMMENT =		classic Minecraft client written in C
 
-V =			1.3.7
+V =			1.3.8
 PKGNAME =		classicube-${V}
 
 DIST_TUPLE +=		github ClassiCube ClassiCube ${V} .
@@ -18,16 +18,15 @@ PERMIT_PACKAGE =	Yes
 WANTLIB +=		GL X11 Xi c execinfo pthread
 
 # dlopen'd
-WANTLIB +=		openal curl
+WANTLIB +=		openal
 
-FIX_CRLF_FILES =	src/Logger.c
+FIX_CRLF_FILES =	src/Certs.c
 
 COMPILER =		base-clang ports-gcc base-gcc
 COMPILER_LANGS =	c
 
 # Needed for downloading assets and sound support at runtime
-LIB_DEPENDS =		net/curl \
-			audio/openal
+LIB_DEPENDS =		audio/openal
 RUN_DEPENDS =		devel/desktop-file-utils
 
 USE_GMAKE =		Yes
diff --git games/classicube/distinfo games/classicube/distinfo
index 559ddbeb72e..d4423aed8d6 100644
--- games/classicube/distinfo
+++ games/classicube/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ClassiCube-ClassiCube-1.3.7.tar.gz) = BPlusswzi4GjaoQ7fR8j3lTvU5qA0reTu+9pqpBDWF8=
-SIZE (ClassiCube-ClassiCube-1.3.7.tar.gz) = 3717504
+SHA256 (ClassiCube-ClassiCube-1.3.8.tar.gz) = NSk6zx5juuyoMt7CUSKD8pdced34DMhVoSwQRkcjpsQ=
+SIZE (ClassiCube-ClassiCube-1.3.8.tar.gz) = 3619343
diff --git games/classicube/patches/patch-src_Certs_c games/classicube/patches/patch-src_Certs_c
new file mode 100644
index 00000000000..2545a438e88
--- /dev/null
+++ games/classicube/patches/patch-src_Certs_c
@@ -0,0 +1,17 @@
+Index: src/Certs.c
+--- src/Certs.c.orig
++++ src/Certs.c
+@@ -97,6 +97,13 @@ static const cc_string cryptoLib = String_FromConst("l
+ static const cc_string cryptoAlt = String_FromConst("libcrypto.so.3");
+ #endif
+ 
++#ifdef CC_BUILD_OPENBSD
++	/* OpenBSD usually uses LibreSSL instead of OpenSSL, which didn't rename these symbols */
++	#define OPENSSL_sk_new_null sk_new_null
++	#define OPENSSL_sk_push     sk_push
++	#define OPENSSL_sk_pop_free sk_pop_free
++#endif
++
+ static X509_STORE* store;
+ static cc_bool ossl_loaded;
+ 
diff --git games/classicube/patches/patch-src_Logger_c games/classicube/patches/patch-src_Logger_c
deleted file mode 100644
index eca4090ffcb..00000000000
--- games/classicube/patches/patch-src_Logger_c
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: src/Logger.c
---- src/Logger.c.orig
-+++ src/Logger.c
-@@ -403,7 +403,7 @@ void Logger_Backtrace(cc_string* trace, void* ctx) {
- }
- #elif defined CC_BACKTRACE_BUILTIN
- /* Implemented later at end of the file */
--#elif defined CC_BUILD_POSIX && defined _GLIBC_
-+#elif defined CC_BUILD_POSIX && (defined _GLIBC_ || defined CC_BUILD_OPENBSD)
- #include <execinfo.h>
- 
- void Logger_Backtrace(cc_string* trace, void* ctx) {