Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: fix various ports for sparc64
To:
ports@openbsd.org
Cc:
ajacoutot@openbsd.org, benoit@openbsd.org, bluhm@openbsd.org, rsadowski@openbsd.org
Date:
Thu, 4 Dec 2025 07:07:38 +0100

Download raw body.

Thread
On Wed, Dec 03, 2025 at 04:01:09PM +0100, Claudio Jeker wrote:
> This is a collection of ports I fixed in my bulk builds with gcc15 by
> simply adjusting the COMPILER flags.
> 
> fldigi, commoncpp, freeimage, lsys and jlint need to set CXXFLAGS by
> default to prepare for gcc15 which trips over the same issue as base-clang.
> Also -std=c++14 should be supported by gcc8 so there is little reason to
> be special about that.
> 
> I tried to add reasons if they are not obvious. Also I removed base-gcc
> from COMPILER, I doubt those ports will be built on an arch without
> ports-gcc.

This all makes sense. None should require a bump as far as I can see.

ok tb

I don't see anything controversial here, but a few ports have maintainers:

ajacoutot:	graphics/gphoto2 multimedia/pipewire/pipewire
benoit:		security/pdfcrack
bluhm:		misc/open62541
rsadowski:	net/ruby-grpc

Index: comms/fldigi/Makefile
===================================================================
RCS file: /cvs/ports/comms/fldigi/Makefile,v
diff -u -p -r1.35 Makefile
--- comms/fldigi/Makefile	25 Jul 2025 11:27:42 -0000	1.35
+++ comms/fldigi/Makefile	3 Dec 2025 13:40:23 -0000
@@ -19,9 +19,9 @@ WANTLIB += Xrender
 
 SITES=		${SITE_SOURCEFORGE:=fldigi/}
 
-COMPILER =	base-clang ports-gcc base-gcc
+COMPILER =	base-clang ports-gcc
 
-CXXFLAGS_base-clang =	-std=gnu++0x
+CXXFLAGS =	-std=gnu++0x
 
 RUN_DEPENDS=	devel/desktop-file-utils
 BUILD_DEPENDS=	textproc/asciidoc
Index: devel/commoncpp/Makefile
===================================================================
RCS file: /cvs/ports/devel/commoncpp/Makefile,v
diff -u -p -r1.25 Makefile
--- devel/commoncpp/Makefile	15 Nov 2023 14:09:01 -0000	1.25
+++ devel/commoncpp/Makefile	2 Dec 2025 13:49:06 -0000
@@ -17,9 +17,9 @@ PERMIT_PACKAGE=	Yes
 
 WANTLIB=	crypto ssl z m ${COMPILER_LIBCXX} pthread
 
-COMPILER =		base-clang ports-gcc base-gcc
+COMPILER =		base-clang ports-gcc
 
-CXXFLAGS_base-clang=	-std=c++98
+CXXFLAGS =	-std=c++98
 
 CONFIGURE_STYLE= autoconf
 AUTOCONF_VERSION= 2.61
Index: devel/yder/Makefile
===================================================================
RCS file: /cvs/ports/devel/yder/Makefile,v
diff -u -p -r1.4 Makefile
--- devel/yder/Makefile	8 Aug 2024 13:10:13 -0000	1.4
+++ devel/yder/Makefile	3 Dec 2025 13:53:01 -0000
@@ -15,6 +15,10 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB +=	orcania
 
+# workaround -Werror issues with base-gcc
+COMPILER =		base-clang ports-gcc
+COMPILER_LANGS =	c
+
 MODULES =		devel/cmake
 
 LIB_DEPENDS +=		devel/orcania>=2.3.3
Index: graphics/decker/Makefile
===================================================================
RCS file: /cvs/ports/graphics/decker/Makefile,v
diff -u -p -r1.12 Makefile
--- graphics/decker/Makefile	2 Jun 2025 09:14:27 -0000	1.12
+++ graphics/decker/Makefile	2 Dec 2025 12:20:31 -0000
@@ -13,6 +13,10 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB +=		SDL2 SDL2_image c m
 
