On Tue Oct 20, 2026 at 02:39:26PM +0200, Kirill A. Korinsky wrote:
> ports@,
>
> I think GCC49_ARCHS is very misslead and using PORTSGCC_ARCHS instead makes
> sense.
>
> Thoughts?
I like it, ok rsadowski! sthen@ also recommenced this name in an old diff
from me.
>
> Index: src/share/man/man5/bsd.port.arch.mk.5
> ===================================================================
> RCS file: /home/cvs/src/share/man/man5/bsd.port.arch.mk.5,v
> diff -u -p -r1.16 bsd.port.arch.mk.5
> --- src/share/man/man5/bsd.port.arch.mk.5 22 Jun 2026 17:14:35 -0000
> 1.16
> +++ src/share/man/man5/bsd.port.arch.mk.5 19 Oct 2026 19:02:13 -0000
> @@ -87,7 +87,6 @@ It will set up the following variables f
> .It Ev CXX11_ARCHS
> .It Ev DEBUGINFO_ARCHS
> .It Ev GCC4_ARCHS
> -.It Ev GCC49_ARCHS
> .It Ev GO_ARCHS
> .It Ev LE_ARCHS
> .It Ev LIBCXX
> @@ -99,6 +98,7 @@ It will set up the following variables f
> .It Ev MONO_ARCHS
> .It Ev OCAML_NATIVE_ARCHS
> .It Ev OCAML_NATIVE_DYNLINK_ARCHS
> +.It Ev PORTSGCC_ARCHS
> .It Ev PROPERTIES
> .It Ev RUST_ARCHS
> .It Ev IGNORE-<sub>
> Index: src/share/man/man5/bsd.port.mk.5
> ===================================================================
> RCS file: /home/cvs/src/share/man/man5/bsd.port.mk.5,v
> diff -u -p -r1.656 bsd.port.mk.5
> --- src/share/man/man5/bsd.port.mk.5 14 Sep 2026 00:17:01 -0000 1.656
> +++ src/share/man/man5/bsd.port.mk.5 19 Oct 2026 19:01:30 -0000
> @@ -1473,7 +1473,7 @@ in effect,
> and
> .Ev MODCLANG_ARCHS
> default to
> -.Sq ${GCC49_ARCHS}
> +.Sq ${PORTSGCC_ARCHS}
> and
> .Sq ${LLVM_ARCHS}
> respectively.
> Index: ports/infrastructure/mk/arch-defines.mk
> ===================================================================
> RCS file: /home/cvs/ports/infrastructure/mk/arch-defines.mk,v
> diff -u -p -r1.120 arch-defines.mk
> --- ports/infrastructure/mk/arch-defines.mk 23 Sep 2026 13:45:41 -0000
> 1.120
> +++ ports/infrastructure/mk/arch-defines.mk 19 Oct 2026 19:05:36 -0000
> @@ -40,10 +40,10 @@ LLD_ARCHS = aarch64 amd64 arm i386 power
> # as well as available for PROPERTIES checks.
> LLVM_ARCHS = aarch64 amd64 arm i386 mips64 mips64el powerpc powerpc64
> riscv64 sparc64
> # arches where ports-gcc >4.9 exists. To be used again for modules
> -GCC49_ARCHS = aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc
> powerpc64 riscv64 sparc64
> +PORTSGCC_ARCHS = aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc
> powerpc64 riscv64 sparc64
>
> # arches where there is a C++11 compiler, either clang in base or ports-gcc
> -CXX11_ARCHS = ${CLANG_ARCHS} ${GCC49_ARCHS}
> +CXX11_ARCHS = ${CLANG_ARCHS} ${PORTSGCC_ARCHS}
> DEBUGINFO_ARCHS = aarch64 amd64
>
> .for PROP in ALL APM BE LE LP64 CLANG GCC4 GCC49 MONO LLVM LUAJIT \
> Index: ports/infrastructure/mk/compiler.port.mk
> ===================================================================
> RCS file: /home/cvs/ports/infrastructure/mk/compiler.port.mk,v
> diff -u -p -r1.6 compiler.port.mk
> --- ports/infrastructure/mk/compiler.port.mk 24 Oct 2025 14:25:34 -0000
> 1.6
> +++ ports/infrastructure/mk/compiler.port.mk 19 Oct 2026 19:05:36 -0000
> @@ -36,7 +36,7 @@ _COMPILER_ARCHS += ${CLANG_ARCHS}
> CHOSEN_COMPILER ?= base-clang
> . endif
> . elif "$c" == "ports-gcc"
> -MODGCC4_ARCHS ?= ${GCC49_ARCHS}
> +MODGCC4_ARCHS ?= ${PORTSGCC_ARCHS}
> _MODGCC4_ARCH_USES = No
> _COMPILER_ARCHS += ${MODGCC4_ARCHS}
> . for _i in ${MODGCC4_ARCHS}
> Index: ports/lang/gcc/16/Makefile
> ===================================================================
> RCS file: /home/cvs/ports/lang/gcc/16/Makefile,v
> diff -u -p -r1.30 Makefile
> --- ports/lang/gcc/16/Makefile 19 Oct 2026 16:48:06 -0000 1.30
> +++ ports/lang/gcc/16/Makefile 19 Oct 2026 19:07:56 -0000
> @@ -1,6 +1,6 @@
> # When updating/switching to a new version, remember to adapt: devel/meson
>
> -ONLY_FOR_ARCHS = ${GCC49_ARCHS}
> +ONLY_FOR_ARCHS = ${PORTSGCC_ARCHS}
>
> ONLY_FOR_ARCHS-ada = amd64 mips64 i386 powerpc
> ONLY_FOR_ARCHS-dlang = aarch64 amd64 arm i386 mips64 powerpc powerpc64 \
> Index: ports/lang/gcc/16/gcc4.port.mk
> ===================================================================
> RCS file: /home/cvs/ports/lang/gcc/16/gcc4.port.mk,v
> diff -u -p -r1.2 gcc4.port.mk
> --- ports/lang/gcc/16/gcc4.port.mk 25 Sep 2026 20:20:11 -0000 1.2
> +++ ports/lang/gcc/16/gcc4.port.mk 19 Oct 2026 19:05:36 -0000
> @@ -1,4 +1,4 @@
> -MODGCC4_ARCHS ?= ${GCC49_ARCHS}
> +MODGCC4_ARCHS ?= ${PORTSGCC_ARCHS}
> MODGCC4_LANGS ?=
>
>
> Index: ports/math/hdf5/Makefile
> ===================================================================
> RCS file: /home/cvs/ports/math/hdf5/Makefile,v
> diff -u -p -r1.32 Makefile
> --- ports/math/hdf5/Makefile 13 Sep 2026 07:37:14 -0000 1.32
> +++ ports/math/hdf5/Makefile 19 Oct 2026 19:05:36 -0000
> @@ -1,4 +1,4 @@
> -ONLY_FOR_ARCHS = ${GCC49_ARCHS}
> +ONLY_FOR_ARCHS = ${PORTSGCC_ARCHS}
>
> COMMENT = Hierarchical Data Format 5 Technology suite
>
> Index: ports/telephony/asterisk/Makefile.inc
> ===================================================================
> RCS file: /home/cvs/ports/telephony/asterisk/Makefile.inc,v
> diff -u -p -r1.29 Makefile.inc
> --- ports/telephony/asterisk/Makefile.inc 22 Sep 2026 08:28:48 -0000
> 1.29
> +++ ports/telephony/asterisk/Makefile.inc 19 Oct 2026 19:05:36 -0000
> @@ -40,7 +40,7 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
> COMPILER= base-clang ports-gcc
> # XXX bsd.port.arch.mk is included below, before compiler.port.mk can set
> # ONLY_FOR_ARCHS
> -ONLY_FOR_ARCHS= ${CLANG_ARCHS} ${GCC49_ARCHS}
> +ONLY_FOR_ARCHS= ${CLANG_ARCHS} ${PORTSGCC_ARCHS}
>
> SHARED_LIBS+= asteriskssl ${SHLIB_V}
> SHARED_LIBS+= asteriskpj ${SHLIB_V}
>
>
> --
> wbr, Kirill
>