Skip to content

Commit

Permalink
*/*: Sunset 12.3-RELEASE from ports tree
Browse files Browse the repository at this point in the history
- Mk/bsd.port.mk: mark FreeBSD 12.3 as unsupported.
- Mk/Uses/cabal.mk: Remove the text-2 workaround for 12.3-RELEASE
- biology/wfa2-lib: remove obsolete patch
- databases/mongodb60: remove IGNORE for EOL FreeBSD 12.3
- devel/concurrencpp: remove workaround for EOL FreeBSD 12.3
- devel/electron22: remove IGNORE for EOL FreeBSD 12.3
- devel/malloy: this should build fine on 12.4-RELEASE
- devel/qcoro: remove BROKEN for EOL FreeBSD 12.3
- devel/root: remove workaround for EOL FreeBSD 12.3
- editors/imhex: remove IGNORE for EOL FreeBSD 12.3
- emulators/ppsspp: remove workaround for EOL FreeBSD 12.3
- emulators/rpcs3: remove workaround for EOL FreeBSD 12.3
- emulators/yuzu: remove workaround for EOL 12.3-RELEASE
- games/aquaria: remove support for EOL FreeBSD 12.3
- games/punchy: remove workaround for EOL FreeBSD 12.3
- graphics/cxxplot: remove support for EOL FreeBSD 12.3
- lang/gcc11*: bump a __FreeBSD_version in libphobos to 1204000
- lang/rust: untangle OSVERSION logic a bit
- misc/mbuffer: remove workaround for EOL FreeBSD 12.3 for aarch64
- sysutils/libdisplay-info: remove workaround for EOL FreeBSD 12.3
- www/*chromium: remove IGNORE for EOL FreeBSD 12.3
- x11/hyprpaper: remove workaround for expired FreeBSD 12.3
- x11-wm/labwc: remove workaround for EOL FreeBSD 12.3
- x11-wm/kwinft: remove workaround for EOL FreeBSD 12.3
- www/iridium: remove IGNORE for EOL FreeBSD 12.3

Differential Revision: https://reviews.freebsd.org/D38664
  • Loading branch information
5u623l20 committed Mar 30, 2023
1 parent 450bb37 commit 5693229
Show file tree
Hide file tree
Showing 30 changed files with 14 additions and 258 deletions.
3 changes: 1 addition & 2 deletions Mk/Uses/cabal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ IGNORE= CABAL_PROJECT: invalid value: ${CABAL_PROJECT}
BROKEN= ${USE_CABAL:Mbasement-0.0.1[4-5]} package doesn't compile on i386
. endif

. if ((${OSVERSION} >= 1301000 && ${OSVERSION} < 1302000) \
|| ${OSVERSION} < 1204000) && defined(USE_CABAL) && ${USE_CABAL:Mtext-2.*}
. if ${OSVERSION} >= 1301000 && ${OSVERSION} < 1302000 && defined(USE_CABAL) && ${USE_CABAL:Mtext-2.*}
# Band-aids for a Clang bug that is shipped with FreeBSD 13.1
BUILD_DEPENDS+= clang15:devel/llvm15
BUILD_ARGS+= --ghc-options='-pgmc clang++15'
Expand Down
6 changes: 3 additions & 3 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# makefile is being used on. Automatically set to
# "FreeBSD," "NetBSD," or "OpenBSD" as appropriate.
# OSREL - The release version of the operating system as a text
# string (e.g., "12.3").
# string (e.g., "12.4").
# OSVERSION - The operating system version as a comparable integer;
# the value of __FreeBSD_version (e.g., 1203000).
# the value of __FreeBSD_version (e.g., 1204000).
#
# This is the beginning of the list of all variables that need to be
# defined in a port, listed in order that they should be included
Expand Down Expand Up @@ -1180,7 +1180,7 @@ OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC
. endif
_EXPORTED_VARS+= OSVERSION

. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1203000 || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1301000))
. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1204000 || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1301000))
_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)
Expand Down
10 changes: 0 additions & 10 deletions biology/wfa2-lib/files/patch-system_profiler__timer.h

This file was deleted.

4 changes: 0 additions & 4 deletions databases/mongodb60/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ SSL_MAKE_ARGS= --ssl

.include <bsd.port.pre.mk>

.if ${OSREL} == "12.3"
IGNORE= does not compile on 12.3, libc++ too old
.endif

ALL_TARGET= install-core

# This ports is only following the Major Release.
Expand Down
5 changes: 0 additions & 5 deletions devel/concurrencpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ WWW= https://github.com/David-Haim/concurrencpp
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
.if exists(/usr/include/c++/v1) && !exists(/usr/include/c++/v1/semaphore)
BROKEN_FreeBSD_12= fatal error: 'semaphore' file not found (missing C++ include <semaphore>)
.endif

USES= cmake compiler:c++20-lang

USE_GITHUB= yes
Expand Down
6 changes: 1 addition & 5 deletions devel/electron22/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ MANTLE_VER= 78d3966b3c331292ea29ec38661b25df0a245948
YARN_TIMESTAMP= 1679622751

.include "Makefile.version"
.include <bsd.port.pre.mk>

.if ${OSREL} == "12.3"
IGNORE= does not compile, libc++ too old
.endif
.include <bsd.port.pre.mk> # required for COMPILER_VERSION

.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
Expand Down
3 changes: 0 additions & 3 deletions devel/malloy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ WWW= https://github.com/tectu/malloy
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/license.txt

BROKEN_FreeBSD_12= some C++20 STL headers are missing on 12.3,\
see https://bugs.freebsd.org/255374

BUILD_DEPENDS= boost-libs>1.74.0:devel/boost-libs
LIB_DEPENDS= libfmt.so:devel/libfmt \
libspdlog.so:devel/spdlog
Expand Down
5 changes: 0 additions & 5 deletions devel/qcoro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,4 @@ CMAKE_ARGS= -DUSE_QT_VERSION=${FLAVOR:S/qt//}

PLIST_SUB= QT_VER=${FLAVOR:S/qt//}

# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
.if exists(/usr/include/c++/v1) && !exists(/usr/include/c++/v1/concepts)
BROKEN_FreeBSD_12= requires recent C++ compiler
.endif

.include <bsd.port.mk>
13 changes: 1 addition & 12 deletions devel/root/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,4 @@ PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13=""
PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13="@comment "
.endif

.include <bsd.port.pre.mk>

# In LLVM/Clang 10.0.1 (used on FreeBSD 12.3), the cstdalign header is missing from the std modulemap, but it is declared included in ROOT's std modulemap - this has to be removed.
# See https://github.com/llvm/llvm-project/blob/main/libcxx/include/module.modulemap.in#L181
# The same seems to be the case for the other headers defined in the variable "modules" below.
.if ${OSVERSION} < 1204000
modules= cstdalign cuchar "ext\/functional" "ext\/numeric" "bits\/allocator.h" "bits\/basic_ios.h" "bits\/cpp_type_traits.h" "bits\/exception_defines.h" "bits\/ios_base.h" "bits\/locale_facets.h" "bits\/stl_algobase.h" "bits\/stl_map.h" "bits\/stl_pair.h" bits_stl_tree_h
post-patch:
MODULEMAP=${WRKSRC}/interpreter/cling/include/cling/std.modulemap ${SH} ${SCRIPTDIR}/remove-modules-from-modulemap.sh ${modules}
.endif

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 1 addition & 11 deletions editors/imhex/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ PORTDOCS= README.md
OPTIONS_DEFINE= DOCS NLS
NLS_USES= gettext

.include <bsd.port.pre.mk>

OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}

# Before LLVM13 import to the base system
.if (${OSMAJOR} == 12 && ${OSVERSION} < 1203505) \
|| (${OSMAJOR} == 14 && ${OSVERSION} < 1400042)
IGNORE= will not build due to C++20 API functions unavailable in old libc++
.endif

post-extract:
${CP} ${DISTDIR}/${DIST_SUBDIR}/xdg.hpp ${WRKSRC}/lib/external/xdgpp
${CP} -R ${WRKSRC_capstone}/* ${WRKSRC}/lib/external/capstone
Expand All @@ -103,4 +93,4 @@ post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
6 changes: 0 additions & 6 deletions emulators/ppsspp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ post-patch:
${WRKSRC}/UI/NativeApp.cpp
@${REINPLACE_CMD} -e 's/"unknown"/"${DISTVERSIONFULL}"/' \
${WRKSRC}/git-version.cmake
# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
# https://cgit.freebsd.org/src/commit/?id=773538247007
@if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1203501 ]; then \
${REINPLACE_CMD} -e '/if.*__STDC_/,/XXH/s/static_assert/_Static_assert/' \
${WRKSRC}/ext/xxhash.h; \
fi

do-install-QT5-on do-install-SDL-on:
${MV} ${STAGEDIR}${PREFIX}/bin/${EXENAME} \
Expand Down
20 changes: 0 additions & 20 deletions emulators/rpcs3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,4 @@ CXX= clang++${LLVM_VERSION}
CPP= clang-cpp${LLVM_VERSION}
.endif

# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31 (don't forget distinfo)
.if !exists(/usr/include/c++/v1/concepts) || make(makesum) || make(fetch)
USES+= llvm:13,build
CC= clang${LLVM_VERSION}
CXX= clang++${LLVM_VERSION}
CPP= clang-cpp${LLVM_VERSION}

# XXX Move into separate port and standardize via USES
GH_TUPLE+= llvm:llvm-project:llvmorg-13.0.1:libcxx
CXXFLAGS+= -nostdinc++ -isystem${WRKDIR}/libcxx_prefix/include/c++/v1
LDFLAGS+= -nostdlib++ -L${WRKDIR}/libcxx_prefix/lib -l:libc++.a -lcxxrt

pre-configure: bundled-libcxx
bundled-libcxx:
@${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS:M*Ninja*} \
-DCMAKE_INSTALL_PREFIX:PATH=${WRKDIR}/libcxx_prefix \
-B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
@${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build
.endif

.include <bsd.port.mk>
4 changes: 0 additions & 4 deletions emulators/yuzu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ LICENSE_FILE_MIT= ${WRKSRC}/externals/sirit/externals/SPIRV-Headers/LICENSE

ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= requires int128 and dynarmic backend
# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
.if !exists(/usr/include/c++/v1/concepts)
BROKEN_FreeBSD_12= base libc++ is too old
.endif

BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
nlohmann-json>0:devel/nlohmann-json \
Expand Down
5 changes: 0 additions & 5 deletions games/aquaria/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ SUB_FILES= pkg-message
PLIST_FILES= bin/aquaria
PORTDATA= *

# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
.if !exists(/usr/include/c++/v1/concepts)
LDFLAGS_i386:= ${LDFLAGS_i386:N*no-check-dynamic-relocations*}
.endif

DESKTOP_ENTRIES="${GH_PROJECT}" \
"" \
"${DATADIR}/${PORTNAME}.png" \
Expand Down
6 changes: 0 additions & 6 deletions games/punchy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ post-patch:
# Search assets under PREFIX instead of current directory
@${REINPLACE_CMD} 's,assets",../${DATADIR_REL}/&,' \
${WRKSRC}/cargo-crates/bevy_asset-*/src/lib.rs
# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
# https://cgit.freebsd.org/src/commit/?id=98a049f22ef3
.if !exists(/usr/bin/llvm-readelf)
@${REINPLACE_CMD} '/readelf/s/llvm-//' \
${WRKSRC}/cargo-crates/v8-*/build/toolchain/gcc_toolchain.gni
.endif