+# needs -Wpedantic and other -W flags
+COMPILER =		base-clang ports-gcc
+COMPILER_LANGS =	c
+
 USE_GMAKE =		Yes
 
 BUILD_DEPENDS =		editors/vim \
Index: graphics/freeimage/Makefile
===================================================================
RCS file: /cvs/ports/graphics/freeimage/Makefile,v
diff -u -p -r1.24 Makefile
--- graphics/freeimage/Makefile	15 Nov 2023 17:25:51 -0000	1.24
+++ graphics/freeimage/Makefile	1 Dec 2025 16:21:45 -0000
@@ -14,9 +14,9 @@ PERMIT_PACKAGE=	Yes
 
 WANTLIB=		${COMPILER_LIBCXX} m
 
-COMPILER =		base-clang ports-gcc base-gcc
+COMPILER =		base-clang ports-gcc
 
-CXXFLAGS_base-clang =	-std=c++14
+CXXFLAGS =		-std=c++14
 
 SITES=			${SITE_SOURCEFORGE:=freeimage/}
 EXTRACT_SUFX=		.zip
Index: graphics/gphoto2/Makefile
===================================================================
RCS file: /cvs/ports/graphics/gphoto2/Makefile,v
diff -u -p -r1.49 Makefile
--- graphics/gphoto2/Makefile	12 Aug 2025 06:55:47 -0000	1.49
+++ graphics/gphoto2/Makefile	1 Dec 2025 13:42:32 -0000
@@ -16,6 +16,10 @@ PERMIT_PACKAGE=		Yes
 WANTLIB += X11 aa c curses exif gphoto2 gphoto2_port iconv intl
 WANTLIB += jpeg ltdl m popt pthread readline xcb
 
+# needs -Wimplicit-int, etc.
+COMPILER=		base-clang ports-gcc
+COMPILER_LANGS=		c
+
 SITES=			${SITE_SOURCEFORGE:=gphoto/}
 
 LIB_DEPENDS=		devel/popt \
Index: graphics/libsixel/Makefile
===================================================================
RCS file: /cvs/ports/graphics/libsixel/Makefile,v
diff -u -p -r1.13 Makefile
--- graphics/libsixel/Makefile	15 Sep 2025 11:02:01 -0000	1.13
+++ graphics/libsixel/Makefile	2 Dec 2025 10:54:58 -0000
@@ -12,6 +12,10 @@ HOMEPAGE =	https://github.com/saitoha/li
 # MIT
 PERMIT_PACKAGE =	Yes
 
+# needs thread local storage
+COMPILER =	base-clang ports-gcc
+COMPILER_LANGS=	c
+
 WANTLIB +=	c jpeg m png z
 
 SITES =		https://github.com/saitoha/libsixel/releases/download/v$V/
Index: graphics/lsys/Makefile
===================================================================
RCS file: /cvs/ports/graphics/lsys/Makefile,v
diff -u -p -r1.11 Makefile
--- graphics/lsys/Makefile	15 Nov 2023 17:31:36 -0000	1.11
+++ graphics/lsys/Makefile	1 Dec 2025 19:59:15 -0000
@@ -14,9 +14,9 @@ SITES=		http://crappydiffs.org/
 
 WANTLIB += GL GLU X11 Xext c m pthread ${COMPILER_LIBCXX}
 
-COMPILER =		base-clang ports-gcc base-gcc
+COMPILER =		base-clang ports-gcc
 
-CXXFLAGS_base-clang =	-std=c++14
+CXXFLAGS =		-std=c++14
 
 CONFIGURE_STYLE=	gnu
 CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
Index: graphics/ruby-rmagick/Makefile
===================================================================
RCS file: /cvs/ports/graphics/ruby-rmagick/Makefile,v
diff -u -p -r1.41 Makefile
--- graphics/ruby-rmagick/Makefile	31 Aug 2024 04:27:32 -0000	1.41
+++ graphics/ruby-rmagick/Makefile	2 Dec 2025 12:23:50 -0000
@@ -9,6 +9,9 @@ HOMEPAGE =	https://github.com/rmagick/rm
 # MIT
 PERMIT_PACKAGE = Yes
 
+# needs -std=c++11
+COMPILER =	base-clang ports-gcc
+
 MODULES =	lang/ruby
 
 WANTLIB += MagickCore-6.Q16 MagickWand-6.Q16
