From: Theo Buehler 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 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