post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} "assets" ${STAGEDIR}${DATADIR})
Expand Down
5 changes: 0 additions & 5 deletions graphics/cxxplot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ WWW= https://github.com/USNavalResearchLaboratory/cxxplot
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/license.txt

# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
.if exists(/usr/include/c++/v1) && !exists(/usr/include/c++/v1/concepts)
BROKEN_FreeBSD_12= build error: 'concepts' file not found
.endif

USES= cmake:testing compiler:c++20-lang gl qt:6
USE_QT= base tools:build
USE_GL= gl opengl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-else version (FreeBSD_12) enum __FreeBSD_version = 1202000;
+ version (FreeBSD_14) enum __FreeBSD_version = 1400000;
+else version (FreeBSD_13) enum __FreeBSD_version = 1301000;
+else version (FreeBSD_12) enum __FreeBSD_version = 1203000;
+else version (FreeBSD_12) enum __FreeBSD_version = 1204000;
else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
else version (FreeBSD_9) enum __FreeBSD_version = 903000;
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-else version (FreeBSD_12) enum __FreeBSD_version = 1202000;
+ version (FreeBSD_14) enum __FreeBSD_version = 1400000;
+else version (FreeBSD_13) enum __FreeBSD_version = 1301000;
+else version (FreeBSD_12) enum __FreeBSD_version = 1203000;
+else version (FreeBSD_12) enum __FreeBSD_version = 1204000;
else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
else version (FreeBSD_9) enum __FreeBSD_version = 903000;
4 changes: 1 addition & 3 deletions lang/rust/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ _COMPONENTS+= rustc-dev-${_PACKAGE_VERS}-${_RUST_TARGET}
# anyway...
.if exists(${PATCHDIR}/no-hardlinks)
_KERN_OSRELDATE!= ${SYSCTL} -n kern.osreldate 2>/dev/null || echo 0
. if ${_KERN_OSRELDATE} >= 1400040
. elif ${_KERN_OSRELDATE} >= 1300521
. else
. if ${_KERN_OSRELDATE} < 1300521
EXTRA_PATCHES+= ${PATCHDIR}/no-hardlinks
. endif
.endif
Expand Down
8 changes: 1 addition & 7 deletions misc/mbuffer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ GCRYPT_RUN_DEPENDS= libgcrypt>=1.8.4_1:security/libgcrypt
MHASH_RUN_DEPENDS= mhash>=0.9.9.9_5:security/mhash
RHASH_RUN_DEPENDS= rhash>=1.3.5:security/rhash

