git: 2b343c2d3439 - main - all: drop support for EOL FreeBSD 14.1

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Tue, 01 Apr 2025 10:53:47 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b343c2d3439be34fac968ee6aa542323693b88f

commit 2b343c2d3439be34fac968ee6aa542323693b88f
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-02-21 19:15:14 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-04-01 10:51:04 +0000

    all: drop support for EOL FreeBSD 14.1
    
    - Mk/bsd.port.mk: de-support FreeBSD 14.1
    - devel/boost-libs: simplify a comment
    - devel/libdispatch: remove a commented out and outdated code block
    - editors/imhex: simplify some tautologies
    - editors/libreoffice: remove an outdated BROKEN
    - graphics/dspdfviewer: simplify OSVERSION logic
    
    Approved by:    portmgr (implicit)
    Differential Revision: https://reviews.freebsd.org/D49099
---
 Mk/bsd.port.mk                |  2 +-
 devel/boost-libs/Makefile     |  1 -
 devel/libdispatch/Makefile    |  9 ---------
 editors/imhex/Makefile        |  4 +---
 editors/libreoffice/Makefile  |  5 -----
 graphics/dspdfviewer/Makefile | 15 +--------------
 6 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3f1d3b7ff63d..f8a27823e842 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1164,7 +1164,7 @@ OSVERSION!=	${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC
 .    endif
 _EXPORTED_VARS+=	OSVERSION
 
-.    if ${OPSYS} == FreeBSD && (${OSVERSION} < 1304000 || (${OSVERSION} >= 1400000 && ${OSVERSION} < 1401000))
+.    if ${OPSYS} == FreeBSD && (${OSVERSION} < 1304000 || (${OSVERSION} >= 1400000 && ${OSVERSION} < 1402000))
 _UNSUPPORTED_SYSTEM_MESSAGE=	Ports Collection support for your ${OPSYS} version has ended, and no ports\
 								are guaranteed to build on this system. Please upgrade to a supported release.
 .      if defined(ALLOW_UNSUPPORTED_SYSTEM)
diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile
index 50053875eac5..7b82baac19b8 100644
--- a/devel/boost-libs/Makefile
+++ b/devel/boost-libs/Makefile
@@ -17,7 +17,6 @@ BUILD_DEPENDS+=	bjam:devel/boost-jam
 # following conditions are satisfied.
 # * OSVERSION is included in either of following ranges.
 #   1. 1500000 <= OSVERSION < 1500017
-#   2. 1400000 <= OSVERSION < 1400509 (no longer relevant)
 # * Base system is built with WITH_LLVM_ASSERTIONS variable set.
 # So if your base system fulfills them you need to use LLVM ports to
 # build this port.
diff --git a/devel/libdispatch/Makefile b/devel/libdispatch/Makefile
index 9e985699fd3c..d1d1389e1e7a 100644
--- a/devel/libdispatch/Makefile
+++ b/devel/libdispatch/Makefile
@@ -19,15 +19,6 @@ GH_TAGNAME=	swift-${DISTVERSION}-RELEASE
 
 .include <bsd.port.options.mk>
 
-#.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079
-#USES+=	llvm:max=17,build
-#USES:=	${USES:Ncompiler\:*} # XXX avoid warnings
-#CC=	${_LLVM_MK_PREFIX}/bin/clang
-#CPP=	${_LLVM_MK_PREFIX}/bin/clang-cpp
-#CXX=	${_LLVM_MK_PREFIX}/bin/clang++
-#LD?=	${_LLVM_MK_PREFIX}/bin/ld
-#.endif
-
 .if ${OPSYS} == FreeBSD && (${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc)
 CFLAGS+=	-Wno-incompatible-function-pointer-types
 .endif
diff --git a/editors/imhex/Makefile b/editors/imhex/Makefile
index 5327d46c574e..8479169924a2 100644
--- a/editors/imhex/Makefile
+++ b/editors/imhex/Makefile
@@ -116,9 +116,7 @@ IGNORE=	requires libc++ of LLVM 17 on the base system
 .endif
 
 # After LLVM 18 import into the base system
-.if ((${OSREL:R} == 15 && ${OSVERSION} >= 1500018) \
-    || (${OSREL:R} == 14 && ${OSVERSION} >= 1400511) \
-    || (${OSREL:R} == 13 && ${OSVERSION} >= 1303503))
+.if (${OSREL:R} == 15 && ${OSVERSION} >= 1500018)
 CXXFLAGS+=	-fexperimental-library -D_LIBCPP_ENABLE_EXPERIMENTAL
 .endif
 
diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile
index 46fe973fb1ff..e56c095b9484 100644
--- a/editors/libreoffice/Makefile
+++ b/editors/libreoffice/Makefile
@@ -367,11 +367,6 @@ PIE_UNSAFE=	yes
 
 .include <bsd.port.pre.mk>
 
-.if ${OPSYS} == FreeBSD && ( \
-    (${OSVERSION} >= 1400051 && ${OSVERSION} < 1400057))
-BROKEN=	please update FreeBSD base system first to fix an ABI incompatibility
-.endif
-
 .if ${ARCH} == powerpc || ${ARCH} == powerpcspe || ${ARCH} == powerpc64
 CONFIGURE_ARGS+=	--disable-skia
 .endif
diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile
index c0fdb413226b..599411911a2a 100644
--- a/graphics/dspdfviewer/Makefile
+++ b/graphics/dspdfviewer/Makefile
@@ -43,31 +43,18 @@ CFLAGS+=	-Wno-error=undefined-func-template
 .if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
 # (rene) also related to issue #191 which is still open as of 2020-10-21
 CFLAGS+=	-Wno-error=zero-as-null-pointer-constant
-.endif
-
 # Fixes build failure for Clang 8.0.0
-.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=	-Wno-error=extra-semi-stmt
-.endif
-
 # Fixes build failure for Clang 11.0.0
-.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=	-Wno-error=suggest-destructor-override
 CFLAGS+=	-Wno-error=suggest-override
-.endif
-
 # Fixes build failure for Clang 14.0.3
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400059 && ${CHOSEN_COMPILER_TYPE} == clang
+.if ${OSVERSION} >= 1400059
 CFLAGS+=       -Wno-error=bitwise-instead-of-logical
 .endif
-
 # Fixes build failure for Clang 16.0.6
-.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=       -Wno-error=unsafe-buffer-usage
-.endif
-
 # Fixes build failure for Clang 18.1.4
-.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1304000 || ${OSVERSION} >= 1401000 || ${OSVERSION} >= 1500018) && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=       -Wno-error=switch-default
 .endif