Index: java/jlint/Makefile
===================================================================
RCS file: /cvs/ports/java/jlint/Makefile,v
diff -u -p -r1.24 Makefile
--- java/jlint/Makefile	28 Dec 2023 16:41:33 -0000	1.24
+++ java/jlint/Makefile	1 Dec 2025 20:01:14 -0000
@@ -10,8 +10,8 @@ HOMEPAGE=	https://jlint.sourceforge.net/
 PERMIT_PACKAGE=	Yes
 WANTLIB=		c z m ${COMPILER_LIBCXX}
 
-COMPILER =		base-clang ports-gcc base-gcc
-CXXFLAGS_base-clang =	-std=c++14
+COMPILER =	base-clang ports-gcc
+CXXFLAGS =	-std=c++14
 
 SITES=		${SITE_SOURCEFORGE:=jlint/}
 
Index: misc/open62541/Makefile
===================================================================
RCS file: /cvs/ports/misc/open62541/Makefile,v
diff -u -p -r1.34 Makefile
--- misc/open62541/Makefile	21 Apr 2025 10:23:45 -0000	1.34
+++ misc/open62541/Makefile	2 Dec 2025 10:34:58 -0000
@@ -18,6 +18,10 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB =		c crypto m pthread ssl tls
 
+# needs -Wno-static-in-inline
+COMPILER =		base-clang ports-gcc
+COMPILER_LANGS =	c
+
 SITES =			https://github.com/open62541/open62541/
 SITES.ua =		https://github.com/OPCFoundation/UA-Nodeset/archive/
 DISTFILES =		open62541-{archive/refs/tags/v}${VERSION}.tar.gz
Index: multimedia/pipewire/pipewire/Makefile
===================================================================
RCS file: /cvs/ports/multimedia/pipewire/pipewire/Makefile,v
diff -u -p -r1.52 Makefile
--- multimedia/pipewire/pipewire/Makefile	17 Oct 2025 06:29:19 -0000	1.52
+++ multimedia/pipewire/pipewire/Makefile	30 Nov 2025 06:20:23 -0000
@@ -16,6 +16,10 @@ WANTLIB-main += m opus pipewire-0.3 pthr
 
 WANTLIB-libs += intl pthread
 
+# needs -std=c++17 (during configure)
+COMPILER=		base-clang ports-gcc
+COMPILER_LANGS=		c c++
+
 MODULES=		devel/meson \
 			lang/python
 
Index: net/libupnp/Makefile
===================================================================
RCS file: /cvs/ports/net/libupnp/Makefile,v
diff -u -p -r1.17 Makefile
--- net/libupnp/Makefile	17 Aug 2025 13:06:07 -0000	1.17
+++ net/libupnp/Makefile	19 Nov 2025 07:40:01 -0000
@@ -16,6 +16,9 @@ EXTRACT_SUFX=	.tar.bz2
 # BSD
 PERMIT_PACKAGE=	Yes
 
+# -std=c++14
+COMPILER=	base-clang ports-gcc
+
 WANTLIB += c pthread
 
 MODULES =	devel/cmake
Index: net/ruby-grpc/Makefile
===================================================================
RCS file: /cvs/ports/net/ruby-grpc/Makefile,v
diff -u -p -r1.5 Makefile
--- net/ruby-grpc/Makefile	2 Oct 2025 11:44:16 -0000	1.5
+++ net/ruby-grpc/Makefile	24 Nov 2025 14:48:21 -0000
@@ -10,6 +10,10 @@ MAINTAINER =	Rafael Sadowski <rsadowski@
 # Apache2
 PERMIT_PACKAGE =	Yes
 
+# needs c++ and modern c
+COMPILER =		base-clang ports-gcc
+COMPILER_LANGS =	c c++
+
 MODULES =		lang/ruby
 
 WANTLIB += ${COMPILER_LIBCXX} grpc