.include <bsd.port.pre.mk>

.if ${ARCH} == aarch64 && ${OSVERSION} < 1300000
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-12.3
.endif

post-patch:
${REINPLACE_CMD} \
-e 's@bash@sh@' ${WRKSRC}/Makefile.in
Expand All @@ -46,4 +40,4 @@ post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/mbuffer.rc \
${STAGEDIR}${PREFIX}/etc/mbuffer.rc.sample

.include <bsd.port.post.mk>
.include <bsd.port.mk>
61 changes: 0 additions & 61 deletions misc/mbuffer/files/extra-patch-12.3

This file was deleted.

8 changes: 0 additions & 8 deletions sysutils/libdisplay-info/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ GL_ACCOUNT= emersion
GL_COMMIT= 92b031749c0fe84ef5cdf895067b84a829920e25
SHEBANG_FILES= tool/*.py

post-patch:
# XXX Drop after FreeBSD 12.3 EOL around 2023-03-31
# https://cgit.freebsd.org/src/commit/?id=773538247007
@if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1203501 ]; then \
${REINPLACE_CMD} -e 's/static_assert/_Static_assert/' \
${WRKSRC}/edid.c; \
fi

pre-test:
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
Expand Down
6 changes: 1 addition & 5 deletions www/chromium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,7 @@ TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} \
TEST_ALL_TARGET= ${TEST_TARGETS}

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${OSREL} == "12.3"
IGNORE= does not compile, libc++ too old
.endif
.include <bsd.port.pre.mk> # for COMPILER_VERSION

.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
Expand Down
6 changes: 1 addition & 5 deletions www/iridium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,7 @@ SNDIO_VARS= GN_ARGS+=use_sndio=true
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${OSREL} == "12.3"
IGNORE= does not compile, libc++ too old
.endif
.include <bsd.port.pre.mk> # for COMPILER_VERSION

.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
Expand Down
6 changes: 1 addition & 5 deletions www/ungoogled-chromium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ TEST_DISTFILES= chromium-${DISTVERSION}-testdata${EXTRACT_SUFX} \
TEST_ALL_TARGET= ${TEST_TARGETS}

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${OSREL} == "12.3"
IGNORE= does not compile, libc++ too old
.endif
.include <bsd.port.pre.mk> # for COMPILER_VERSION

.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so)
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
Expand Down
Loading

0 comments on commit 5693229

Please sign in to comment.