Index: security/pdfcrack/Makefile
===================================================================
RCS file: /cvs/ports/security/pdfcrack/Makefile,v
diff -u -p -r1.16 Makefile
--- security/pdfcrack/Makefile	19 Sep 2025 04:54:57 -0000	1.16
+++ security/pdfcrack/Makefile	3 Dec 2025 13:58:06 -0000
@@ -12,6 +12,10 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB =		c
 
+# needs support for omitted parameter names
+COMPILER =		base-clang ports-gcc
+COMPILER_LANGS =	c
+
 SITES =			${SITE_SOURCEFORGE:=pdfcrack/}
 
 MAKE_FLAGS =		CFLAGS="${CFLAGS}" CC="${CC}"
Index: telephony/baresip/restund/Makefile
===================================================================
RCS file: /cvs/ports/telephony/baresip/restund/Makefile,v
diff -u -p -r1.14 Makefile
--- telephony/baresip/restund/Makefile	1 Feb 2025 09:05:52 -0000	1.14
+++ telephony/baresip/restund/Makefile	1 Dec 2025 19:38:22 -0000
@@ -7,6 +7,9 @@ WANTLIB =		c crypto m mariadb pthread re
 LIB_DEPENDS =		telephony/baresip/re \
 			databases/mariadb,-main
 
+# for configure
+COMPILER_LANGS =	c c++
+
 post-install:
 	mv ${PREFIX}/etc ${PREFIX}/share/examples/restund/
 
Index: textproc/redland-bindings/Makefile
===================================================================
RCS file: /cvs/ports/textproc/redland-bindings/Makefile,v
diff -u -p -r1.33 Makefile
--- textproc/redland-bindings/Makefile	28 Jun 2025 00:36:32 -0000	1.33
+++ textproc/redland-bindings/Makefile	30 Nov 2025 06:23:45 -0000
@@ -19,6 +19,10 @@ PERMIT_PACKAGE=	Yes
 WANTLIB += rdf
 WANTLIB-main = ${WANTLIB} c perl # uses perl ABI
 
+# needs stdalign.h C11
+COMPILER=		base-clang ports-gcc
+COMPILER_LANGS=		c
+
 # -main is the Perl binding
 MULTI_PACKAGES=		-main -ruby
 
Index: textproc/simpleini/Makefile
===================================================================
RCS file: /cvs/ports/textproc/simpleini/Makefile,v
diff -u -p -r1.4 Makefile
--- textproc/simpleini/Makefile	14 Nov 2025 07:59:57 -0000	1.4
+++ textproc/simpleini/Makefile	2 Dec 2025 09:47:58 -0000
@@ -9,6 +9,9 @@ GH_TAGNAME=	v4.25
 # MIT
 PERMIT_PACKAGE=	Yes
 
+# needs -std=c++14
+COMPILER=	base-clang ports-gcc
+
 MODULES=	devel/cmake
 
 # otherwise it uses cmake DOWNLOAD
Index: www/dufs/Makefile
===================================================================
RCS file: /cvs/ports/www/dufs/Makefile,v
diff -u -p -r1.1.1.1 Makefile
--- www/dufs/Makefile	11 Nov 2025 09:48:04 -0000	1.1.1.1
+++ www/dufs/Makefile	2 Dec 2025 09:44:24 -0000
@@ -12,6 +12,10 @@ HOMEPAGE =	https://github.com/sigoden/du
 # Apache/2.0 and MIT
 PERMIT_PACKAGE =	Yes
 
+# -std=c1x
+COMPILER =	base-clang ports-gcc
+COMPILER_LANGS=	c
+
 MODULES =	devel/cargo
 
 SEPARATE_BUILD =	Yes
Index: www/ulfius/Makefile
===================================================================
RCS file: /cvs/ports/www/ulfius/Makefile,v
diff -u -p -r1.7 Makefile
--- www/ulfius/Makefile	28 Sep 2025 12:10:15 -0000	1.7
+++ www/ulfius/Makefile	3 Dec 2025 14:02:27 -0000
@@ -18,6 +18,10 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB +=	c curl gnutls jansson microhttpd orcania pthread yder z
 
+# workaround -Werror issues with base-gcc
+COMPILER =	base-clang ports-gcc
+COMPILER_LANGS=	c
+
 MODULES =	devel/cmake
 
 LIB_DEPENDS +=	devel/jansson \