Index: MOVED =================================================================== --- MOVED +++ MOVED @@ -16486,3 +16486,4 @@ net-mgmt/zabbix52-java||2021-09-19|Has expired: Unsupported by upstream net-mgmt/zabbix52-proxy||2021-09-19|Has expired: Unsupported by upstream net-mgmt/zabbix52-server||2021-09-19|Has expired: Unsupported by upstream +graphics/drm-fbsd11.2-kmod||2021-09-30|Removed, only useful on EOL FreeBSD 11.4 Index: Mk/Scripts/rust-compat11-canary.sh =================================================================== --- Mk/Scripts/rust-compat11-canary.sh +++ Mk/Scripts/rust-compat11-canary.sh @@ -3,7 +3,7 @@ set -eu set -o pipefail -if [ "${OPSYS}" != FreeBSD ] || [ "${OSVERSION}" -lt 1200000 ]; then +if [ "${OPSYS}" != FreeBSD ] ; then exit 0 fi Index: Mk/Uses/qca.mk =================================================================== --- Mk/Uses/qca.mk +++ Mk/Uses/qca.mk @@ -17,12 +17,7 @@ _QCA_DEFAULT_PORT= devel/qca _QCA_LEGACY_PORT= devel/qca-legacy - -. if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -_QCA_CHOSEN_PORT= LEGACY -. else _QCA_CHOSEN_PORT= DEFAULT -. endif LIB_DEPENDS+= ${_QCA_LIB}:${_QCA_${_QCA_CHOSEN_PORT}_PORT} Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk +++ Mk/bsd.port.mk @@ -1177,7 +1177,7 @@ .endif _EXPORTED_VARS+= OSVERSION -.if (${OPSYS} == FreeBSD && (${OSVERSION} < 1104000 || (${OSVERSION} >= 1200000 && ${OSVERSION} < 1202000))) || \ +.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1202000) || \ (${OPSYS} == DragonFly && ${DFLYVERSION} < 400400) _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. Index: Tools/scripts/tindex =================================================================== --- Tools/scripts/tindex +++ Tools/scripts/tindex @@ -27,7 +27,6 @@ # Location of ports tree and source trees export BASEDIR=/a/tindex export PORTSDIR=${BASEDIR}/ports -export SRCDIR11=${BASEDIR}/src.11 export SRCDIR12=${BASEDIR}/src.12 export SRCDIR13=${BASEDIR}/src.13 export SRCDIR14=${BASEDIR}/src.14 @@ -114,9 +113,6 @@ export INDEX_QUIET=1 # First update the source trees to get current OSVERSION -${SVN} -q up ${SRCDIR11}/sys/sys -OSVERSION11=$(awk '/^#define[[:blank:]]__FreeBSD_version/ {print $3}' < ${SRCDIR11}/sys/sys/param.h) - ${SVN} -q up ${SRCDIR12}/sys/sys OSVERSION12=$(awk '/^#define[[:blank:]]__FreeBSD_version/ {print $3}' < ${SRCDIR12}/sys/sys/param.h) @@ -127,7 +123,7 @@ OSVERSION14=$(awk '/^#define[[:blank:]]__FreeBSD_version/ {print $3}' < ${SRCDIR14}/sys/sys/param.h) cd ${PORTSDIR} -rm -f INDEX-11 INDEX-11.bz2 INDEX-12 INDEX-12.bz2 INDEX-13 INDEX-13.bz2 INDEX-14 INDEX-14.bz2 +rm -f INDEX-12 INDEX-12.bz2 INDEX-13 INDEX-13.bz2 INDEX-14 INDEX-14.bz2 OLD_HEAD=$(${GIT} rev-parse HEAD) if ! ${GIT} pull --ff-only > git.log 2>&1 ; then (echo "Git update failed with conflicts:"; @@ -135,7 +131,7 @@ exit 1 fi -for branch in 11.x 12.x 13.x 14.x; do +for branch in 12.x 13.x 14.x; do release=$(echo $branch | sed -e 's,.x,,') eval _osver=\$OSVERSION${release} Index: archivers/py-zstandard/Makefile =================================================================== --- archivers/py-zstandard/Makefile +++ archivers/py-zstandard/Makefile @@ -9,7 +9,6 @@ LICENSE= BSD2CLAUSE -BROKEN_FreeBSD_11_powerpc64= fails to build: cffi.error.CDefError: parse error BROKEN_FreeBSD_12_powerpc64= fails to build: cffi.error.CDefError: parse error BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.8.0:devel/py-cffi@${PY_FLAVOR} Index: astro/kosmorro/Makefile =================================================================== --- astro/kosmorro/Makefile +++ astro/kosmorro/Makefile @@ -13,7 +13,8 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ - ${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} \ + ronn:textproc/rubygem-ronn RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ @@ -32,25 +33,9 @@ NO_ARCH= yes -.include - -# ronn is broken on 11.x => do not build manpages -.if ${OSVERSION} < 1200000 -PLIST_SUB+= MAN="@comment " -.else -BUILD_DEPENDS+= ronn:textproc/rubygem-ronn -PLIST_SUB+= MAN="" -.endif - pre-configure: ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/Makefile -.if ${OSVERSION} < 1200000 - ${REINPLACE_CMD} -e 's|i18n manpages|manpages|' ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e '/manpage\/kosmorro/d' ${WRKSRC}/setup.py -.else - post-build: (cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MAKE} manpages) -.endif -.include +.include Index: astro/kosmorro/pkg-plist =================================================================== --- astro/kosmorro/pkg-plist +++ astro/kosmorro/pkg-plist @@ -68,5 +68,5 @@ %%PYTHON_SITELIBDIR%%/_kosmorro/locales/nl/LC_MESSAGES/messages.po %%PYTHON_SITELIBDIR%%/_kosmorro/locales/ru/LC_MESSAGES/messages.po %%PYTHON_SITELIBDIR%%/_kosmorro/main.py -%%MAN%%man/man1/kosmorro.1.gz -%%MAN%%man/man7/kosmorro.7.gz +man/man1/kosmorro.1.gz +man/man7/kosmorro.7.gz Index: astro/qmapshack/Makefile =================================================================== --- astro/qmapshack/Makefile +++ astro/qmapshack/Makefile @@ -15,8 +15,6 @@ DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine EXPIRATION_DATE=2021-06-23 -BROKEN_FreeBSD_11= Requires OpenSSL 1.1.0+ - LIB_DEPENDS= libgdal.so:graphics/gdal \ libproj.so:graphics/proj \ libquazip1-qt5.so:archivers/quazip \ Index: audio/csound/Makefile =================================================================== --- audio/csound/Makefile +++ audio/csound/Makefile @@ -169,12 +169,6 @@ WIIMOTE_CMAKE_BOOL= BUILD_WIIMOTE_OPCODES WIIMOTE_BROKEN= Need to port wiiuse: https://github.com/rpavlik/wiiuse -.include - -.if ${ARCH} == "i386" -BROKEN_FreeBSD_11= libcsound64.so.6.0: undefined reference to `__atomic_store_8' / undefined reference to `__atomic_load_8' -.endif - post-patch: @${REINPLACE_CMD} -e \ 's|/usr/include/Python2.7|${PYTHON_INCLUDEDIR}| ; \ @@ -196,4 +190,4 @@ post-install-FLTK-on: @${LN} -sf libCsoundAC.so.6.0 ${STAGEDIR}${PREFIX}/lib/libCsoundAC.so.6 -.include +.include Index: audio/moony-lv2/Makefile =================================================================== --- audio/moony-lv2/Makefile +++ audio/moony-lv2/Makefile @@ -10,8 +10,6 @@ MAINTAINER= yuri@FreeBSD.org COMMENT= Realtime Lua as programmable glue in LV2 -BROKEN_FreeBSD_11= undefined reference to `clog', see bug#237771 - LICENSE= ART20 LICENSE_FILE= ${WRKSRC}/COPYING Index: audio/surge-synthesizer-lv2/Makefile =================================================================== --- audio/surge-synthesizer-lv2/Makefile +++ audio/surge-synthesizer-lv2/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= error: use of undeclared identifier 'getline'; did you mean 'std::getline'? - BUILD_DEPENDS= lv2>0:audio/lv2 \ ${LOCALBASE}/include/nanosvg.h:graphics/nanosvg \ ${LOCALBASE}/include/simde/simde-common.h:devel/simde \ Index: audio/surge-synthesizer-lv2/files/patch-vstgui.surge_vstgui_lib_platform_linux_x11fileselector.cpp =================================================================== --- audio/surge-synthesizer-lv2/files/patch-vstgui.surge_vstgui_lib_platform_linux_x11fileselector.cpp +++ audio/surge-synthesizer-lv2/files/patch-vstgui.surge_vstgui_lib_platform_linux_x11fileselector.cpp @@ -1,10 +1,9 @@ ---- vstgui.surge/vstgui/lib/platform/linux/x11fileselector.cpp.orig 2020-09-24 01:49:47 UTC +--- vstgui.surge/vstgui/lib/platform/linux/x11fileselector.cpp.orig 2021-04-02 18:04:51 UTC +++ vstgui.surge/vstgui/lib/platform/linux/x11fileselector.cpp -@@ -3,6 +3,8 @@ +@@ -3,6 +3,7 @@ // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "../../cfileselector.h" -+#define _WITH_GETLINE // for FreeBSD 11 +#include // https://github.com/surge-synthesizer/vstgui/issues/7 #include #include Index: audio/tagutil/Makefile =================================================================== --- audio/tagutil/Makefile +++ audio/tagutil/Makefile @@ -19,9 +19,6 @@ CMAKE_ARGS= -DMAN_PATH=${PREFIX}/man CMAKE_SOURCE_PATH= ${WRKSRC}/src -LDFLAGS_FreeBSD_11= -fuse-ld=lld -LDFLAGS+= ${LDFLAGS_${OPSYS}_${OSREL:R}} - PLIST_FILES= bin/tagutil \ man/man1/tagutil.1.gz Index: audio/vst3sdk/Makefile =================================================================== --- audio/vst3sdk/Makefile +++ audio/vst3sdk/Makefile @@ -11,7 +11,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_i386= fails to build: static_assert failed due to requirement 'alignof(Steinberg::Vst::ProcessContext) == (0 ? 8U : 0 ? 1U : 1 ? 8U : 8U) -BROKEN_FreeBSD_11= x11fileselector.cpp:57:9: error: use of undeclared identifier 'getline'; did you mean 'std::getline'? BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libexpat.so:textproc/expat2 \ Index: audio/vst3sdk/files/patch-vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp =================================================================== --- audio/vst3sdk/files/patch-vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp +++ audio/vst3sdk/files/patch-vstgui4_vstgui_lib_platform_linux_x11fileselector.cpp @@ -2,11 +2,10 @@ --- vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp.orig 2020-08-20 14:14:27 UTC +++ vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp -@@ -6,6 +6,9 @@ +@@ -6,6 +6,8 @@ #include #include -+#define _WITH_GETLINE // this is still required on FreeBSD 11 +#include + //------------------------------------------------------------------------ Index: base/gcc6/Makefile =================================================================== --- base/gcc6/Makefile +++ base/gcc6/Makefile @@ -49,17 +49,14 @@ --with-gxx-include-dir=/usr/include/c++/v1/ \ --with-sysroot="/" \ --with-build-sysroot=${CROSS_SYSROOT} \ - -with-pkgversion="GNU Collection for FreeBSD" + -with-pkgversion="GNU Collection for FreeBSD" \ + --enable-initfini-array ALL_TARGET?= all-gcc INSTALL_TARGET?= install-gcc .include -.if ${OSVERSION} >= 1200000 -CONFIGURE_ARGS+= --enable-initfini-array -.endif - .if ${HOSTARCH} == "amd64" CONFIGURE_TARGET= x86_64-unknown-${OPSYS:tl}${OSREL} .else Index: biology/abyss/Makefile =================================================================== --- biology/abyss/Makefile +++ biology/abyss/Makefile @@ -9,7 +9,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= result of comparison of constant 18446744073709551615 with expression of type 'size_t', see https://github.com/bcgsc/abyss/issues/310 -BROKEN_FreeBSD_11= error: use of undeclared identifier 'getline'; did you mean 'std::getline'? BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:devel/boost-libs \ ghc:lang/ghc \ Index: biology/igv/Makefile =================================================================== --- biology/igv/Makefile +++ biology/igv/Makefile @@ -13,8 +13,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/license.txt -BROKEN_FreeBSD_11= FAILURE: Build failed with an exception. - BUILD_DEPENDS= openjfx14>0:java/openjfx14 \ gradle:devel/gradle6 RUN_DEPENDS= openjfx14>0:java/openjfx14 Index: biology/jalview/Makefile =================================================================== --- biology/jalview/Makefile +++ biology/jalview/Makefile @@ -14,8 +14,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= gradle daemon systematically fails on 11: The message received from the daemon indicates that the daemon has disappeared. - BUILD_DEPENDS= gradle:devel/gradle6 USE_JAVA= yes Index: biology/ncbi-cxx-toolkit/Makefile =================================================================== --- biology/ncbi-cxx-toolkit/Makefile +++ biology/ncbi-cxx-toolkit/Makefile @@ -10,8 +10,6 @@ LICENSE= PD LICENSE_FILE= ${WRKSRC}/doc/public/LICENSE -BROKEN_FreeBSD_11= libxconnserv.so, not found (try using -rpath or -rpath-link) - LIB_DEPENDS= libcdd.so:math/cddlib \ liblmdb.so:databases/lmdb \ libpcre.so:devel/pcre Index: cad/astk-serveur/Makefile =================================================================== --- cad/astk-serveur/Makefile +++ cad/astk-serveur/Makefile @@ -61,8 +61,7 @@ .include -.if ${OPSYS} == FreeBSD && ((${OSREL:R} <= 12 && ${OSVERSION} < 1201506) \ - || (${OSREL:R} > 12 && ${OSVERSION} < 1300068)) +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068 # ASTK is not useful without french/aster IGNORE= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system .endif Index: cad/openvsp/Makefile =================================================================== --- cad/openvsp/Makefile +++ cad/openvsp/Makefile @@ -12,7 +12,6 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BROKEN_aarch64= fails to compile: invokes x86 asm -BROKEN_FreeBSD_11= undefined reference to __atomic_load BUILD_DEPENDS= ${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs \ ${LOCALBASE}/include/glm/glm.hpp:math/glm \ Index: cad/stepcode/Makefile =================================================================== --- cad/stepcode/Makefile +++ cad/stepcode/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11_powerpc64= fails to configure: Schema scan for 15926-0002-lifecycle_integration.exp exited with error code 1 BROKEN_FreeBSD_12_powerpc64= fails to configure: Schema scan for 15926-0002-lifecycle_integration.exp exited with error code 1 USES= cmake compiler:c++11-lang Index: comms/aprsd/Makefile =================================================================== --- comms/aprsd/Makefile +++ comms/aprsd/Makefile @@ -12,7 +12,6 @@ LICENSE= GPLv2 -BROKEN_FreeBSD_11_powerpc64= fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)' BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)' GNU_CONFIGURE= yes Index: comms/usbmuxd/files/patch-src_usb.c =================================================================== --- comms/usbmuxd/files/patch-src_usb.c +++ /dev/null @@ -1,17 +0,0 @@ -libusb_has_capability() was implemented in r361977 and is only available on: -FreeBSD >= 1104501, 1201518, 1300098 -However, libusb in all supported versions of FreeBSD supports hotplug events. - -This patch can be safely removed after 11.4 and 12.1 EOL. - ---- src/usb.c.orig 2021-01-21 10:10:40 UTC -+++ src/usb.c -@@ -815,7 +815,7 @@ int usb_init(void) - collection_init(&device_list); - - #ifdef HAVE_LIBUSB_HOTPLUG_API -- if (libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG)) { -+ if (1) { - usbmuxd_log(LL_INFO, "Registering for libusb hotplug events"); - res = libusb_hotplug_register_callback(NULL, LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED | LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, LIBUSB_HOTPLUG_ENUMERATE, VID_APPLE, LIBUSB_HOTPLUG_MATCH_ANY, 0, usb_hotplug_cb, NULL, &usb_hotplug_cb_handle); - if (res == LIBUSB_SUCCESS) { Index: databases/arrow/Makefile =================================================================== --- databases/arrow/Makefile +++ databases/arrow/Makefile @@ -14,8 +14,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/../LICENSE.txt -BROKEN_FreeBSD_11= The OpenSSL must be greater than or equal to 1.1.0 - LIB_DEPENDS= libboost_system.so:devel/boost-libs USES= cmake compiler:c++11-lang localbase pkgconfig python:build Index: databases/clickhouse/Makefile =================================================================== --- databases/clickhouse/Makefile +++ databases/clickhouse/Makefile @@ -209,14 +209,6 @@ CXX= clang++ .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " \ - MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" \ - MODERN_LIMITS="@comment " -.endif - SOVERSION= ${PORTVERSION} .include Index: databases/clickhouse/files/clickhouse.in =================================================================== --- databases/clickhouse/files/clickhouse.in +++ databases/clickhouse/files/clickhouse.in @@ -8,9 +8,6 @@ # # clickhouse_enable (bool): Set to "NO" by default # Set it to "YES" to enable clickhouse server -%%LEGACY_LIMITS%%# clickhouse_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U clickhouse` -%%LEGACY_LIMITS%%# just before clickhouse starts. # clickhouse_config (str): Path to config file (required). # (default: %%PREFIX%%/etc/clickhouse-server/config.xml) # clickhouse_rundir (str): Path to directory holding a pidfile. @@ -32,7 +29,6 @@ load_rc_config ${name} : ${clickhouse_enable="NO"} -%%LEGACY_LIMITS%%: ${clickhouse_limits="NO"} : ${clickhouse_config="%%PREFIX%%/etc/clickhouse-server/config.xml"} : ${clickhouse_rundir="/var/run/clickhouse"} : ${clickhouse_user="clickhouse"} @@ -54,12 +50,7 @@ install -d -o ${clickhouse_user} -g ${clickhouse_group} ${_dir} done -%%LEGACY_LIMITS%% if checkyesno clickhouse_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${clickhouse_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/couchdb3/Makefile =================================================================== --- databases/couchdb3/Makefile +++ databases/couchdb3/Makefile @@ -74,7 +74,7 @@ -e 's,$$LOG_FILE,${LOGFILE},g' \ ${WRKSRC}/configure # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238514 -.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1200000 || ${ARCH} == i386) +.if ${OPSYS} == FreeBSD && ${ARCH} == i386 @${REINPLACE_CMD} \ -e 's,$$FLTO_FLAG ,,g' \ ${WRKSRC}/src/jiffy/rebar.config Index: databases/foundationdb-devel/Makefile =================================================================== --- databases/foundationdb-devel/Makefile +++ databases/foundationdb-devel/Makefile @@ -10,7 +10,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= requires newer OpenSSL ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= not yet ported to anything else Index: databases/foundationdb/Makefile =================================================================== --- databases/foundationdb/Makefile +++ databases/foundationdb/Makefile @@ -8,7 +8,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= requires newer OpenSSL ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= not yet ported to anything else Index: databases/gnats4/Makefile =================================================================== --- databases/gnats4/Makefile +++ databases/gnats4/Makefile @@ -12,7 +12,6 @@ BROKEN_mips= Does not build: error: conflicting types for yy_scan_string BROKEN_mips64= Does not build: error: conflicting types for yy_scan_string -BROKEN_FreeBSD_11_powerpc64= fails to build on powerpc64 elfv1: conflicting types for yy_scan_string BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: conflicting types for yy_scan_string GNU_CONFIGURE= yes Index: databases/mariadb103-server/Makefile =================================================================== --- databases/mariadb103-server/Makefile +++ databases/mariadb103-server/Makefile @@ -164,12 +164,6 @@ CMAKE_ARGS+= -DPLUGIN_${PLUGIN}=NO .endfor -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .endif # ${PKGNAMESUFFIX:M*-client} .if defined(WITH_OPENSSL_PORT) Index: databases/mariadb103-server/files/mysql-server.in =================================================================== --- databases/mariadb103-server/files/mysql-server.in +++ databases/mariadb103-server/files/mysql-server.in @@ -7,9 +7,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_(instance_)?enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_(instance_)?limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_(instance_)?dbdir (str): Default to "/var/db/mysql" # Base database directory. # mysql_(instance_)?args (str): Custom additional arguments to be passed @@ -31,9 +28,7 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_user="mysql"} -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${mysql_dbdir="/var/db/mysql"} : ${mysql_optfile="${mysql_dbdir}/my.cnf"} @@ -49,9 +44,7 @@ "$2 "*|*" $2 "*|*" $2"|"$2") eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}" eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"/var/db/mysql_${instance}\"}" - %%LEGACY_LIMITS%%eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}" eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}" - %%LEGACY_LIMITS%%eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}" eval mysql_optfile="\${mysql_${instance}_optfile:-\"${mysql_dbdir}/my.cnf\"}" eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"${mysql_dbdir}/`/bin/hostname`.pid\"}" ;; @@ -117,12 +110,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mariadb104-server/Makefile =================================================================== --- databases/mariadb104-server/Makefile +++ databases/mariadb104-server/Makefile @@ -190,12 +190,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${SSL_DEFAULT} != base && ${PORT_OPTIONS:MGSSAPI_BASE} GSSAPI_BASE_IGNORE= BASE_GSSAPI is not compatible with OpenSSL from ports. Use other GSSAPI options or OpenSSL from base system .endif Index: databases/mariadb104-server/files/mysql-server.in =================================================================== --- databases/mariadb104-server/files/mysql-server.in +++ databases/mariadb104-server/files/mysql-server.in @@ -7,9 +7,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_(instance_)?enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_(instance_)?limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_(instance_)?dbdir (str): Base database directory. # Default to "/var/db/mysql" # mysql_(instance_)?args (str): Custom additional arguments to be passed @@ -34,9 +31,7 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_user="%%MARIADB_USER%%"} -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${mysql_dbdir="/var/db/mysql"} : ${mysql_optfile="${mysql_dbdir}/my.cnf"} @@ -52,9 +47,7 @@ "$2 "*|*" $2 "*|*" $2"|"$2") eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}" eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"/var/db/mysql_${instance}\"}" - %%LEGACY_LIMITS%%eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}" eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}" - %%LEGACY_LIMITS%%eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}" eval mysql_socket="\${mysql_${instance}_socket:-\"${mysql_socket}\"}" eval mysql_optfile="\${mysql_${instance}_optfile:-\"${mysql_dbdir}/my.cnf\"}" eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"${mysql_dbdir}/`/bin/hostname`.pid\"}" @@ -126,12 +119,7 @@ install -d -o ${mysql_user} -g $(id -gn $mysql_user) "${mysql_rundir}" fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mariadb105-server/Makefile =================================================================== --- databases/mariadb105-server/Makefile +++ databases/mariadb105-server/Makefile @@ -196,12 +196,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${SSL_DEFAULT} != base && ${PORT_OPTIONS:MGSSAPI_BASE} GSSAPI_BASE_IGNORE= GSSAPI_BASE is not compatible with OpenSSL from ports. Use other GSSAPI options or OpenSSL from base system .endif Index: databases/mariadb105-server/files/mysql-server.in =================================================================== --- databases/mariadb105-server/files/mysql-server.in +++ databases/mariadb105-server/files/mysql-server.in @@ -7,9 +7,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_(instance_)?enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_(instance_)?limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_(instance_)?dbdir (str): Default to "%%MARIADB_DBDIR%%" # Base database directory. # mysql_(instance_)?args (str): Custom additional arguments to be passed @@ -32,9 +29,7 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_user="%%MARIADB_USER%%"} -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${mysql_dbdir="%%MARIADB_DBDIR%%"} : ${mysql_optfile="%%ETCDIR%%/my.cnf"} : ${mysql_rundir="%%MARIADB_RUNDIR%%"} @@ -51,9 +46,7 @@ "$2 "*|*" $2 "*|*" $2"|"$2") eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}" eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"%%MARIADB_DBDIR%%_${instance}\"}" - %%LEGACY_LIMITS%%eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}" eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}" - %%LEGACY_LIMITS%%eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}" eval mysql_socket="\${mysql_${instance}_socket:-\"%%MARIADB_RUNDIR%%_${instance}/%%MARIADB_SOCK%%\"}" eval mysql_optfile="\${mysql_${instance}_optfile:-\"%%ETCDIR%%_${instance}/my.cnf\"}" eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"%%MARIADB_RUNDIR%%_${instance}/mysqld.pid\"}" @@ -125,12 +118,7 @@ if [ ! -d "${mysql_rundir}" ]; then install -d -o ${mysql_user} -g ${mysql_group} "${mysql_rundir}" fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 if [ ! -d "${mysql_rundir}" ]; then install -d -u${mysql_user} -g$(id -gn $mysql_user) -m755 ${mysql_rundir} fi Index: databases/memcached/Makefile =================================================================== --- databases/memcached/Makefile +++ databases/memcached/Makefile @@ -61,7 +61,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 +.if ${OPSYS} == FreeBSD CONFIGURE_ARGS+= --enable-tls USES+= ssl .endif Index: databases/mongodb36/Makefile =================================================================== --- databases/mongodb36/Makefile +++ databases/mongodb36/Makefile @@ -55,12 +55,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${ARCH} == aarch64 EXTRA_PATCHES= ${FILESDIR}/aarch64 .endif Index: databases/mongodb36/files/mongod.in =================================================================== --- databases/mongodb36/files/mongod.in +++ databases/mongodb36/files/mongod.in @@ -9,9 +9,6 @@ # # mongod_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mongod. -%%LEGACY_LIMITS%%# mongod_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mongodb` -%%LEGACY_LIMITS%%# just before mongod starts. # mongod_dbpath (str): Default to "/var/db/mongodb" # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. @@ -28,7 +25,6 @@ load_rc_config $name : ${mongod_enable="NO"} -%%LEGACY_LIMITS%%: ${mongod_limits="NO"} : ${mongod_dbpath="/var/db/mongodb"} : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=disabledSecureAllocatorDomains=\*"} : ${mongod_user="mongodb"} @@ -51,12 +47,7 @@ if [ ! -d ${mongod_dbpath} ]; then mongod_create_dbpath || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mongod_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${mongod_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/mongodb40/Makefile =================================================================== --- databases/mongodb40/Makefile +++ databases/mongodb40/Makefile @@ -57,12 +57,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES= ${FILESDIR}/${ARCH} .endif Index: databases/mongodb40/files/mongod.in =================================================================== --- databases/mongodb40/files/mongod.in +++ databases/mongodb40/files/mongod.in @@ -9,9 +9,6 @@ # # mongod_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mongod. -%%LEGACY_LIMITS%%# mongod_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mongodb` -%%LEGACY_LIMITS%%# just before mongod starts. # mongod_dbpath (str): Default to "/var/db/mongodb" # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. @@ -28,7 +25,6 @@ load_rc_config $name : ${mongod_enable="NO"} -%%LEGACY_LIMITS%%: ${mongod_limits="NO"} : ${mongod_dbpath="/var/db/mongodb"} : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=disabledSecureAllocatorDomains=\*"} : ${mongod_user="mongodb"} @@ -51,12 +47,7 @@ if [ ! -d ${mongod_dbpath} ]; then mongod_create_dbpath || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mongod_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${mongod_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/mongodb42/Makefile =================================================================== --- databases/mongodb42/Makefile +++ databases/mongodb42/Makefile @@ -73,12 +73,6 @@ BROKEN= Aarch64 needs LSE atomics which was fixed in https://cgit.freebsd.org/src/commit/?id=efe67f33c322265eb303ec0ab40275100795b22a .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES= ${FILESDIR}/${ARCH} .endif Index: databases/mongodb42/files/mongod.in =================================================================== --- databases/mongodb42/files/mongod.in +++ databases/mongodb42/files/mongod.in @@ -9,9 +9,6 @@ # # mongod_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mongod. -%%LEGACY_LIMITS%%# mongod_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mongodb` -%%LEGACY_LIMITS%%# just before mongod starts. # mongod_dbpath (str): Default to "/var/db/mongodb" # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. @@ -28,7 +25,6 @@ load_rc_config $name : ${mongod_enable="NO"} -%%LEGACY_LIMITS%%: ${mongod_limits="NO"} : ${mongod_dbpath="/var/db/mongodb"} : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=disabledSecureAllocatorDomains=\*"} : ${mongod_user="mongodb"} @@ -51,12 +47,7 @@ if [ ! -d ${mongod_dbpath} ]; then mongod_create_dbpath || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mongod_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${mongod_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/mongodb44/Makefile =================================================================== --- databases/mongodb44/Makefile +++ databases/mongodb44/Makefile @@ -63,12 +63,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES= ${FILESDIR}/${ARCH} .endif Index: databases/mongodb44/files/mongod.in =================================================================== --- databases/mongodb44/files/mongod.in +++ databases/mongodb44/files/mongod.in @@ -9,9 +9,6 @@ # # mongod_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mongod. -%%LEGACY_LIMITS%%# mongod_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mongodb` -%%LEGACY_LIMITS%%# just before mongod starts. # mongod_dbpath (str): Default to "/var/db/mongodb" # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. @@ -28,7 +25,6 @@ load_rc_config $name : ${mongod_enable="NO"} -%%LEGACY_LIMITS%%: ${mongod_limits="NO"} : ${mongod_dbpath="/var/db/mongodb"} : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=disabledSecureAllocatorDomains=\*"} : ${mongod_user="mongodb"} @@ -51,12 +47,7 @@ if [ ! -d ${mongod_dbpath} ]; then mongod_create_dbpath || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mongod_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${mongod_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/mongodb50/Makefile =================================================================== --- databases/mongodb50/Makefile +++ databases/mongodb50/Makefile @@ -64,12 +64,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES= ${FILESDIR}/${ARCH} .endif Index: databases/mongodb50/files/mongod.in =================================================================== --- databases/mongodb50/files/mongod.in +++ databases/mongodb50/files/mongod.in @@ -9,9 +9,6 @@ # # mongod_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mongod. -%%LEGACY_LIMITS%%# mongod_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mongodb` -%%LEGACY_LIMITS%%# just before mongod starts. # mongod_dbpath (str): Default to "/var/db/mongodb" # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. @@ -28,7 +25,6 @@ load_rc_config $name : ${mongod_enable="NO"} -%%LEGACY_LIMITS%%: ${mongod_limits="NO"} : ${mongod_dbpath="/var/db/mongodb"} : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=disabledSecureAllocatorDomains=\*"} : ${mongod_user="mongodb"} @@ -51,12 +47,7 @@ if [ ! -d ${mongod_dbpath} ]; then mongod_create_dbpath || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mongod_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${mongod_user}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } run_rc_command "$1" Index: databases/mysql-connector-c/Makefile =================================================================== --- databases/mysql-connector-c/Makefile +++ databases/mysql-connector-c/Makefile @@ -25,7 +25,7 @@ CFLAGS+= -march=i586 .endif -.if (${OPSYS} == FreeBSD && ${OSVERSION} > 1200085 && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl +.if (${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl EXTRA_PATCHES+= ${FILESDIR}/extra-patch-vio_viosslfactories.c \ ${FILESDIR}/extra-patch-mysys__ssl_my__aes__openssl.cc .endif Index: databases/mysql55-server/Makefile =================================================================== --- databases/mysql55-server/Makefile +++ databases/mysql55-server/Makefile @@ -59,12 +59,6 @@ USE_CXXSTD= gnu++98 .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .if ${PORT_OPTIONS:MSSL} CMAKE_ARGS+= -DWITH_SSL=bundled .endif Index: databases/mysql55-server/files/mysql-server.in =================================================================== --- databases/mysql55-server/files/mysql-server.in +++ databases/mysql55-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. # mysql_optfile (str): Server-specific option file. @@ -29,12 +26,10 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} : ${mysql_optfile="${mysql_dbdir}/my.cnf"} mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -56,12 +51,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mysql56-server/Makefile =================================================================== --- databases/mysql56-server/Makefile +++ databases/mysql56-server/Makefile @@ -146,12 +146,6 @@ USE_CXXSTD= c++11 .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .include post-patch: Index: databases/mysql56-server/files/mysql-server.in =================================================================== --- databases/mysql56-server/files/mysql-server.in +++ databases/mysql56-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "%%MY_DBDIR%%" # Base database directory. # mysql_confdir (str): Default to "%%ETCDIR%%" @@ -33,7 +30,6 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="%%MY_DBDIR%%"} : ${mysql_confdir="%%ETCDIR%%"} if [ -f "${mysql_confdir}/my.cnf" ]; then @@ -46,7 +42,6 @@ fi mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -68,12 +63,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mysql57-server/Makefile =================================================================== --- databases/mysql57-server/Makefile +++ databases/mysql57-server/Makefile @@ -149,12 +149,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .include .if ${SSL_DEFAULT} == base Index: databases/mysql57-server/files/mysql-server.in =================================================================== --- databases/mysql57-server/files/mysql-server.in +++ databases/mysql57-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "%%MY_DBDIR%%" # Base database directory. # mysql_confdir (str): Default to "%%ETCDIR%%" @@ -33,7 +30,6 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="%%MY_DBDIR%%"} : ${mysql_confdir="%%ETCDIR%%"} if [ -f "${mysql_confdir}/my.cnf" ]; then @@ -47,7 +43,6 @@ mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -68,12 +63,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mysql80-server/Makefile =================================================================== --- databases/mysql80-server/Makefile +++ databases/mysql80-server/Makefile @@ -180,22 +180,6 @@ CMAKE_ARGS+= -DDISABLE_PSI_MEMORY=1 .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - -.include - -.if ${ARCH} == "i386" && ${OSVERSION} < 1200000 -# clang 7.x and 8.x do not build properly on 11i386 -CPP= clang-cpp${LLVM_DEFAULT} -CC= clang${LLVM_DEFAULT} -CXX= clang++${LLVM_DEFAULT} -BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} -.endif - post-extract: @${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h @@ -208,4 +192,4 @@ ${MKDIR} ${STAGEDIR}${MY_TMPDIR} .endif -.include +.include Index: databases/mysql80-server/files/mysql-server.in =================================================================== --- databases/mysql80-server/files/mysql-server.in +++ databases/mysql80-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "%%MY_DBDIR%%" # Base database directory. # mysql_confdir (str): Default to "%%ETCDIR%%" @@ -33,7 +30,6 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="%%MY_DBDIR%%"} : ${mysql_confdir="%%ETCDIR%%"} if [ -f "${mysql_confdir}/my.cnf" ]; then @@ -46,7 +42,6 @@ fi mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -67,12 +62,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mysqlwsrep56-server/Makefile =================================================================== --- databases/mysqlwsrep56-server/Makefile +++ databases/mysqlwsrep56-server/Makefile @@ -133,12 +133,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .include # Plugin innodb_memcached requires -fcommon to avoid duplicate symbol linker Index: databases/mysqlwsrep56-server/files/mysql-server.in =================================================================== --- databases/mysqlwsrep56-server/files/mysql-server.in +++ databases/mysqlwsrep56-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. # mysql_optfile (str): Server-specific option file. @@ -29,14 +26,8 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} -: ${mysql_dbdir="/var/db/mysql"} -: ${mysql_optfile="${mysql_dbdir}/my.cnf"} mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" -: ${hostname:=`/bin/hostname`} -pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="%%PREFIX%%/libexec/mysqld" @@ -70,12 +61,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/mysqlwsrep57-server/Makefile =================================================================== --- databases/mysqlwsrep57-server/Makefile +++ databases/mysqlwsrep57-server/Makefile @@ -162,12 +162,6 @@ SUB_LIST+= PERFSCHEMRC="--skip-performance-schema" .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - .include .if ${SSL_DEFAULT} == base @@ -178,13 +172,11 @@ # ${LOCALBASE}/include/lz4.h does not compile with Clang 6. # Also MySQL code itself needs -Wno-c++11-narrowing when Clang 6 is used. -.if ${OSVERSION} >= 1200056 CFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS CXXFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS LDFLAGS+= -L${LOCALBASE}/lib -. if ${CHOSEN_COMPILER_TYPE} == clang +.if ${CHOSEN_COMPILER_TYPE} == clang CXXFLAGS+= -Wno-c++11-narrowing -. endif .endif # Ensure that assertions are not turned on in non-debug builds. Index: databases/mysqlwsrep57-server/files/mysql-server.in =================================================================== --- databases/mysqlwsrep57-server/files/mysql-server.in +++ databases/mysqlwsrep57-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "%%MY_DBDIR%%" # Base database directory. # mysql_confdir (str): Default to "%%ETCDIR%%" @@ -35,7 +32,6 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="%%MY_DBDIR%%"} : ${mysql_confdir="%%ETCDIR%%"} if [ -f "${mysql_confdir}/my.cnf" ]; then @@ -48,7 +44,6 @@ fi mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -83,12 +78,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/percona56-server/Makefile =================================================================== --- databases/percona56-server/Makefile +++ databases/percona56-server/Makefile @@ -97,12 +97,6 @@ # Workaround to clang11/gcc10 with -fno-common by default CFLAGS+= -fcommon -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - post-install: @${MKDIR} ${STAGEDIR}/var/db/mysql .endif Index: databases/percona56-server/files/mysql-server.in =================================================================== --- databases/percona56-server/files/mysql-server.in +++ databases/percona56-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. # mysql_optfile (str): Server-specific option file. @@ -29,12 +26,10 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} : ${mysql_optfile="${mysql_dbdir}/my.cnf"} mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -56,12 +51,7 @@ if [ ! -d "${mysql_dbdir}/mysql/." ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/percona57-server/Makefile =================================================================== --- databases/percona57-server/Makefile +++ databases/percona57-server/Makefile @@ -140,12 +140,6 @@ #MY_TESTDIR= "" #.endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 -SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" -.else -SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " -.endif - post-install: ${MKDIR} ${STAGEDIR}/var/db/mysql ${MKDIR} ${STAGEDIR}${ETCDIR}/keyring Index: databases/percona57-server/files/mysql-server.in =================================================================== --- databases/percona57-server/files/mysql-server.in +++ databases/percona57-server/files/mysql-server.in @@ -8,9 +8,6 @@ # Add the following line to /etc/rc.conf to enable mysql: # mysql_enable (bool): Set to "NO" by default. # Set it to "YES" to enable MySQL. -%%LEGACY_LIMITS%%# mysql_limits (bool): Set to "NO" by default. -%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql` -%%LEGACY_LIMITS%%# just before mysql starts. # mysql_dbdir (str): Default to "%%MY_DBDIR%%" # Base database directory. # mysql_confdir (str): Default to "%%ETCDIR%%" @@ -31,7 +28,6 @@ load_rc_config $name : ${mysql_enable="NO"} -%%LEGACY_LIMITS%%: ${mysql_limits="NO"} : ${mysql_dbdir="%%MY_DBDIR%%"} : ${mysql_confdir="%%ETCDIR%%"} if [ -f "${mysql_dbdir}/my.cnf" ]; then @@ -41,7 +37,6 @@ fi mysql_user="mysql" -%%LEGACY_LIMITS%%mysql_limits_args="-e -U ${mysql_user}" : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" @@ -73,12 +68,7 @@ if [ ! -d "${mysql_dbdir}/mysql" ]; then mysql_create_auth_tables || return 1 fi -%%LEGACY_LIMITS%% if checkyesno mysql_limits; then -%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null -%%LEGACY_LIMITS%% else -%%LEGACY_LIMITS%% return 0 -%%LEGACY_LIMITS%% fi -%%MODERN_LIMITS%% return 0 + return 0 } mysql_poststart() Index: databases/rocksdb/Makefile =================================================================== --- databases/rocksdb/Makefile +++ databases/rocksdb/Makefile @@ -20,7 +20,6 @@ BROKEN_DragonFly= does not build on DragonFly BSD using GCC with -Werror BROKEN_armv6?= does not build: db/c.cc:2281:44: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') BROKEN_armv7?= does not build: /nxb-bin/usr/bin/ld: undefined reference to symbol `__gnu_Unwind_Find_exidx@@FBSD_1.4' (try adding -lc) #'` -BROKEN_FreeBSD_11_powerpc64= does not build: util/crc32c.cc:435:22: 'arch_ppc_probe' was not declared in this scope BROKEN_FreeBSD_12_powerpc64= does not build: util/crc32c.cc:435:22: 'arch_ppc_probe' was not declared in this scope BUILD_DEPENDS= bash:shells/bash Index: deskutils/ausweisapp2/Makefile =================================================================== --- deskutils/ausweisapp2/Makefile +++ deskutils/ausweisapp2/Makefile @@ -26,10 +26,4 @@ CMAKE_ARGS= -DVENDOR=${PORTNAME} MAKE_ENV= DESTDIR=${STAGEDIR} -.include - -.if ${SSL_DEFAULT} == base && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -CMAKE_ON+= FORCE_LEGACY_OPENSSL -.endif - .include Index: deskutils/easystroke/Makefile =================================================================== --- deskutils/easystroke/Makefile +++ deskutils/easystroke/Makefile @@ -10,7 +10,6 @@ LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11_powerpc64= fails to build on powerpc64 elfv1: handler.cc:560:27: call of overloaded 'abs(float&)' is ambiguous BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: handler.cc:560:27: call of overloaded 'abs(float&)' is ambiguous BUILD_DEPENDS= help2man:misc/help2man \ Index: deskutils/nextcloudclient/Makefile =================================================================== --- deskutils/nextcloudclient/Makefile +++ deskutils/nextcloudclient/Makefile @@ -51,10 +51,6 @@ CMAKE_ARGS+= -DCMAKE_BUILD_TYPE:STRING=Debug .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && !${SSL_DEFAULT:Mopenssl} -BROKEN= nextcloudclient requires OpenSSL 1.1.0, add DEFAULT_VERSIONS+=ssl=openssl to /etc/make.conf -.endif - post-patch: @${REINPLACE_CMD} -e \ 's|.lst |.lst.sample |' ${WRKSRC}/CMakeLists.txt Index: deskutils/sysctlview/Makefile =================================================================== --- deskutils/sysctlview/Makefile +++ deskutils/sysctlview/Makefile @@ -29,9 +29,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 -IGNORE= needs oid_label member of struct sysctl_oid defined in sysctl.h which was first introduced in FreeBSD 12 -.endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD .endif Index: devel/R-cran-data.table/Makefile =================================================================== --- devel/R-cran-data.table/Makefile +++ devel/R-cran-data.table/Makefile @@ -22,20 +22,10 @@ .include -.if ${ARCH} == i386 && ${OSVERSION} < 1202000 -# See PR 230888 : Missing 64 bit atomic functions for i386 -USES+= compiler:gcc-c++11-lib -.elif defined(PPC_ABI) && ${PPC_ABI} == ELFv1 +.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1 USE_GCC= yes .else USES+= cran:compiles .endif -.if ${ARCH} == i386 && ${OSVERSION} < 1202000 -# See PR 230888 : Missing 64 bit atomic functions for i386 -post-patch: - @${REINPLACE_CMD} -e '/^PKG_LIBS/s|$$| -latomic|' \ - ${WRKSRC}/src/Makevars.in -.endif - .include Index: devel/aml/files/patch-freebsd11 =================================================================== --- devel/aml/files/patch-freebsd11 +++ /dev/null @@ -1,57 +0,0 @@ -Drop after FreeBSD 11 EOL around 2021-09-30 -https://github.com/freebsd/freebsd-src/commit/92bb8c680916 -https://github.com/freebsd/freebsd-src/commit/2b34e8433514 - -Header has symbol "kqueue" : NO -meson.build:62:1: ERROR: Problem encountered: Unsupported system - -Compiler stderr: - In file included from _build/meson-private/tmp0rptdqs6/testfile.c:2: -/usr/include/sys/event.h:75:2: error: unknown type name 'uintptr_t' - uintptr_t ident; /* identifier for this event */ - ^ -/usr/include/sys/event.h:77:2: error: unknown type name 'u_short'; did you mean 'short'? - u_short flags; /* action flags for kqueue */ - ^ -/usr/include/sys/event.h:78:2: error: unknown type name 'u_int' - u_int fflags; /* filter flag value */ - ^ -/usr/include/sys/event.h:79:2: error: unknown type name 'intptr_t' - intptr_t data; /* filter data value */ - ^ -In file included from ../src/kqueue.c:20: -/usr/include/sys/event.h:77:2: error: unknown type name 'u_short'; did you mean 'short'? - u_short flags; /* action flags for kqueue */ - ^ -/usr/include/sys/event.h:78:2: error: unknown type name 'u_int' - u_int fflags; /* filter flag value */ - ^ -../src/kqueue.c:184:20: error: use of undeclared identifier 'NOTE_ABSTIME' - NOTE_MSECONDS | NOTE_ABSTIME, deadline, NULL); - ^ - ---- meson.build.orig 2020-12-31 12:37:18 UTC -+++ meson.build -@@ -50,7 +50,7 @@ sources = [ - ] - - have_epoll = cc.has_header_symbol('sys/epoll.h', 'epoll_create') --have_kqueue = cc.has_header_symbol('sys/event.h', 'kqueue') -+have_kqueue = cc.has_header_symbol('sys/event.h', 'kqueue', prefix: '#include ') - - if have_epoll - sources += 'src/epoll.c' ---- src/kqueue.c.orig 2020-12-31 12:37:18 UTC -+++ src/kqueue.c -@@ -17,6 +17,11 @@ - #include "aml.h" - #include "backend.h" - -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+#define NOTE_ABSTIME 0 -+typedef unsigned short u_short; -+typedef unsigned int u_int; -+#endif - #include - #include - #include Index: devel/bazel/Makefile =================================================================== --- devel/bazel/Makefile +++ devel/bazel/Makefile @@ -15,7 +15,6 @@ BROKEN_aarch64= fails to build: java.lang.OutOfMemoryError: Java heap space BROKEN_armv6= fails to package: cp: bazel: No such file or directory BROKEN_armv7= fails to package: cp: bazel: No such file or directory -BROKEN_FreeBSD_11_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BROKEN_FreeBSD_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BUILD_DEPENDS= bash:shells/bash \ Index: devel/bazel029/Makefile =================================================================== --- devel/bazel029/Makefile +++ devel/bazel029/Makefile @@ -17,7 +17,6 @@ BROKEN_aarch64= fails to build: java.lang.OutOfMemoryError: Java heap space BROKEN_armv6= fails to package: cp: bazel: No such file or directory BROKEN_armv7= fails to package: cp: bazel: No such file or directory -BROKEN_FreeBSD_11_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BROKEN_FreeBSD_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BUILD_DEPENDS= bash:shells/bash \ Index: devel/bear/Makefile =================================================================== --- devel/bear/Makefile +++ devel/bear/Makefile @@ -30,13 +30,6 @@ OPTIONS_DEFINE= DOCS -.include - -# Patch 11.x, which requires #define _WITH_DPRINTF -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-source_intercept_source_report_libexec_Logger.cc -.endif - pre-install: ${MV} ${STAGEDIR}/${CONFIGURE_WRKSRC}/stage ${CONFIGURE_WRKSRC}/ ${RM} -r ${STAGEDIR}/wrkdirs Index: devel/bear/files/extra-patch-source_intercept_source_report_libexec_Logger.cc =================================================================== --- devel/bear/files/extra-patch-source_intercept_source_report_libexec_Logger.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- source/intercept/source/report/libexec/Logger.cc.orig 2021-07-22 21:19:02 UTC -+++ source/intercept/source/report/libexec/Logger.cc -@@ -20,6 +20,7 @@ - #include "report/libexec/Logger.h" - - #include -+#define _WITH_DPRINTF - #include - #include - Index: devel/bitkeeper/Makefile =================================================================== --- devel/bitkeeper/Makefile +++ devel/bitkeeper/Makefile @@ -14,7 +14,6 @@ BROKEN_aarch64= ld: error: undefined symbol: fpsetround BROKEN_riscv64= fails to compile: src/gui/tcltk/tcl/unix/tclUnixInit.c:401:16: error: use of undeclared identifier 'FP_RN' -BROKEN_FreeBSD_11= perl: No such file or directory BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:devel/gperf \ ${LOCALBASE}/include/tommath.h:math/libtommath \ Index: devel/concurrencpp/Makefile =================================================================== --- devel/concurrencpp/Makefile +++ devel/concurrencpp/Makefile @@ -9,8 +9,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BROKEN_FreeBSD_11= fatal error: 'semaphore' file not found - USES= cmake compiler:c++17-lang # should be compiler:c++20-lang USE_GITHUB= yes Index: devel/creduce/Makefile =================================================================== --- devel/creduce/Makefile +++ devel/creduce/Makefile @@ -18,7 +18,6 @@ p5-Sys-CPU>=0:devel/p5-Sys-CPU \ p5-Getopt-Tabular>=0:devel/p5-Getopt-Tabular -BROKEN_FreeBSD_11_powerpc64= fails to configure: cannot compile and link test program with selected LLVM BROKEN_FreeBSD_12_powerpc64= fails to configure: cannot compile and link test program with selected LLVM GNU_CONFIGURE= yes Index: devel/dwarves/Makefile =================================================================== --- devel/dwarves/Makefile +++ devel/dwarves/Makefile @@ -14,8 +14,6 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING LICENSE_FILE_LGPL21= ${WRKSRC}/lib/bpf/LICENSE.LPGL-2.1 -IGNORE_FreeBSD_11= inherited from dependency devel/elfutils - BUILD_DEPENDS= gnulib>=0:devel/gnulib LIB_DEPENDS= libargp.so:devel/argp-standalone \ libdw.so:devel/elfutils Index: devel/elfutils/Makefile =================================================================== --- devel/elfutils/Makefile +++ devel/elfutils/Makefile @@ -14,7 +14,6 @@ LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2 LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 -IGNORE_FreeBSD_11= fails to build: fails to compile dwarf_abbrev_hash.c BROKEN_armv6= fails to build: fails to compile i386_disasm.c BROKEN_sparc64= sparc patch does not apply cleanly to 0.172 Index: devel/erlang-exmpp/Makefile =================================================================== --- devel/erlang-exmpp/Makefile +++ devel/erlang-exmpp/Makefile @@ -47,7 +47,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base +.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= Does not support OpenSSL 1.1 .endif Index: devel/folly/Makefile =================================================================== --- devel/folly/Makefile +++ devel/folly/Makefile @@ -9,7 +9,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= bug in folly, confusion with Jemalloc: https://github.com/facebook/folly/issues/1458 BROKEN_i386= error: use of undeclared identifier 'DCHECK': https://github.com/facebook/folly/issues/1168 LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ Index: devel/goredo/Makefile =================================================================== --- devel/goredo/Makefile +++ devel/goredo/Makefile @@ -16,10 +16,4 @@ PLIST_FILES= bin/${PORTNAME} -.include - -.if ${OSVERSION} < 1200000 -EXTRACT_DEPENDS= zstd:archivers/zstd # 11 doesn't have the 'zstd' executable that tar(1) expects: Error opening archive: Can't initialize filter; unable to run program "zstd -d -qq" -.endif - .include Index: devel/hs-ShellCheck/Makefile =================================================================== --- devel/hs-ShellCheck/Makefile +++ devel/hs-ShellCheck/Makefile @@ -47,10 +47,6 @@ OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT= MANPAGES -# hs-pandoc is broken on 11.4 i386 due to missing __atomic_load_8; -# make sure we still have a package (just without a manual) there -# anyway. -OPTIONS_EXCLUDE= ${${ARCH} == i386 && ${OPSYS} == FreeBSD && ${OSVERSION} < 1201525:?MANPAGES:} MANPAGES_BUILD_DEPENDS= pandoc:textproc/hs-pandoc MANPAGES_PLIST_FILES= share/man/man1/shellcheck.1.gz Index: devel/indi/Makefile =================================================================== --- devel/indi/Makefile +++ devel/indi/Makefile @@ -8,8 +8,6 @@ LICENSE= LGPL21 -BROKEN_FreeBSD_11= error: use of undeclared identifier 'TIME_UTC' - BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ libnova.so:astro/libnova \ Index: devel/juce/Makefile =================================================================== --- devel/juce/Makefile +++ devel/juce/Makefile @@ -11,8 +11,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md LICENSE_PERMS= auto-accept dist-mirror pkg-mirror -BROKEN_FreeBSD_11= error: use of undeclared identifier 'pthread_setname_np' - BUILD_DEPENDS= ladspa>0:audio/ladspa LIB_DEPENDS= libasound.so:audio/alsa-lib \ libfreetype.so:print/freetype2 \ Index: devel/llbuild/Makefile =================================================================== --- devel/llbuild/Makefile +++ devel/llbuild/Makefile @@ -13,7 +13,6 @@ BROKEN_aarch64= fails to link: undefined symbol: sbrk BROKEN_riscv64= fails to link: undefined symbol: sbrk -BROKEN_FreeBSD_11_powerpc64= fails to build on powerpc64 elfv1: unrecognized command line option "-Wdocumentation" BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: unrecognized command line option "-Wdocumentation" LIB_DEPENDS= libsqlite3.so:databases/sqlite3 Index: devel/llvm13/Makefile =================================================================== --- devel/llvm13/Makefile +++ devel/llvm13/Makefile @@ -99,7 +99,6 @@ OPTIONS_DEFAULT_powerpc64_13= GOLD OPTIONS_DEFAULT_powerpc64_14= GOLD OPTIONS_DEFAULT_powerpc64le= GOLD OPENMP -OPTIONS_EXCLUDE_FreeBSD_11= COMPILER_RT OPTIONS_EXCLUDE_i386= FLANG OPTIONS_EXCLUDE_powerpc= FLANG OPTIONS_DEFAULT_riscv64= OPENMP Index: devel/nextpnr/Makefile =================================================================== --- devel/nextpnr/Makefile +++ devel/nextpnr/Makefile @@ -11,7 +11,6 @@ NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= clang segfault -BROKEN_FreeBSD_11_powerpc64= runaway build BROKEN_FreeBSD_12_powerpc64= runaway build BUILD_DEPENDS= ${LOCALBASE}/share/trellis/database:devel/trellis \ Index: devel/p4/Makefile =================================================================== --- devel/p4/Makefile +++ devel/p4/Makefile @@ -21,7 +21,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_mips64= fails to install: /wrkdirs/usr/ports/devel/p4/work/2016-1/p4-bin/p4: No such file or directory -BROKEN_FreeBSD_11_powerpc64= fails to build: /bin/sh: clang++: not found BROKEN_FreeBSD_12_powerpc64= fails to build: /bin/sh: clang++: not found BUILD_DEPENDS= ${JAM}:devel/jam Index: devel/p4api/Makefile =================================================================== --- devel/p4api/Makefile +++ devel/p4api/Makefile @@ -20,7 +20,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11_powerpc64= fails to build: /bin/sh: clang++: not found BROKEN_FreeBSD_12_powerpc64= fails to build: /bin/sh: clang++: not found BUILD_DEPENDS= ${JAM}:devel/jam Index: devel/performance/Makefile =================================================================== --- devel/performance/Makefile +++ devel/performance/Makefile @@ -13,7 +13,6 @@ BROKEN_aarch64= fails to build: gmake[2]: No rule to make target 'Performance/dependencies', needed by 'internal-doc-all_'. Stop. BROKEN_armv7= fails to build: gmake[2]: No rule to make target 'Performance/dependencies', needed by 'internal-doc-all_'. Stop. BROKEN_powerpc64= fails to build: gmake[2]: No rule to make target 'Performance/dependencies', needed by 'internal-doc-all_'. Stop. -BROKEN_FreeBSD_11= fails to build: gmake[2]: No rule to make target 'Performance/dependencies', needed by 'internal-doc-all_'. Stop. USES= gnustep USE_GNUSTEP= base build Index: devel/ptlib/Makefile =================================================================== --- devel/ptlib/Makefile +++ devel/ptlib/Makefile @@ -48,7 +48,7 @@ OPTIONS_DEFAULT+= BSDVIDEO .endif -.if (${OPSYS} == FreeBSD && ${OSVERSION} > 1200085 && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl +.if (${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_ptclib_pssl.cxx-openssl111 .else EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_ptclib_pssl.cxx Index: devel/py-keystone-engine/Makefile =================================================================== --- devel/py-keystone-engine/Makefile +++ devel/py-keystone-engine/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.TXT -BROKEN_FreeBSD_11_powerpc64= fails to install: /wrkdirs/usr/ports/devel/py-keystone-engine/work-py36/keystone-engine-0.9.1-3/src/build/llvm/lib/libkeystone.so: No such file or directory BROKEN_FreeBSD_12_powerpc64= fails to install: /wrkdirs/usr/ports/devel/py-keystone-engine/work-py36/keystone-engine-0.9.1-3/src/build/llvm/lib/libkeystone.so: No such file or directory BUILD_DEPENDS= cmake:devel/cmake Index: devel/qca/Makefile =================================================================== --- devel/qca/Makefile +++ devel/qca/Makefile @@ -50,10 +50,4 @@ TEST_TEST_TARGET= test TEST_USE= QT=network,testlib -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -IGNORE= Does not support OpenSSL < 1.1 -.endif - -.include +.include Index: devel/rubygem-rice/Makefile =================================================================== --- devel/rubygem-rice/Makefile +++ devel/rubygem-rice/Makefile @@ -9,7 +9,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11_powerpc64= fails to configure: could not find ruby.h BROKEN_FreeBSD_12_powerpc64= fails to configure: could not find ruby.h USES= gem Index: devel/zpu-gcc/Makefile =================================================================== --- devel/zpu-gcc/Makefile +++ devel/zpu-gcc/Makefile @@ -10,7 +10,6 @@ LICENSE= GPLv2 -BROKEN_FreeBSD_11_powerpc64= fails to compile on powerpc64 elfv1: libgcc2.h: conflicting types for '__structdi3' BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: libgcc2.h: conflicting types for '__structdi3' BUILD_DEPENDS= ${LOCALBASE}/zpu/bin/zpu-elf-as:devel/zpu-binutils Index: dns/bundy/Makefile =================================================================== --- dns/bundy/Makefile +++ dns/bundy/Makefile @@ -18,7 +18,6 @@ BROKEN_armv6= fails to build: Child process terminated abnormally: Segmentation fault BROKEN_armv7= fails to build: Child process terminated abnormally: Segmentation fault -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: checking for botan/botan.h... no BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: checking for botan/botan.h... no BROKEN_FreeBSD_14= fails to build: error: Boost shared memory does not compile on this system. Index: dns/gdnsd3/Makefile =================================================================== --- dns/gdnsd3/Makefile +++ dns/gdnsd3/Makefile @@ -40,14 +40,6 @@ MAXMINDDB_DESC= Enable GeoIP1 + GeoIP2 Support MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -CONFIGURE_ARGS+=--without-hardening -CFLAGS+= -fstack-protector-strong -fexceptions -ftrapv -LDFLAGS+= -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -.endif - post-patch: @${REINPLACE_CMD} -e 's|$${localstatedir}/lib/$${PACKAGE_NAME}|/var/db/${PORTNAME}|g' \ ${WRKSRC}/configure @@ -57,4 +49,4 @@ ${STAGEDIR}${PREFIX}/etc/gdnsd/zones \ ${STAGEDIR}/var/run/gdnsd -.include +.include Index: dns/ldns/Makefile =================================================================== --- dns/ldns/Makefile +++ dns/ldns/Makefile @@ -103,11 +103,6 @@ .include -.if ${PORT_OPTIONS:MDANETAUSAGE} && \ - ((${OSVERSION} < 1200084 && ${SSL_DEFAULT} == base)) -BROKEN= this option requires openssl >= 1.1.0 ${OSVERSION} ${SSL_DEFAULT} -.endif - .if ! ${PORT_OPTIONS:MGOST} NO_GOST= --disable-gost .endif Index: dns/powerdns-recursor/Makefile =================================================================== --- dns/powerdns-recursor/Makefile +++ dns/powerdns-recursor/Makefile @@ -31,7 +31,8 @@ GNU_CONFIGURE= YES CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/pdns \ --without-net-snmp \ - --without-systemd + --without-systemd \ + --with-libsodium=no SUB_FILES= pkg-message @@ -59,18 +60,7 @@ LUA_USES= lua -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} != openssl -CONFIGURE_ARGS+= --with-libdecaf \ - --with-libsodium -LIB_DEPENDS+= libdecaf.so:security/libdecaf \ - libsodium.so:security/libsodium -.else -CONFIGURE_ARGS+= --with-libsodium=no -.endif - post-install: @${MKDIR} ${STAGEDIR}/var/run/pdns-recursor -.include +.include Index: dns/powerdns/Makefile =================================================================== --- dns/powerdns/Makefile +++ dns/powerdns/Makefile @@ -28,7 +28,8 @@ --sysconfdir="${PREFIX}/etc/pdns" \ --with-boost="${LOCALBASE}" \ --with-dynmodules="pipe bind ${MODULES}" \ - --with-modules="" + --with-modules="" \ + --with-libsodium=no SCRIPTS_ENV= CURDIR2="${.CURDIR}" \ DISTNAME="${DISTNAME}" \ @@ -124,20 +125,9 @@ ZEROMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 ZEROMQ_CONFIGURE_ON= --enable-remotebackend-zeromq -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} != openssl -CONFIGURE_ARGS+= --with-libdecaf \ - --with-libsodium -LIB_DEPENDS+= libdecaf.so:security/libdecaf \ - libsodium.so:security/libsodium -.else -CONFIGURE_ARGS+= --with-libsodium=no -.endif - post-install:: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}/var/run/pdns @${STAGEDIR}${PREFIX}/sbin/pdns_server --module-dir=${STAGEDIR}${PREFIX}/lib/pdns --launch="pipe bind ${MODULES}" --config > ${STAGEDIR}${EXAMPLESDIR}/pdns.conf @${REINPLACE_CMD} -e 's;${STAGEDIR};;' -i '' ${STAGEDIR}${EXAMPLESDIR}/pdns.conf -.include +.include Index: editors/libreoffice/Makefile =================================================================== --- editors/libreoffice/Makefile +++ editors/libreoffice/Makefile @@ -120,11 +120,6 @@ OPTIONS_DEFINE= COINMP CUPS DOCS GNOME GTK3 GTK4 JAVA KF5 LTO MMEDIA PGSQL MARIADB QT5 SDK TEST WEBDAV OPTIONS_DEFAULT= CUPS JAVA MMEDIA QT5 -.if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mssl=*} -# Blocked by net/qt5-network: cannot use QT5 with default OpenSSL -OPTIONS_EXCLUDE_FreeBSD_11+= QT5 -.endif - COINMP_DESC= Enable CoinMP (deprecated) math solver GTK3_DESC= GTK+ 3 GUI toolkit support GTK4_DESC= GTK+ 4 GUI toolkit support Index: editors/libreoffice6/Makefile =================================================================== --- editors/libreoffice6/Makefile +++ editors/libreoffice6/Makefile @@ -118,11 +118,6 @@ OPTIONS_DEFINE= COINMP CUPS DOCS GNOME GTK3 I18N JAVA KF5 MMEDIA PGSQL QT5 SDK TEST WEBDAV OPTIONS_DEFAULT= CUPS MMEDIA QT5 -.if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mssl=*} -# Blocked by net/qt5-network: cannot use QT5 with default OpenSSL -OPTIONS_EXCLUDE_FreeBSD_11+= QT5 -.endif - COINMP_DESC= Enable CoinMP (deprecated) math solver GTK3_DESC= GTK+ 3 GUI toolkit support (incomplete visual style) I18N_DESC= Build i18n resources Index: emulators/i386-wine-devel/Makefile =================================================================== --- emulators/i386-wine-devel/Makefile +++ emulators/i386-wine-devel/Makefile @@ -27,7 +27,7 @@ distinfo-update: ${RM} ${.CURDIR}/distinfo~ -.for osrel in 11 12 13 14 +.for osrel in 12 13 14 ${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} ${CAT} ${.CURDIR}/distinfo >> ${.CURDIR}/distinfo~ .endfor Index: emulators/i386-wine-devel/Makefile.amd64 =================================================================== --- emulators/i386-wine-devel/Makefile.amd64 +++ emulators/i386-wine-devel/Makefile.amd64 @@ -21,7 +21,7 @@ BUNDLE_LIBS= yes PKGMESSAGE= ${WRKDIR}/pkg-message -.for osrel in 11 12 13 14 +.for osrel in 12 13 14 .if ${OSREL:C/\..*//} == ${osrel} PLIST_SUB+= OSREL${osrel}="" PLIST_SUB+= NOOSREL${osrel}="@comment " @@ -31,8 +31,8 @@ .endif .endfor -.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1104001 && ${OSVERSION} < 1200000) && !(${OSVERSION} >= 1202000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000) && !(${OSVERSION} >= 1400024)) -IGNORE= binaries compiled for FreeBSD 11.4+, 12.2+, 13.0+ and 14.0+ only +.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1202000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000) && !(${OSVERSION} >= 1400024)) +IGNORE= binaries compiled for FreeBSD 12.2+, 13.0+ and 14.0+ only .endif OPTIONS_DEFINE= GECKO MONO Index: emulators/i386-wine/Makefile =================================================================== --- emulators/i386-wine/Makefile +++ emulators/i386-wine/Makefile @@ -26,7 +26,7 @@ distinfo-update: ${RM} ${.CURDIR}/distinfo ${.CURDIR}/distinfo~ -.for osrel in 11 12 13 14 +.for osrel in 12 13 14 ${MAKE} fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} ${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} ${CAT} ${.CURDIR}/distinfo >> ${.CURDIR}/distinfo~ Index: emulators/i386-wine/Makefile.amd64 =================================================================== --- emulators/i386-wine/Makefile.amd64 +++ emulators/i386-wine/Makefile.amd64 @@ -22,7 +22,7 @@ PKGMESSAGE= ${WRKDIR}/pkg-message PORTSCOUT= limitw:1,even -.for osrel in 11 12 13 14 +.for osrel in 12 13 14 .if ${OSREL:C/\..*//} == ${osrel} PLIST_SUB+= OSREL${osrel}="" PLIST_SUB+= NOOSREL${osrel}="@comment " @@ -32,8 +32,8 @@ .endif .endfor -.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1104001 && ${OSVERSION} < 1200000) && !(${OSVERSION} >= 1202000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000) && !(${OSVERSION} >= 1400024)) -IGNORE= binaries compiled for FreeBSD 11.4+, 12.2+, 13.0+ & 14.0+ only +.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1202000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000) && !(${OSVERSION} >= 1400024)) +IGNORE= binaries compiled for FreeBSD 12.2+, 13.0+ & 14.0+ only .endif OPTIONS_DEFINE= GECKO MONO Index: emulators/libc6-shim/Makefile =================================================================== --- emulators/libc6-shim/Makefile +++ emulators/libc6-shim/Makefile @@ -8,7 +8,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11=not supported ONLY_FOR_ARCHS= amd64 USE_GITHUB= yes Index: emulators/linux_base-c7/Makefile =================================================================== --- emulators/linux_base-c7/Makefile +++ emulators/linux_base-c7/Makefile @@ -131,8 +131,7 @@ .include -.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1201524 \ - || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1300077)) +.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1300000 && ${OSVERSION} < 1300077) GLIBC_VER= 2.17-292.el7 MASTER_SITE_SUBDIR+= centos/7.7.1908/os/x86_64/Packages/:DEFAULT,amd64 \ centos/7.7.1908/updates/x86_64/Packages/:DEFAULT,amd64 \ Index: emulators/qemu-devel/Makefile =================================================================== --- emulators/qemu-devel/Makefile +++ emulators/qemu-devel/Makefile @@ -13,7 +13,6 @@ LICENSE= GPLv2 ONLY_FOR_ARCHS= amd64 powerpc powerpc64 powerpc64 powerpc64le -IGNORE_FreeBSD_11= Unable to produce Position Independent Code BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \ bash:shells/bash Index: emulators/qemu-guest-agent/Makefile =================================================================== --- emulators/qemu-guest-agent/Makefile +++ emulators/qemu-guest-agent/Makefile @@ -163,12 +163,6 @@ CONFIGURE_ARGS+= --sparc_cpu=v9 .endif -.if ${OSVERSION} < 1200000 -PKGMESSAGE= ${.CURDIR}/pkg-message-11 -.else -PKGMESSAGE= ${.CURDIR}/pkg-message -.endif - PLIST_SUB+= LINUXBOOT_DMA="" # XXX need to disable usb host code on head while it's not ported to the Index: emulators/qemu-guest-agent/pkg-message-11 =================================================================== --- emulators/qemu-guest-agent/pkg-message-11 +++ /dev/null @@ -1,24 +0,0 @@ -[ -{ type: install - message: < llvm_threads{ this, "Max LLVM Compile Threads", 0 }; - cfg::_bool thread_scheduler_enabled{ this, "Enable thread scheduler", thread_scheduler_enabled_def }; - cfg::_bool set_daz_and_ftz{ this, "Set DAZ and FTZ", false }; -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+ cfg::_enum spu_decoder{ this, "SPU Decoder", spu_decoder_type::asmjit }; -+#else - cfg::_enum spu_decoder{ this, "SPU Decoder", spu_decoder_type::llvm }; -+#endif - cfg::_bool lower_spu_priority{ this, "Lower SPU thread priority" }; - cfg::_bool spu_debug{ this, "SPU Debug" }; - cfg::_int<0, 6> preferred_spu_threads{ this, "Preferred SPU Threads", 0, true }; // Number of hardware threads dedicated to heavy simultaneous spu tasks Index: emulators/rtc/files/rtc.c =================================================================== --- emulators/rtc/files/rtc.c +++ emulators/rtc/files/rtc.c @@ -337,36 +337,18 @@ restart: increment.tv_sec = 0; increment.tv_nsec = 1000000000 / sc->var.freq; -#if P_OSREL_MAJOR(__FreeBSD_version) >= 12 timespecadd(&sc->var.lasttime, &increment, &sc->var.lasttime); timespecadd(&sc->var.lasttime, &increment, &nexttime); -#else - timespecadd(&sc->var.lasttime, &increment); - nexttime.tv_sec = sc->var.lasttime.tv_sec; - nexttime.tv_nsec = sc->var.lasttime.tv_nsec; - timespecadd(&nexttime, &increment); -#endif if (timespeccmp(&nexttime, &curtime, <)) { /* Catch up if we lag curtime */ -#if P_OSREL_MAJOR(__FreeBSD_version) >= 12 timespecsub(&curtime, &increment, &sc->var.lasttime); timespecsub(&nexttime, &curtime, &nexttime); -#else - sc->var.lasttime.tv_sec = curtime.tv_sec; - sc->var.lasttime.tv_nsec = curtime.tv_nsec; - timespecsub(&sc->var.lasttime, &increment); - timespecsub(&nexttime, &curtime); -#endif #if 0 printf("lagging curtime by %d.%ld\n", nexttime.tv_sec, nexttime.tv_nsec); #endif goto restart; } else { -#if P_OSREL_MAJOR(__FreeBSD_version) >= 12 timespecsub(&nexttime, &curtime, &nexttime); -#else - timespecsub(&nexttime, &curtime); -#endif sleep = nexttime.tv_nsec / (1000000000 / hz); } callout_reset(&sc->var.rtc_handle, sleep, &rtc_callback, xtp); Index: emulators/xen-kernel/Makefile =================================================================== --- emulators/xen-kernel/Makefile +++ emulators/xen-kernel/Makefile @@ -34,10 +34,6 @@ IGNORE= only supported on FreeBSD .endif -.if ${OSVERSION} < 1200074 -IGNORE= only supported on FreeBSD 12.0 or newer -.endif - # The ports native 'build' target cannot be used because it sets # CFLAGS, and that breaks the Xen build system. do-build: Index: emulators/yuzu/files/patch-freebsd11 =================================================================== --- emulators/yuzu/files/patch-freebsd11 +++ /dev/null @@ -1,46 +0,0 @@ -Drop after FreeBSD 11 EOL. OpenSSL 1.0 still works fine. - --- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR: Found unsuitable version "1.0.2u", but required is at least "1.1" (found /usr/lib/libcrypto.so, ) -CMake Error at externals/CMakeLists.txt:83 (add_subdirectory): - -In file included from src/core/hle/service/bcat/backend/boxcat.cpp:6: -externals/./httplib/httplib.h:214:2: error: Sorry, OpenSSL versions prior to 1.1.1 are not supported -#error Sorry, OpenSSL versions prior to 1.1.1 are not supported - ^ - ---- externals/CMakeLists.txt.orig 2020-11-18 04:02:27 UTC -+++ externals/CMakeLists.txt -@@ -73,7 +73,7 @@ if (NOT LIBZIP_FOUND) - endif() - - if (ENABLE_WEB_SERVICE) -- find_package(OpenSSL 1.1) -+ find_package(OpenSSL) - if (OPENSSL_FOUND) - set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto) - else() ---- externals/cpp-httplib/httplib.h.orig 2021-06-18 12:45:50 UTC -+++ externals/cpp-httplib/httplib.h -@@ -219,10 +219,6 @@ using socket_t = int; - #include - #include - --#if OPENSSL_VERSION_NUMBER < 0x1010100fL --#error Sorry, OpenSSL versions prior to 1.1.1 are not supported --#endif -- - #if OPENSSL_VERSION_NUMBER < 0x10100000L - #include - inline const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) { -@@ -6729,7 +6725,11 @@ static SSLInit sslinit_; - inline SSLServer::SSLServer(const char *cert_path, const char *private_key_path, - const char *client_ca_cert_file_path, - const char *client_ca_cert_dir_path) { -+#if OPENSSL_VERSION_NUMBER < 0x10100001L -+ ctx_ = SSL_CTX_new(SSLv23_server_method()); -+#else - ctx_ = SSL_CTX_new(TLS_method()); -+#endif - - if (ctx_) { - SSL_CTX_set_options(ctx_, Index: finance/ledger/Makefile =================================================================== --- finance/ledger/Makefile +++ finance/ledger/Makefile @@ -12,7 +12,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md -BROKEN_FreeBSD_11_powerpc64= fails to link on powerpc64 elfv1: ibledger.so.3: undefined reference to boost::match_results BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: ibledger.so.3: undefined reference to boost::match_results BUILD_DEPENDS= ${LOCALBASE}/include/utf8cpp/utf8.h:devel/utf8cpp Index: french/aster/Makefile =================================================================== --- french/aster/Makefile +++ french/aster/Makefile @@ -92,8 +92,7 @@ .include "${.CURDIR}/../../french/aster/bsd.aster.mk" .include -.if ${OPSYS} == FreeBSD && ((${OSREL:R} <= 12 && ${OSVERSION} < 1201506) \ - || (${OSREL:R} > 12 && ${OSVERSION} < 1300068)) +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068 BROKEN= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system .endif Index: ftp/bsdftpd-ssl/Makefile =================================================================== --- ftp/bsdftpd-ssl/Makefile +++ ftp/bsdftpd-ssl/Makefile @@ -29,10 +29,6 @@ .include -.if ${SSL_DEFAULT} == base -BROKEN_FreeBSD_11= undefined reference to `X509_OBJECT_new' -.endif - .if ${PORT_OPTIONS:MSERVER} && ${PORT_OPTIONS:MEXAMPLES} SUB_FILES= pkg-message .endif Index: games/0ad/Makefile =================================================================== --- games/0ad/Makefile +++ games/0ad/Makefile @@ -10,7 +10,6 @@ MAINTAINER= madpilot@FreeBSD.org COMMENT= Real-time strategy (RTS) game of ancient warfare -BROKEN_FreeBSD_11= fails to link: undefined reference to gloox::Client::Client(...) BROKEN_aarch64= fails to compile: no member named verifyHeapAccessDisassembly BROKEN_armv6= fails to link: fatal error: conftest: Unknown error: -1 BROKEN_armv7= fails to link: fatal error: conftest: Unknown error: -1 Index: games/eduke32/Makefile =================================================================== --- games/eduke32/Makefile +++ games/eduke32/Makefile @@ -76,7 +76,7 @@ .include -.if (${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == riscv64) || ${OSVERSION} < 1202000 +.if ${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == riscv64 MAKE_ARGS+= LTO=0 .endif Index: games/fishsupper/Makefile =================================================================== --- games/fishsupper/Makefile +++ games/fishsupper/Makefile @@ -12,7 +12,6 @@ BUILD_DEPENDS= ${LOCALBASE}/include/boost/bind.hpp:devel/boost-libs -BROKEN_FreeBSD_11_powerpc64= fails to compile: Log.h: expected initializer before '<' token BROKEN_FreeBSD_12_powerpc64= fails to compile: Log.h: expected initializer before '<' token GNU_CONFIGURE= yes Index: games/hyperrogue/Makefile =================================================================== --- games/hyperrogue/Makefile +++ games/hyperrogue/Makefile @@ -9,8 +9,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11= does not build: hyperrogue-hyper.o: file not recognized: File format not recognized - LIB_DEPENDS= libpng.so:graphics/png USE_GITHUB= yes Index: games/lander/Makefile =================================================================== --- games/lander/Makefile +++ games/lander/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: could not link against boost_filesystem-boost_filesystem BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: could not link against boost_filesystem-boost_filesystem LIB_DEPENDS= libfreetype.so:print/freetype2 \ Index: games/libretro-snes9x/Makefile =================================================================== --- games/libretro-snes9x/Makefile +++ games/libretro-snes9x/Makefile @@ -11,8 +11,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror pkg-mirror auto-accept -BROKEN_FreeBSD_11= linker error: unrecognized option '-plugin' - USES= compiler:c++11-lib gmake USE_LDCONFIG= yes Index: games/libretro-snes9x2010/Makefile =================================================================== --- games/libretro-snes9x2010/Makefile +++ games/libretro-snes9x2010/Makefile @@ -21,16 +21,10 @@ PLIST_FILES= lib/libretro/snes9x2010_libretro.so -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -MAKE_ENV= LTO= -.else MAKE_ENV= LTO=-flto # may drop this branch on next port update -.endif do-install: @${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro ${INSTALL_LIB} ${WRKSRC}/snes9x2010_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro -.include +.include Index: games/linux-steam-utils/Makefile =================================================================== --- games/linux-steam-utils/Makefile +++ games/linux-steam-utils/Makefile @@ -9,7 +9,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= not tested at all ONLY_FOR_ARCHS= amd64 RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ Index: games/rlvm/Makefile =================================================================== --- games/rlvm/Makefile +++ games/rlvm/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv2 GPLv3 MIT LICENSE_COMB= multi -BROKEN_FreeBSD_11_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ Index: graphics/Makefile =================================================================== --- graphics/Makefile +++ graphics/Makefile @@ -144,7 +144,6 @@ SUBDIR += drawpile SUBDIR += drm-current-kmod SUBDIR += drm-devel-kmod - SUBDIR += drm-fbsd11.2-kmod SUBDIR += drm-fbsd12.0-kmod SUBDIR += drm-fbsd13-kmod SUBDIR += drm-kmod Index: graphics/drm-fbsd11.2-kmod/Makefile =================================================================== --- graphics/drm-fbsd11.2-kmod/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# Created by: Johannes Dieterich - -PORTNAME= drm-fbsd11.2-kmod -PORTVERSION= 4.11g20200420 -PORTREVISION= 1 -CATEGORIES= graphics - -MAINTAINER= x11@FreeBSD.org -COMMENT= DRM modules for the linuxkpi-based KMS components - -LICENSE= BSD2CLAUSE MIT GPLv2 -LICENSE_COMB= multi - -ONLY_FOR_ARCHS= amd64 -ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 - -RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod - -OPTIONS_DEFINE= DEBUG - -USES= kmod uidfix - -USE_GITHUB= yes -GH_ACCOUNT= FreeBSDDesktop -GH_PROJECT= kms-drm -GH_TAGNAME= d7d433d - -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 -IGNORE= only supported on FreeBSD 11. -.endif - -.if ${OPSYS} != FreeBSD -IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) -.endif - -.include Index: graphics/drm-fbsd11.2-kmod/distinfo =================================================================== --- graphics/drm-fbsd11.2-kmod/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1587398846 -SHA256 (FreeBSDDesktop-kms-drm-4.11g20200420-d7d433d_GH0.tar.gz) = ad292fa6508b98b2f2c576633b79eb080bf9cc84b83bca18dbbb66d7a3c429eb -SIZE (FreeBSDDesktop-kms-drm-4.11g20200420-d7d433d_GH0.tar.gz) = 7362180 Index: graphics/drm-fbsd11.2-kmod/pkg-descr =================================================================== --- graphics/drm-fbsd11.2-kmod/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. -Currently corresponding to Linux 4.11 DRM. -This version is for FreeBSD 11.4. -amdgpu and radeonkms are known to fail with EFI boot. - -WWW: https://github.com/FreeBSDDesktop/kms-drm Index: graphics/drm-fbsd11.2-kmod/pkg-message =================================================================== --- graphics/drm-fbsd11.2-kmod/pkg-message +++ /dev/null @@ -1,21 +0,0 @@ -[ -{ type: install - message: < -.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1200058 || ${OSVERSION} >= 1300000) +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000 IGNORE= only supported on FreeBSD 12. .endif .if ${OPSYS} != FreeBSD Index: graphics/drm-kmod/Makefile =================================================================== --- graphics/drm-kmod/Makefile +++ graphics/drm-kmod/Makefile @@ -16,9 +16,7 @@ IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) .else .if ${ARCH} == "amd64" -.if ${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000 -RUN_DEPENDS= ${KMODDIR}/drm.ko:graphics/drm-fbsd11.2-kmod -.elif ${OSVERSION} >= 1200058 && ${OSVERSION} < 1300000 +.if ${OSVERSION} < 1300000 RUN_DEPENDS= ${KMODDIR}/drm.ko:graphics/drm-fbsd12.0-kmod .elif ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300136 IGNORE= not supported on older 13, no kernel support Index: graphics/dspdfviewer/Makefile =================================================================== --- graphics/dspdfviewer/Makefile +++ graphics/dspdfviewer/Makefile @@ -39,7 +39,7 @@ CFLAGS+= -Wno-error=undefined-func-template .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang +.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 Index: graphics/mesa-devel/files/patch-freebsd11 =================================================================== --- graphics/mesa-devel/files/patch-freebsd11 +++ /dev/null @@ -1,34 +0,0 @@ -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225302 - -../src/util/build_id.c:42:4: error: unknown type name 'Elf_Nhdr' - ElfW(Nhdr) nhdr; - ^ -../src/util/build_id.c:38:20: note: expanded from macro 'ElfW' -#define ElfW(type) Elf_##type - ^ -:101:1: note: expanded from here -Elf_Nhdr -^ -../src/util/build_id.c:91:33: error: use of undeclared identifier 'Elf_Nhdr' - size_t offset = sizeof(ElfW(Nhdr)) + - ^ -../src/util/build_id.c:38:20: note: expanded from macro 'ElfW' -#define ElfW(type) Elf_##type - ^ -:102:1: note: expanded from here -Elf_Nhdr -^ - ---- src/util/build_id.c.orig 2020-05-30 21:28:01 UTC -+++ src/util/build_id.c -@@ -38,6 +38,10 @@ - #define ElfW(type) Elf_##type - #endif - -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+typedef Elf_Note Elf_Nhdr; -+#endif -+ - struct build_id_note { - ElfW(Nhdr) nhdr; - Index: graphics/mesa-dri/Makefile.common =================================================================== --- graphics/mesa-dri/Makefile.common +++ graphics/mesa-dri/Makefile.common @@ -81,10 +81,6 @@ PKGINSTALL= ${.CURDIR}/pkg-install PKGDEINSTALL= ${.CURDIR}/pkg-deinstall -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_util_build__id.c -.endif - .include BINARY_ALIAS+= python3=${PYTHON_VERSION} Index: graphics/mesa-dri/files/extra-patch-src_util_build__id.c =================================================================== --- graphics/mesa-dri/files/extra-patch-src_util_build__id.c +++ /dev/null @@ -1,15 +0,0 @@ -# Elf_ doesn't exist, use Elf32_ or Elf64_ -# ---- src/util/build_id.c.orig 2017-12-21 17:31:22 UTC -+++ src/util/build_id.c -@@ -38,6 +38,10 @@ - #define ElfW(type) Elf_##type - #endif - -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+typedef Elf_Note Elf_Nhdr; -+#endif -+ - struct build_id_note { - ElfW(Nhdr) nhdr; - Index: graphics/pcl-pointclouds/Makefile =================================================================== --- graphics/pcl-pointclouds/Makefile +++ graphics/pcl-pointclouds/Makefile @@ -11,7 +11,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_i386= undefined reference to `__atomic_load' -BROKEN_FreeBSD_11= surface/CMakeFiles/pcl_surface.dir/src/mls.cpp.o: file not recognized: File format not recognized NOT_FOR_ARCHS= armv6 armv7 NOT_FOR_ARCHS_REASON= common/include/pcl/pcl_macros.h:420:4: error: aligned_malloc not supported on your platform Index: graphics/pixie/Makefile =================================================================== --- graphics/pixie/Makefile +++ graphics/pixie/Makefile @@ -17,7 +17,6 @@ BROKEN_armv6= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer BROKEN_armv7= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer BROKEN_riscv64= fails to compile: ri/atomic.h:149:9: use of undeclared identifier CRenderer -BROKEN_FreeBSD_11_powerpc64= fails to compile on powerpc64 elfv1: ../common/mathSpec.h:548:37: error: 'max' was not declared in this scope BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: ../common/mathSpec.h:548:37: error: 'max' was not declared in this scope LIB_DEPENDS= libOpenEXR.so:graphics/openexr \ Index: graphics/rawtherapee/Makefile =================================================================== --- graphics/rawtherapee/Makefile +++ graphics/rawtherapee/Makefile @@ -103,19 +103,6 @@ # ------------------------------------------------------------------- -.if (${OPSYS} == FreeBSD) && (${OSVERSION} < 1200000) -# can't save 16-bit TIFF on FreeBSD 11.3 and 11.4 i386 -# "TIFFWriteDirectoryTagIfdIfd8Array: Attempt to write value -# larger than 0xFFFFFFFF in Classic TIFF file" -# -# And no, the maintainer is not going to spend any time on it -# unless there is a tested proven well-integrated patch offered. -# -# Tier-2 only supported on the latest stable FreeBSD release. -ONLY_FOR_ARCHS= amd64 -ONLY_FOR_ARCHS_REASON=On i386, rawtherapee malfunctions under FreeBSD 11.x - upgrade to 12.x -.endif - .if (${OPSYS} == FreeBSD) && (${OSVERSION} >= 1400000) # don't waste everybody's time with Tier-2 and moving targets. # might add ARM64 later on if they are established by the Index: irc/ircproxy/Makefile =================================================================== --- irc/ircproxy/Makefile +++ irc/ircproxy/Makefile @@ -41,10 +41,8 @@ post-patch: @${REINPLACE_CMD} -e 's|EUSER="ircproxy"|EUSER="ircproxyd"|g; \ s|EGROUP="users"|EGROUP="ircproxyd"|g' ${WRKSRC}/data/${PORTNAME}d.conf -.if ${OSVERSION} > 1200084 @${REINPLACE_CMD} -e '/gnutls/!s,SSL_library_init,OPENSSL_init_ssl,' \ ${WRKSRC}/configure.in -.endif post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/imkpasswd ${STAGEDIR}${PREFIX}/bin/ircproxyd Index: java/bootstrap-openjdk11/Makefile =================================================================== --- java/bootstrap-openjdk11/Makefile +++ java/bootstrap-openjdk11/Makefile @@ -29,9 +29,7 @@ .include # Support aarch64, armv6 and armv7 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 ONLY_FOR_ARCHS+=aarch64 armv6 armv7 -.endif .if ${ARCH} == aarch64 || ${ARCH:Marmv*} DISTNAME= ${JDK_PORT}-${JDK_ARCH}-12-${PORTVERSION} Index: java/openjdk11/Makefile =================================================================== --- java/openjdk11/Makefile +++ java/openjdk11/Makefile @@ -12,7 +12,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -114,11 +114,6 @@ .include -# Support aarch64, armv6 and armv7 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 armv6 armv7 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk11 \ ${LOCALBASE}/bootstrap-openjdk11 Index: java/openjdk12/Makefile =================================================================== --- java/openjdk12/Makefile +++ java/openjdk12/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -102,11 +102,6 @@ .include -# Support aarch64 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk12 \ ${LOCALBASE}/openjdk11 \ ${LOCALBASE}/bootstrap-openjdk11 Index: java/openjdk13/Makefile =================================================================== --- java/openjdk13/Makefile +++ java/openjdk13/Makefile @@ -9,7 +9,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -101,11 +101,6 @@ .include -# Support aarch64 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk13 \ ${LOCALBASE}/openjdk12 Index: java/openjdk14/Makefile =================================================================== --- java/openjdk14/Makefile +++ java/openjdk14/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -103,11 +103,6 @@ .include -# Support aarch64 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk14 \ ${LOCALBASE}/openjdk13 Index: java/openjdk15/Makefile =================================================================== --- java/openjdk15/Makefile +++ java/openjdk15/Makefile @@ -9,7 +9,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -102,11 +102,6 @@ .include -# Support aarch64 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk15 \ ${LOCALBASE}/openjdk14 Index: java/openjdk16/Makefile =================================================================== --- java/openjdk16/Makefile +++ java/openjdk16/Makefile @@ -9,7 +9,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ autoconf>0:devel/autoconf \ @@ -104,11 +104,6 @@ .include -# Support aarch64 on FreeBSD 12 and up -.if ${OSVERSION} >= 1200500 -ONLY_FOR_ARCHS+=aarch64 -.endif - BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk16 \ ${LOCALBASE}/openjdk15 Index: lang/ccl/Makefile =================================================================== --- lang/ccl/Makefile +++ lang/ccl/Makefile @@ -26,11 +26,6 @@ .include "${.CURDIR}/../../devel/cl-asdf/bsd.cl-asdf.mk" -.include - -.if ${OSVERSION} < 1200000 -IGNORE= does not build on FreeBSD < 12.0 -.endif BUILD_DEPENDS+= as:devel/binutils LISP_ARCH= x8664 @@ -64,4 +59,4 @@ done ${INSTALL_SCRIPT} ${WRKDIR}/ccl.sh ${STAGEDIR}${PREFIX}/bin/ccl -.include +.include Index: lang/clover/Makefile =================================================================== --- lang/clover/Makefile +++ lang/clover/Makefile @@ -13,7 +13,6 @@ ONLY_FOR_ARCHS= i386 amd64 powerpc64le powerpc64 ONLY_FOR_ARCHS_REASON= Clover needs a GPU supported by the Radeon KMS driver -BROKEN_FreeBSD_11= undefined reference to `vl_video_buffer_plane_order' .include .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" Index: lang/crystal/Makefile =================================================================== --- lang/crystal/Makefile +++ lang/crystal/Makefile @@ -11,7 +11,6 @@ LICENSE= APACHE20 -IGNORE_FreeBSD_11= prebuilt bootstrap only built for FreeBSD >=12 (ino64) ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= requires prebuilt bootstrap compiler Index: lang/gcc6-aux/Makefile =================================================================== --- lang/gcc6-aux/Makefile +++ lang/gcc6-aux/Makefile @@ -50,17 +50,7 @@ .if ${OPSYS} == FreeBSD ONLY_FOR_ARCHS= aarch64 amd64 i386 MODERN_BINUTILS= yes -. if ${ARCH} == aarch64 && ${OSVERSION} > 1200075 #ino64 -BOOTSTRAP_COMPILER= ada-bootstrap.aarch64.freebsd.120.tar.bz2 -. elif ${ARCH} == aarch64 -BOOTSTRAP_COMPILER= ada-bootstrap.aarch64.freebsd.111.tar.bz2 -. elif ${ARCH} == amd64 && ${OSVERSION} > 1200030 #ino64 -BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.freebsd.120.tar.bz2 -. elif ${ARCH} == i386 && ${OSVERSION} > 1200030 #ino64 -BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.freebsd.120.tar.bz2 -. else -BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.freebsd.100B.tar.bz2 -. endif +BOOTSTRAP_COMPILER= ada-bootstrap.${ARCH}.freebsd.120.tar.bz2 .endif .if ${OPSYS} == DragonFly ONLY_FOR_ARCHS= x86_64 Index: lang/ghc/Makefile =================================================================== --- lang/ghc/Makefile +++ lang/ghc/Makefile @@ -132,10 +132,7 @@ .if empty(PORT_OPTIONS:MBOOT) BOOTSTRAPS_SUFFIX?= ${BOOTSTRAPS_SUFFIX_${ARCH}} BOOTSTRAPS_SUFFIX_powerpc64?= -${PPC_ABI:tl} -. if ${OSVERSION} < 1200000 && (${ARCH} == amd64 || ${ARCH} == i386) -ELEVEN_SUFX= 11 -. endif -DISTFILES+= ghc-${BOOT_GHC_VERSION}-boot-${ARCH}-freebsd${BOOTSTRAPS_SUFFIX}${ELEVEN_SUFX}${EXTRACT_SUFX}:boot +DISTFILES+= ghc-${BOOT_GHC_VERSION}-boot-${ARCH}-freebsd${BOOTSTRAPS_SUFFIX}${EXTRACT_SUFX}:boot .endif # MBOOT .if ${ARCH} == aarch64 || ${ARCH:Marmv*} Index: lang/gnustep-base/Makefile =================================================================== --- lang/gnustep-base/Makefile +++ lang/gnustep-base/Makefile @@ -12,7 +12,6 @@ LICENSE= GPLv3 LGPL3 LICENSE_COMB= multi -BROKEN_FreeBSD_11_powerpc64= fails to link: ld.lld: error: /usr/src/lib/csu/common/crtend.c:55: relocation R_PPC64_ADDR16_DS out of range: -32776 is not in [-32768, 32767] BROKEN_FreeBSD_12_powerpc64= fails to link: ld.lld: error: /usr/src/lib/csu/common/crtend.c:55: relocation R_PPC64_ADDR16_DS out of range: -32776 is not in [-32768, 32767] LIB_DEPENDS+= libffi.so:devel/libffi Index: lang/go/Makefile =================================================================== --- lang/go/Makefile +++ lang/go/Makefile @@ -65,12 +65,6 @@ GOARM_armv6= 6 GOARM_armv7= 7 -.include - -.if ${ARCH} == aarch64 && ${OSVERSION} < 1200000 -IGNORE= aarch64 support requires FreeBSD 12.0 or newer -.endif - post-patch: @${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash @@ -126,4 +120,4 @@ ${RM} ${DISTINFO_FILE}.tmp .endif -.include +.include Index: lang/hermes/Makefile =================================================================== --- lang/hermes/Makefile +++ lang/hermes/Makefile @@ -25,12 +25,6 @@ BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD} -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1201518 -BROKEN= needs pthread_getname_np from OSVERSION 1201518 or above -.endif - do-test: # some tests are known to fail: https://github.com/facebook/hermes/issues/347 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHERMES_ENABLE_TEST_SUITE:BOOL=ON ${CMAKE_SOURCE_PATH} && \ Index: lang/ldc/Makefile =================================================================== --- lang/ldc/Makefile +++ lang/ldc/Makefile @@ -44,7 +44,7 @@ CFLAGS+= -fPIC .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200029 +.if ${OPSYS} == FreeBSD EXTRA_PATCHES= ${PATCHDIR}/fbsd12-* .endif Index: lang/luajit-openresty/Makefile =================================================================== --- lang/luajit-openresty/Makefile +++ lang/luajit-openresty/Makefile @@ -39,15 +39,9 @@ USE_GCC=yes .endif -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -MAKE_ARGS+= XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0 -.endif - post-install: ${LN} -sf ${PORTNAME}-${LUAJIT_VERSION} \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 -.include +.include Index: lang/perl5-devel/Makefile =================================================================== --- lang/perl5-devel/Makefile +++ lang/perl5-devel/Makefile @@ -46,7 +46,8 @@ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure -CONFIGURE_ARGS= -Darchlib=${PREFIX}/${_ARCH_LIB} \ +CONFIGURE_ARGS= -Accflags='-DUSE_THREAD_SAFE_LOCALE' \ + -Darchlib=${PREFIX}/${_ARCH_LIB} \ -Dcc="${CC}" \ -Dcf_by=${MAINTAINER:C,@.*,,} \ -Dcf_email=${MAINTAINER} \ @@ -197,10 +198,6 @@ .include .sinclude "${_PERL5_DEFAULT_FILE}" -.if ${OSVERSION} >= 1200004 -CONFIGURE_ARGS+= -Accflags='-DUSE_THREAD_SAFE_LOCALE' -.endif - # if this port is default due PERL5_DEFAULT # change PKGNAME to reflect this .if ${PERL_VER} == ${PERL5_DEFAULT} || ${PERL5_DEFAULT} == devel # XXX Remove devel case Index: lang/perl5.30/Makefile =================================================================== --- lang/perl5.30/Makefile +++ lang/perl5.30/Makefile @@ -43,7 +43,8 @@ -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dusenm=n \ -Dcc="${CC}" -Duseshrplib -Dinc_version_list=none \ -Dcf_by=${MAINTAINER:C,@.*,,} -Dcf_email=${MAINTAINER} \ - -Dcf_time="`${STAT} -t \"%a %b %d %T %Z %Y\" -f %Sm ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}`" + -Dcf_time="`${STAT} -t \"%a %b %d %T %Z %Y\" -f %Sm ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}`" \ + -Accflags='-DUSE_THREAD_SAFE_LOCALE' # Keep the following two in sync. # lddlflags is used for all .so linking # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. @@ -166,10 +167,6 @@ .include .sinclude "${_PERL5_DEFAULT_FILE}" -.if ${OSVERSION} >= 1200004 -CONFIGURE_ARGS+= -Accflags='-DUSE_THREAD_SAFE_LOCALE' -.endif - # if this port is default due PERL5_DEFAULT # change PKGNAME to reflect this .if ${PERL_VER} == ${PERL5_DEFAULT} Index: lang/perl5.32/Makefile =================================================================== --- lang/perl5.32/Makefile +++ lang/perl5.32/Makefile @@ -52,7 +52,8 @@ -sde \ -Ui_iconv \ -Ui_malloc \ - -Uinstallusrbinperl + -Uinstallusrbinperl \ + -Accflags='-DUSE_THREAD_SAFE_LOCALE' # Keep the following two in sync. # lddlflags is used for all .so linking # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. @@ -172,10 +173,6 @@ .include .sinclude "${_PERL5_DEFAULT_FILE}" -.if ${OSVERSION} >= 1200004 -CONFIGURE_ARGS+= -Accflags='-DUSE_THREAD_SAFE_LOCALE' -.endif - # if this port is default due PERL5_DEFAULT # change PKGNAME to reflect this .if ${PERL_VER} == ${PERL5_DEFAULT} Index: lang/perl5.34/Makefile =================================================================== --- lang/perl5.34/Makefile +++ lang/perl5.34/Makefile @@ -52,7 +52,8 @@ -sde \ -Ui_iconv \ -Ui_malloc \ - -Uinstallusrbinperl + -Uinstallusrbinperl \ + -Accflags='-DUSE_THREAD_SAFE_LOCALE' # Keep the following two in sync. # lddlflags is used for all .so linking # shrpldflags is used for libperl.so, so remove all the extra bits inherited from lddlflags. @@ -172,10 +173,6 @@ .include .sinclude "${_PERL5_DEFAULT_FILE}" -.if ${OSVERSION} >= 1200004 -CONFIGURE_ARGS+= -Accflags='-DUSE_THREAD_SAFE_LOCALE' -.endif - # if this port is default due PERL5_DEFAULT # change PKGNAME to reflect this .if ${PERL_VER} == ${PERL5_DEFAULT} Index: lang/python310/Makefile =================================================================== --- lang/python310/Makefile +++ lang/python310/Makefile @@ -112,8 +112,8 @@ .endif # Python 3.10 requires OpenSSL >= 1.1.1 (PEP 644), so with -# older OpenSSL or libressl, some modules are not built -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 && !${SSL_DEFAULT:Mopenssl*} || ${SSL_DEFAULT:Mlibressl*} +# libressl, some modules are not built +.if ${SSL_DEFAULT:Mlibressl*} PLIST_SUB+= SUPPORTED_OPENSSL="@comment " .else PLIST_SUB+= SUPPORTED_OPENSSL="" Index: lang/rust-bootstrap/Makefile =================================================================== --- lang/rust-bootstrap/Makefile +++ lang/rust-bootstrap/Makefile @@ -67,8 +67,6 @@ .if ${OPSYS} != FreeBSD IGNORE= is only for FreeBSD -.elif ${OSVERSION} < 1200502 -IGNORE= will not build on 12.0 due to old toolchain; 11.x untested .endif .if ${FLAVOR} == powerpc64le && ${OSVERSION} < 1300116 IGNORE= will not build on 12.x due to old system Index: lang/rust/Makefile =================================================================== --- lang/rust/Makefile +++ lang/rust/Makefile @@ -24,8 +24,6 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT -IGNORE_FreeBSD_11_powerpc64= is missing a bootstrap for FreeBSD 11.x powerpc64 -IGNORE_FreeBSD_11_powerpc= is missing a bootstrap for FreeBSD 11.x powerpc IGNORE_FreeBSD_12_powerpc= is missing a bootstrap for FreeBSD 12.x powerpc ONLY_FOR_ARCHS?= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le \ powerpc @@ -111,11 +109,6 @@ STRIP_CMD= ${LOCALBASE}/bin/strip # unsupported e_type with base strip .endif -# remove when 11.4 is EOL -.if ${ARCH} == aarch64 && ${OSVERSION} < 1202000 -IGNORE= fails to run due to a bug in rtld, update to 12.2-RELEASE or newer -.endif - .ifdef QEMU_EMULATING IGNORE= fails to build with qemu-user-static .endif Index: lang/zig-devel/Makefile =================================================================== --- lang/zig-devel/Makefile +++ lang/zig-devel/Makefile @@ -11,7 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= expects getrandom(2) which is unavailable on FreeBSD < 12.0 ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= not yet supported Index: lang/zig/Makefile =================================================================== --- lang/zig/Makefile +++ lang/zig/Makefile @@ -9,7 +9,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= expects getrandom(2) which is unavailable on FreeBSD < 12.0 ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= not yet supported Index: mail/imapfilter/Makefile =================================================================== --- mail/imapfilter/Makefile +++ mail/imapfilter/Makefile @@ -10,8 +10,6 @@ LICENSE= MIT -BROKEN_FreeBSD_11=Requires openssl111 to build - LIB_DEPENDS= libpcre2-8.so:devel/pcre2 USES= lua ssl Index: mail/isync/Makefile =================================================================== --- mail/isync/Makefile +++ mail/isync/Makefile @@ -27,16 +27,10 @@ CPPFLAGS+= -I${BDB_INCLUDE_DIR} LDFLAGS+= -L${BDB_LIB_DIR} -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -BROKEN= requires OpenSSL 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=openssl to /etc/make.conf -.endif - post-patch: @${REINPLACE_CMD} -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|\$$(docdir)/examples|\$$(sysconfdir)|g' \ ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} -e 's|-ansi||g' ${WRKSRC}/${CONFIGURE_SCRIPT} -.include +.include Index: mail/opensmtpd-devel/Makefile =================================================================== --- mail/opensmtpd-devel/Makefile +++ mail/opensmtpd-devel/Makefile @@ -62,7 +62,7 @@ .include .if ${OPSYS} == FreeBSD && \ - ((${OSVERSION} > 1200084 && ${SSL_DEFAULT} == "base") || \ + ((${SSL_DEFAULT} == "base") || \ (${SSL_DEFAULT} == "openssl")) BROKEN= Incompatible with Openssl 1.1.x yet .endif Index: mail/opensmtpd/Makefile =================================================================== --- mail/opensmtpd/Makefile +++ mail/opensmtpd/Makefile @@ -55,14 +55,7 @@ --with-user-queue=_smtpq \ --with-group-queue=_smtpq -.include - -.if ${OPSYS} == FreeBSD && \ - (${OSVERSION} < 1200084 && ${SSL_DEFAULT} == "base") -BROKEN= Openssl 1.0 API is EoL, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=[openssl|libressl*] to /etc/make.conf -.endif - post-install-TABLE_DB-on: @${LN} -sf ${PREFIX}/sbin/smtpctl ${STAGEDIR}${PREFIX}/libexec/opensmtpd/makemap -.include +.include Index: mail/postfix-current/Makefile =================================================================== --- mail/postfix-current/Makefile +++ mail/postfix-current/Makefile @@ -87,7 +87,7 @@ MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}" -.if (${OSREL:R} < 12 && ${SSL_DEFAULT} == base) || (${SSL_DEFAULT} == libressl) +.if ${SSL_DEFAULT} == libressl BROKEN= error: OpenSSL-1.1.1 is the minimum supported version. \ LibreSSL is not supported .endif Index: mail/postfix/Makefile =================================================================== --- mail/postfix/Makefile +++ mail/postfix/Makefile @@ -87,7 +87,7 @@ MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}" -.if (${OSREL:R} < 12 && ${SSL_DEFAULT} == base) || (${SSL_DEFAULT} == libressl) +.if ${SSL_DEFAULT} == libressl BROKEN= error: OpenSSL-1.1.1 is the minimum supported version. \ LibreSSL is not supported .endif Index: mail/qpopper/Makefile =================================================================== --- mail/qpopper/Makefile +++ mail/qpopper/Makefile @@ -122,7 +122,7 @@ .endif # openssl-1.1.1 no longer has SSLv2 support -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 +.if ${OPSYS} == FreeBSD CFLAGS+= -DOPENSSL_NO_SSL2 CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" .endif Index: mail/sendmail/Makefile =================================================================== --- mail/sendmail/Makefile +++ mail/sendmail/Makefile @@ -77,10 +77,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -PKGNAMESUFFIX?= ${TLS_SUFFIX}${SASL_SUFFIX}${LDAP_SUFFIX}${BDB_SUFFIX}${PKGNAMESUFFIX2} -.endif - .if ${PORT_OPTIONS:MSHMEM} && !defined(BUILDING_INDEX) IPCCHECK!= ipcrm -q 0 2>&1 || true .if ${IPCCHECK:Mimplemented} Index: math/clblas/Makefile =================================================================== --- math/clblas/Makefile +++ math/clblas/Makefile @@ -12,7 +12,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11_powerpc64= src/library/tools/tune/tune.c:137: error: 'CLOCK_REALTIME' undeclared (first use in this function) BROKEN_FreeBSD_12_powerpc64= src/library/tools/tune/tune.c:137: error: 'CLOCK_REALTIME' undeclared (first use in this function) BUILD_DEPENDS= opencl>=0:devel/opencl Index: math/libflame/Makefile =================================================================== --- math/libflame/Makefile +++ math/libflame/Makefile @@ -63,10 +63,6 @@ CONFIGURE_ARGS+= --enable-multithreading=no .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200060 -IGNORE= requires a newer linker such as lld -.endif - .if !(defined(USE_GCC) || !empty(CC:M*gcc4*)) CONFIGURE_ARGS+= --disable-autodetect-f77-ldflags \ --disable-autodetect-f77-name-mangling Index: math/openturns/Makefile =================================================================== --- math/openturns/Makefile +++ math/openturns/Makefile @@ -10,8 +10,6 @@ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING.LESSER -BROKEN_FreeBSD_11= SymbolicParserExprTk.cxx.o: file not recognized: File format not recognized - BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ flex:textproc/flex \ spectra>0:math/spectra Index: math/py-ducc0/Makefile =================================================================== --- math/py-ducc0/Makefile +++ math/py-ducc0/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= ducc.o: file not recognized: File format not recognized - BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} Index: math/pynac/Makefile =================================================================== --- math/pynac/Makefile +++ math/pynac/Makefile @@ -33,10 +33,4 @@ USE_LDCONFIG= yes TEST_TARGET= check -.include - -.if ${PORT_OPTIONS:MGIAC} -BROKEN_FreeBSD_11= libgiac is broken (undefined reference to `__divmodti4@GCC_7.0.0') -.endif - .include Index: misc/free42/Makefile =================================================================== --- misc/free42/Makefile +++ misc/free42/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11= error: unknown type name 'cha'; did you mean 'char'? - LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 Index: misc/xplr/Makefile =================================================================== --- misc/xplr/Makefile +++ misc/xplr/Makefile @@ -173,13 +173,4 @@ ${INSTALL_DATA} ${_EXAMPLES} \ ${STAGEDIR}${EXAMPLESDIR} -.include - -# XXX: getentropy(3) did not appear until FreeBSD 12, anything lower will -# not compile, throwing an undefined reference to `getentropy'. We can -# safely remove this once FreeBSD 11 is EOL. -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -EXTRA_PATCHES= ${PATCHDIR}/extra-cargo-crates_luajit-src-210.2.0+resty5f13855_luajit2_src_lj__prng.c -.endif - -.include +.include Index: multimedia/aom/files/patch-aom__ports_arm__cpudetect.c =================================================================== --- multimedia/aom/files/patch-aom__ports_arm__cpudetect.c +++ multimedia/aom/files/patch-aom__ports_arm__cpudetect.c @@ -1,7 +1,7 @@ - Assume NEON is enabled on aarch64 - Implement NEON runtime detection on FreeBSD ---- aom_ports/arm_cpudetect.c.orig 2018-11-16 20:24:20 UTC +--- aom_ports/arm_cpudetect.c.orig 2021-07-20 22:23:15 UTC +++ aom_ports/arm_cpudetect.c @@ -38,7 +38,7 @@ static int arm_cpu_env_mask(void) { return env && *env ? (int)strtol(env, NULL, 0) : ~0; @@ -12,42 +12,14 @@ int aom_arm_cpu_caps(void) { /* This function should actually be a no-op. There is no way to adjust any of -@@ -143,7 +143,57 @@ int aom_arm_cpu_caps(void) { +@@ -143,7 +143,25 @@ int aom_arm_cpu_caps(void) { } return flags & mask; } -#else /* end __linux__ */ +#elif defined(__FreeBSD__) + -+#if __FreeBSD__ < 12 -+#include -+#include -+#include -+#include -+#include -+ -+static unsigned long getauxval(unsigned long type) { -+ Elf_Auxinfo auxv[AT_COUNT]; -+ size_t len = sizeof(auxv); -+ int mib[] = { -+ CTL_KERN, -+ KERN_PROC, -+ KERN_PROC_AUXV, -+ getpid(), -+ }; -+ -+ if (sysctl(mib, nitems(mib), auxv, &len, NULL, 0) != -1) { -+ for (size_t i = 0; i < nitems(auxv); i++) -+ if ((unsigned long)auxv[i].a_type == type) -+ return auxv[i].a_un.a_val; -+ -+ errno = ENOENT; -+ } -+ return 0; -+} -+#else +#include -+#endif + +int aom_arm_cpu_caps(void) { + int flags; @@ -57,11 +29,7 @@ + return flags; + } + mask = arm_cpu_env_mask(); -+#if __FreeBSD__ < 12 -+ hwcap = getauxval(AT_HWCAP); -+#else + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); -+#endif +#if HAVE_NEON + if (hwcap & HWCAP_NEON) flags |= HAS_NEON; +#endif @@ -69,5 +37,5 @@ +} +#else /* end __FreeBSD__ */ #error \ - "--enable-runtime-cpu-detect selected, but no CPU detection method " \ - "available for your platform. Reconfigure with --disable-runtime-cpu-detect." + "Runtime CPU detection selected, but no CPU detection method " \ + "available for your platform. Rerun cmake with -DCONFIG_RUNTIME_CPU_DETECT=0." Index: multimedia/aom/files/patch-aom__ports_ppc__cpudetect.c =================================================================== --- multimedia/aom/files/patch-aom__ports_ppc__cpudetect.c +++ multimedia/aom/files/patch-aom__ports_ppc__cpudetect.c @@ -1,6 +1,6 @@ - Implement VSX detection on FreeBSD ---- aom_ports/ppc_cpudetect.c.orig 2018-06-25 14:54:59 UTC +--- aom_ports/ppc_cpudetect.c.orig 2021-07-20 22:23:15 UTC +++ aom_ports/ppc_cpudetect.c @@ -9,12 +9,6 @@ * PATENTS file, you can obtain it at www.aomedia.org/license/patent. @@ -29,17 +29,12 @@ int ppc_simd_caps(void) { int flags; int mask; -@@ -75,6 +76,44 @@ out_close: +@@ -75,6 +76,34 @@ out_close: close(fd); return flags & mask; } +#elif defined(__FreeBSD__) -+#if __FreeBSD__ < 12 -+#include -+#include -+#else +#include -+#endif +#include + +int ppc_simd_caps(void) { @@ -54,12 +49,7 @@ + + mask = cpu_env_mask(); + -+#if __FreeBSD__ < 12 -+ size_t sz = sizeof(hwcap); -+ sysctlbyname("hw.cpu_features", &hwcap, &sz, NULL, 0); -+#else + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); -+#endif +#if HAVE_VSX + if (hwcap & PPC_FEATURE_HAS_VSX) flags |= HAS_VSX; +#endif Index: multimedia/cclive/Makefile =================================================================== --- multimedia/cclive/Makefile +++ multimedia/cclive/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv3 -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: cannot find the flags to link with Boost date_time BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: cannot find the flags to link with Boost date_time LIB_DEPENDS= libboost_system.so:devel/boost-libs \ Index: multimedia/dav1d/files/patch-neon-freebsd11 =================================================================== --- multimedia/dav1d/files/patch-neon-freebsd11 +++ /dev/null @@ -1,41 +0,0 @@ -- Implement NEON runtime detection on FreeBSD 11.* armv6 - ---- src/arm/cpu.c.orig 2019-05-11 15:23:10 UTC -+++ src/arm/cpu.c -@@ -75,6 +75,36 @@ static unsigned parse_proc_cpuinfo(const char *flag) { - } - #endif - -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+#include -+#include -+#include -+#include -+#include -+ -+#define HAVE_GETAUXVAL -+#define NEON_HWCAP HWCAP_NEON -+static unsigned long getauxval(unsigned long type) { -+ Elf_Auxinfo auxv[AT_COUNT]; -+ size_t len = sizeof(auxv); -+ int mib[] = { -+ CTL_KERN, -+ KERN_PROC, -+ KERN_PROC_AUXV, -+ getpid(), -+ }; -+ -+ if (sysctl(mib, nitems(mib), auxv, &len, NULL, 0) != -1) { -+ for (size_t i = 0; i < nitems(auxv); i++) -+ if ((unsigned long)auxv[i].a_type == type) -+ return auxv[i].a_un.a_val; -+ -+ errno = ENOENT; -+ } -+ return 0; -+} -+#endif -+ - COLD unsigned dav1d_get_cpu_flags_arm(void) { - unsigned flags = 0; - #if ARCH_AARCH64 Index: multimedia/gstreamer1-plugins-rust/Makefile =================================================================== --- multimedia/gstreamer1-plugins-rust/Makefile +++ multimedia/gstreamer1-plugins-rust/Makefile @@ -403,7 +403,6 @@ OPTIONS_DEFINE= CSOUND DAV1D PANGO SODIUM OPTIONS_DEFAULT=CSOUND DAV1D PANGO SODIUM -OPTIONS_EXCLUDE_FreeBSD_11= ${ARCH:Mi386:C/.+/CSOUND/} OPTIONS_SUB= yes CSOUND_DESC= Audio filtering via Csound Index: multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c =================================================================== --- multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c +++ multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c @@ -1,4 +1,4 @@ ---- vpx_ports/arm_cpudetect.c.orig 2017-01-12 20:27:27 UTC +--- vpx_ports/arm_cpudetect.c.orig 2021-03-18 19:59:46 UTC +++ vpx_ports/arm_cpudetect.c @@ -38,7 +38,7 @@ static int arm_cpu_env_mask(void) { return env && *env ? (int)strtol(env, NULL, 0) : ~0; @@ -9,42 +9,14 @@ int arm_cpu_caps(void) { /* This function should actually be a no-op. There is no way to adjust any of -@@ -147,7 +147,57 @@ int arm_cpu_caps(void) { +@@ -147,7 +147,25 @@ int arm_cpu_caps(void) { } return flags & mask; } -#else /* end __linux__ */ +#elif defined(__FreeBSD__) + -+#if __FreeBSD__ < 12 -+#include -+#include -+#include -+#include -+#include -+ -+static unsigned long getauxval(unsigned long type) { -+ Elf_Auxinfo auxv[AT_COUNT]; -+ size_t len = sizeof(auxv); -+ int mib[] = { -+ CTL_KERN, -+ KERN_PROC, -+ KERN_PROC_AUXV, -+ getpid(), -+ }; -+ -+ if (sysctl(mib, nitems(mib), auxv, &len, NULL, 0) != -1) { -+ for (size_t i = 0; i < nitems(auxv); i++) -+ if ((unsigned long)auxv[i].a_type == type) -+ return auxv[i].a_un.a_val; -+ -+ errno = ENOENT; -+ } -+ return 0; -+} -+#else +#include -+#endif + +int arm_cpu_caps(void) { + int flags; @@ -54,11 +26,7 @@ + return flags; + } + mask = arm_cpu_env_mask(); -+#if __FreeBSD__ < 12 -+ hwcap = getauxval(AT_HWCAP); -+#else + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); -+#endif +#if HAVE_NEON || HAVE_NEON_ASM + if (hwcap & HWCAP_NEON) flags |= HAS_NEON; +#endif Index: multimedia/libvpx/files/patch-vpx__ports_ppc__cpudetect.c =================================================================== --- multimedia/libvpx/files/patch-vpx__ports_ppc__cpudetect.c +++ multimedia/libvpx/files/patch-vpx__ports_ppc__cpudetect.c @@ -1,4 +1,4 @@ ---- vpx_ports/ppc_cpudetect.c.orig 2018-01-24 22:25:44 UTC +--- vpx_ports/ppc_cpudetect.c.orig 2021-03-18 19:59:46 UTC +++ vpx_ports/ppc_cpudetect.c @@ -8,12 +8,6 @@ * be found in the AUTHORS file in the root of the source tree. @@ -27,17 +27,12 @@ int ppc_simd_caps(void) { int flags; int mask; -@@ -73,6 +74,44 @@ out_close: +@@ -73,6 +74,34 @@ out_close: close(fd); return flags & mask; } +#elif defined(__FreeBSD__) -+#if __FreeBSD__ < 12 -+#include -+#include -+#else +#include -+#endif +#include + +int ppc_simd_caps(void) { @@ -52,12 +47,7 @@ + + mask = cpu_env_mask(); + -+#if __FreeBSD__ < 12 -+ size_t sz = sizeof(hwcap); -+ sysctlbyname("hw.cpu_features", &hwcap, &sz, NULL, 0); -+#else + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); -+#endif +#if HAVE_VSX + if (hwcap & PPC_FEATURE_HAS_VSX) flags |= HAS_VSX; +#endif Index: multimedia/mkvtoolnix/Makefile =================================================================== --- multimedia/mkvtoolnix/Makefile +++ multimedia/mkvtoolnix/Makefile @@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_sparc64= does not install -BROKEN_FreeBSD_11= requires non-building qt5 libs even in the non-GUI builds BUILD_DEPENDS= rake:devel/rubygem-rake \ docbook-xsl>=0:textproc/docbook-xsl \ Index: multimedia/vlc/Makefile =================================================================== --- multimedia/vlc/Makefile +++ multimedia/vlc/Makefile @@ -83,11 +83,6 @@ OPTIONS_DEFAULT_powerpc64= ALTIVEC OPTIONS_SUB= yes -.if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mssl=*} -# Blocked by net/qt5-network: cannot use QT5 with default OpenSSL -OPTIONS_EXCLUDE_FreeBSD_11+= QT5 -.endif - AOM_DESC= AV1 video encoding/decoding via libaom ASS_DESC= ASS/SSA subtitle rendering CHROMECAST_DESC=Streaming to Chromecast devices Index: multimedia/vvdec/Makefile =================================================================== --- multimedia/vvdec/Makefile +++ multimedia/vvdec/Makefile @@ -21,6 +21,4 @@ CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= FREEBSD_VVDEC_ENABLE_X86_SIMD -BROKEN_FreeBSD_11= /usr/bin/ld: unrecognized option '-plugin' - .include Index: multimedia/zoneminder/Makefile =================================================================== --- multimedia/zoneminder/Makefile +++ multimedia/zoneminder/Makefile @@ -87,7 +87,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200000 +.if ${OPSYS} == FreeBSD EXTRA_PATCHES= ${PATCHDIR}/extra-patch-CMakeLists.txt .endif Index: net-im/ejabberd/Makefile =================================================================== --- net-im/ejabberd/Makefile +++ net-im/ejabberd/Makefile @@ -170,10 +170,6 @@ post-patch: @${REINPLACE_CMD} -e 's,^convert,${LOCALBASE}/bin/convert,' ${WRKSRC}/tools/captcha.sh @${REINPLACE_CMD} -e 's,%%PORTVERSION%%,${PORTVERSION},' ${WRKSRC}/configure.ac -.if ${OSVERSION} < 1200000 - # Disable LTO required by dependency, not available by default in < 12.x - @${REINPLACE_CMD} -e 's/$$FLTO_FLAG//' ${WRKSRC}/deps/jiffy/rebar.config -.endif pre-configure: cd ${WRKSRC} && ${SH} autogen.sh Index: net-im/licq/Makefile =================================================================== --- net-im/licq/Makefile +++ net-im/licq/Makefile @@ -14,7 +14,6 @@ LIB_DEPENDS= libboost_regex.so:devel/boost-libs -BROKEN_FreeBSD_11_powerpc64= fails to pass tests BROKEN_FreeBSD_12_powerpc64= fails to pass tests BROKEN_sparc64= fails to link Index: net-im/mtxclient/Makefile =================================================================== --- net-im/mtxclient/Makefile +++ net-im/mtxclient/Makefile @@ -9,8 +9,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= unsupported SSL in base - BUILD_DEPENDS= nlohmann-json>=3:devel/nlohmann-json LIB_DEPENDS= libsodium.so:security/libsodium \ libboost_date_time.so:devel/boost-libs \ Index: net-im/tg_owt/Makefile =================================================================== --- net-im/tg_owt/Makefile +++ net-im/tg_owt/Makefile @@ -37,10 +37,4 @@ # Disable DCHECKs, otherwise video calls will crash. CXXFLAGS+= -DNDEBUG -.include - -.if ${SSL_DEFAULT} == "base" && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN= This port requires OpenSSL 1.1.0. Try DEFAULT_VERSIONS+=ssl=[openssl|libressl*] -.endif - .include Index: net-mgmt/kismet/Makefile =================================================================== --- net-mgmt/kismet/Makefile +++ net-mgmt/kismet/Makefile @@ -65,7 +65,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 +.if ${OPSYS} == FreeBSD EXTRA_PATCHES+= ${FILESDIR}/extra-patch-restricted-plugin-ptw_aircrack-crypto.cc .endif Index: net-mgmt/net-snmp/Makefile =================================================================== --- net-mgmt/net-snmp/Makefile +++ net-mgmt/net-snmp/Makefile @@ -245,7 +245,7 @@ post-patch: @${REINPLACE_CMD} -E -e 's|return pci_lookup_name|disabled broken|g' \ ${WRKSRC}/configure -.if (${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085) || ${SSL_DEFAULT:Mopenssl} +.if ${OPSYS} == FreeBSD || ${SSL_DEFAULT:Mopenssl} @${REINPLACE_CMD} -E -e 's|SSL_library_init|OPENSSL_init_ssl|g' \ ${WRKSRC}/configure .endif Index: net-mgmt/netdata/Makefile =================================================================== --- net-mgmt/netdata/Makefile +++ net-mgmt/netdata/Makefile @@ -84,9 +84,6 @@ LTO_CONFIGURE_ENABLE= lto .include -.if ${PORT_OPTIONS:MLTO} && ${OPSYS}_${OSREL:R} == FreeBSD_11 -BROKEN= Link-Time Optimization breaks compilation on FreeBSD 11 -.endif .if ${PORT_OPTIONS:MLTO} && ${ARCH} == powerpc64 USE_GCC= yes Index: net-mgmt/nstat/Makefile =================================================================== --- net-mgmt/nstat/Makefile +++ net-mgmt/nstat/Makefile @@ -25,10 +25,4 @@ ${INSTALL_PROGRAM} ${WRKSRC}/nstat ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/nstat.1.gz ${STAGEDIR}${PREFIX}/man/man1 -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1200027 -BROKEN= Does not build without clock_nanosleep -.endif - -.include +.include Index: net-mgmt/py-gstat_exporter/Makefile =================================================================== --- net-mgmt/py-gstat_exporter/Makefile +++ net-mgmt/py-gstat_exporter/Makefile @@ -9,8 +9,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= needs "gstat -C", available since FreeBSD 12.0 - RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometheus-client@${PY_FLAVOR} USES= python:3.6+ Index: net-p2p/monero-cli/Makefile =================================================================== --- net-p2p/monero-cli/Makefile +++ net-p2p/monero-cli/Makefile @@ -60,8 +60,6 @@ # /usr/bin/ld -melf_amd64 -r -b binary -o blocksdat.o blocks.dat # See Bug 226996 - net-p2p/monero-cli: fails to link with lld as the system linker # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226996 -.if ${OSVERSION} >= 1200000 - .if ${ARCH} == aarch64 LD_EMULATION= aarch64elf .elif ${ARCH} == amd64 @@ -76,8 +74,6 @@ CMAKE_ARGS+= -DLD_RAW_FLAGS:STRING=-m${LD_EMULATION} -.endif - # keep in sync with all platforms where libunwind is available .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le LIB_DEPENDS+= libunwind.so:devel/libunwind Index: net-p2p/qtum/Makefile =================================================================== --- net-p2p/qtum/Makefile +++ net-p2p/qtum/Makefile @@ -27,7 +27,8 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= BDB_CFLAGS="-I${BDB_INCLUDE_DIR}" \ BDB_LIBS="-L${BDB_LIB_DIR} -l${BDB_LIB_CXX_NAME}" \ - LDFLAGS="-L${LOCALBASE}/lib" + LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" # * Man pages have not been adjusted after cloning the Bitcoin code base. # They are the old Bitcoin man pages, so do not install them. # * --with-incompatible-bdb is required in order to use bdb-5. @@ -62,15 +63,4 @@ SSL_LIBS="-lssl" .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -# Force PIC on FreeBSD 11.x because otherwise linking fails: -# /usr/bin/ld: qtum_cli-bitcoin-cli.o: relocation R_X86_64_32 against `a local -# symbol' can not be used when making a shared object; recompile with -fPIC -CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -fPIC -DPIC" -post-patch: - ${REINPLACE_CMD} -e 's/AC_SUBST(PIE_FLAGS)//' ${WRKSRC}/configure.ac -.else -CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" -.endif - .include Index: net/dhcprelya/Makefile =================================================================== --- net/dhcprelya/Makefile +++ net/dhcprelya/Makefile @@ -26,7 +26,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 +.if ${OPSYS} == FreeBSD LDFLAGS+= -Wl,-E .endif Index: net/hostapd-devel/Makefile =================================================================== --- net/hostapd-devel/Makefile +++ net/hostapd-devel/Makefile @@ -14,8 +14,6 @@ GH_TAGNAME= b4f7506ff COMMIT_DATE= 2021.07.14 -BROKEN_FreeBSD_11= Does not support OpenSSL 1.0.2 - LICENSE= BSD3CLAUSE USES= cpe gmake ssl Index: net/httping/Makefile =================================================================== --- net/httping/Makefile +++ net/httping/Makefile @@ -45,7 +45,7 @@ MAKE_ENV+= SSL=no .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 +.if ${OPSYS} == FreeBSD MAKE_ENV+= TFO=yes .endif Index: net/krill/Makefile =================================================================== --- net/krill/Makefile +++ net/krill/Makefile @@ -20,9 +20,6 @@ GH_ACCOUNT= NLnetLabs .include -.if ${OSVERSION} < 1200000 && ${SSL_DEFAULT} == base -IGNORE= Does not build with base ssl on RELEASE ${OSREL} ${OSVERSION} -.endif USE_RC_SUBR= ${PORTNAME} Index: net/libpfctl/Makefile =================================================================== --- net/libpfctl/Makefile +++ net/libpfctl/Makefile @@ -11,7 +11,6 @@ LICENSE= BSD2CLAUSE -BROKEN_FreeBSD_11= Will not work until nvlist-ified ioctls are available BROKEN_FreeBSD_12= Will not work until nvlist-ified ioctls are available BROKEN_FreeBSD_13= Will not work until nvlist-ified ioctls are available Index: net/ntpsec/Makefile =================================================================== --- net/ntpsec/Makefile +++ net/ntpsec/Makefile @@ -29,12 +29,6 @@ PORTSCOUT= limit:^\d+\. # prevent alpha-numeric strings -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 && ${SSL_DEFAULT} == base -BROKEN= Needs OpenSSL with TLSv1.3 support but OpenSSL in base on FreeBSD 11 doesn't support TLSv1.3 -.endif - post-install: # autoplist: plist varies depending on the python version @cd ${STAGEDIR}${PREFIX} && \ ${FIND} * -type f -or -type l | ${SED} -e 's|^share/man/.*|&.gz|' >> ${TMPPLIST} Index: net/openldap25-server/Makefile =================================================================== --- net/openldap25-server/Makefile +++ net/openldap25-server/Makefile @@ -316,12 +316,6 @@ PLIST_SUB+= SHLIB_MINOR=${OPENLDAP_SHLIB_MINOR} PLIST_SUB+= OPENLDAP_MAJOR=${OPENLDAP_MAJOR} -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -BROKEN= Requires OpenSSL 1.1.1+ -.endif - .if ${PORT_OPTIONS:MFETCH} && (defined(OPENSSL_INSTALLED) && ${OPENSSL_INSTALLED} != "" || ${SSL_DEFAULT} != base) BROKEN= using OpenSSL from ports and OPTION FETCH together is not supported . endif @@ -439,4 +433,4 @@ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib$${library}-${OPENLDAP_MAJOR}.so.${OPENLDAP_SHLIB_MAJOR}; \ done -.include +.include Index: net/packetdrill/Makefile =================================================================== --- net/packetdrill/Makefile +++ net/packetdrill/Makefile @@ -7,8 +7,6 @@ LICENSE= GPLv2 -BROKEN_FreeBSD_11= TCP Fast Open struct changes - USES= bison python:run uidfix USE_GITHUB= yes GH_ACCOUNT= freebsd-net Index: net/qt5-network/Makefile =================================================================== --- net/qt5-network/Makefile +++ net/qt5-network/Makefile @@ -22,11 +22,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == "base" -# 1200085 339270 October 19, 2018 12.0-STABLE after updating OpenSSL to version 1.1.1. -BROKEN= Qt5 requires Openssl 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=[openssl|libressl*] to /etc/make.conf -.endif - # LibreSSL does not currently support BIO_ADDR in DTLSv1_listen() .if ${SSL_DEFAULT:Mlibressl*} CONFIGURE_ARGS+= -no-feature-dtls Index: net/rdist6/Makefile =================================================================== --- net/rdist6/Makefile +++ net/rdist6/Makefile @@ -20,7 +20,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200050 +.if ${OPSYS} == FreeBSD RUN_DEPENDS+= rsh:net/bsdrcmds .endif Index: net/rpki-client/Makefile =================================================================== --- net/rpki-client/Makefile +++ net/rpki-client/Makefile @@ -27,13 +27,7 @@ GROUPS= ${USERS} PLIST_SUB= USERS="${USERS}" -.include - -.if ${OSREL:R} < 12 && ${SSL_DEFAULT} == "base" -BROKEN= requires OpenSSL 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=[openssl|libressl*] to /etc/make.conf -.endif - pre-configure: cd ${WRKSRC} && ${SH} update.sh -.include +.include Index: net/usockets/Makefile =================================================================== --- net/usockets/Makefile +++ net/usockets/Makefile @@ -9,7 +9,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11= error: unknown type name 'u_short'; did you mean 'short'?, etc BROKEN_riscv64= fails to build: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension USES= compiler:c++17-lang gmake ssl # c++17 only for temp C_++ code, otherwise it is c11 Index: net/waypipe/files/patch-neon-freebsd11 =================================================================== --- net/waypipe/files/patch-neon-freebsd11 +++ /dev/null @@ -1,55 +0,0 @@ -- Implement NEON runtime detection on FreeBSD 11.* armv6 - ---- src/platform.c.orig 2019-08-16 20:55:07 UTC -+++ src/platform.c -@@ -41,8 +41,36 @@ - #include - #include - #elif defined(__FreeBSD__) && defined(__arm__) -+#if __FreeBSD__ >= 12 - #include -+#else -+#include -+#include -+#include -+#include -+#include -+ -+static unsigned long getauxval(unsigned long type) { -+ Elf_Auxinfo auxv[AT_COUNT]; -+ size_t len = sizeof(auxv); -+ int mib[] = { -+ CTL_KERN, -+ KERN_PROC, -+ KERN_PROC_AUXV, -+ getpid(), -+ }; -+ -+ if (sysctl(mib, nitems(mib), auxv, &len, NULL, 0) != -1) { -+ for (size_t i = 0; i < nitems(auxv); i++) -+ if ((unsigned long)auxv[i].a_type == type) -+ return auxv[i].a_un.a_val; -+ -+ errno = ENOENT; -+ } -+ return 0; -+} - #endif -+#endif - - #if defined(__linux__) - /* memfd_create was introduced in glibc 2.27 */ -@@ -82,9 +110,13 @@ bool neon_available(void) - #if defined(__linux__) && defined(__arm__) - return (getauxval(AT_HWCAP) & HWCAP_NEON) != 0; - #elif defined(__FreeBSD__) && defined(__arm__) -+#if __FreeBSD__ < 12 -+ return (getauxval(AT_HWCAP) & HWCAP_NEON) != 0; -+#else - unsigned long hwcap = 0; - elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); - return (hwcap & HWCAP_NEON) != 0; -+#endif - #endif - return true; - } Index: net/wireguard-kmod/Makefile =================================================================== --- net/wireguard-kmod/Makefile +++ net/wireguard-kmod/Makefile @@ -11,8 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/../COPYING -IGNORE_FreeBSD_11= only for FreeBSD 12.1 and newer - USES= kmod tar:xz uidfix WRKSRC_SUBDIR= src Index: net/wireguard/Makefile =================================================================== --- net/wireguard/Makefile +++ net/wireguard/Makefile @@ -10,12 +10,6 @@ USES= metaport -.include - -.if ${OSVERSION} < 1201000 -RUN_DEPENDS+= wireguard-go:net/wireguard-go -.else RUN_DEPENDS+= ${KMODDIR}/if_wg.ko:net/wireguard-kmod -.endif .include Index: print/pdf-tools/Makefile =================================================================== --- print/pdf-tools/Makefile +++ print/pdf-tools/Makefile @@ -12,7 +12,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: cannot find necessary poppler-private header (see README.org) BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: cannot find necessary poppler-private header (see README.org) BUILD_DEPENDS= cask${EMACS_PKGNAMESUFFIX}>0:devel/cask@${EMACS_FLAVOR} \ Index: science/siconos/Makefile =================================================================== --- science/siconos/Makefile +++ science/siconos/Makefile @@ -9,7 +9,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_i386= non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp', see https://github.com/siconos/siconos/issues/416 -BROKEN_FreeBSD_11= error: use of undeclared identifier 'RTLD_DEEPBIND' BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ Index: security/afl++/Makefile =================================================================== --- security/afl++/Makefile +++ security/afl++/Makefile @@ -35,10 +35,6 @@ OPTIONS_DEFINE= DEBUG DOCS EXAMPLES GCC LIBDISLOCATOR LLVM PYTHON OPTIONS_DEFAULT= GCC LIBDISLOCATOR LLVM PYTHON -# libdislocator fails to build on FreeBSD 11.x -# error: typedef redefinition with different types ('struct max_align_t' vs '__max_align_t') -OPTIONS_EXCLUDE_FreeBSD_11= LIBDISLOCATOR - # On non-x86 architectures LLVM is mandatory OPTIONS_SLAVE= ${ARCH:Namd64:Ni386:S/${ARCH}/LLVM/} OPTIONS_SUB= yes Index: security/botan2/Makefile =================================================================== --- security/botan2/Makefile +++ security/botan2/Makefile @@ -65,10 +65,6 @@ CONFIGURE_ARGS+= --cpu="ppc64" .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -CONFIGURE_ARGS+= --without-os-features=getentropy,elf_aux_info -.endif - .if ${ARCH} == i386 || ${ARCH} == amd64 PLIST_SUB+= HAS_RDRAND_RNG="" .else Index: security/dsniff/Makefile =================================================================== --- security/dsniff/Makefile +++ security/dsniff/Makefile @@ -34,11 +34,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -USES+= ssl -.endif - -.if (${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085) || ${SSL_DEFAULT} == openssl +.if ${OPSYS} == FreeBSD || ${SSL_DEFAULT} == openssl # Requires LibreSSL for old SSL interface BUILD_DEPENDS+= ${NONEXISTENT}:security/libressl:stage CPPFLAGS+= -nostdinc -I/usr/include -I${WRKDIR}/libressl/include Index: security/fwbuilder/Makefile =================================================================== --- security/fwbuilder/Makefile +++ security/fwbuilder/Makefile @@ -9,7 +9,6 @@ MAINTAINER= cy@FreeBSD.org COMMENT= Firewall Builder GUI and policy compilers -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: libz library not found BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: libz library not found LIB_DEPENDS= libxslt.so:textproc/libxslt \ Index: security/gost-engine/Makefile =================================================================== --- security/gost-engine/Makefile +++ security/gost-engine/Makefile @@ -30,11 +30,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN_SSL+= base -BROKEN_SSL_REASON_base= needs features only available in OpenSSL 1.1.1+ -.endif - post-patch: ${REINPLACE_CMD} 's/-Werror //' ${WRKSRC}/CMakeLists.txt Index: security/ipsec-tools/Makefile =================================================================== --- security/ipsec-tools/Makefile +++ security/ipsec-tools/Makefile @@ -100,7 +100,7 @@ ${INSTALL_DATA} ${WRKSRC}/src/racoon/doc/* ${STAGEDIR}/${DOCSDIR} .if ${OPSYS} == FreeBSD -. if ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} != openssl +. if ${SSL_DEFAULT} != openssl EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ipsec-tools PLIST_FILES+= include/racoon/openssl_compat.h . endif Index: security/isal-kmod/Makefile =================================================================== --- security/isal-kmod/Makefile +++ security/isal-kmod/Makefile @@ -9,7 +9,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/isa-l_crypto/LICENSE -IGNORE_FreeBSD_11= requires FreeBSD 13.0 or later IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later ONLY_FOR_ARCHS= amd64 Index: security/krb5-devel/Makefile =================================================================== --- security/krb5-devel/Makefile +++ security/krb5-devel/Makefile @@ -15,8 +15,6 @@ MAINTAINER= cy@FreeBSD.org COMMENT= MIT implementation of RFC 4120 network authentication service -BROKEN_FreeBSD_11= OpenSSL 1.0.2 is not supported - LICENSE= MIT USE_GITHUB= yes Index: security/liboqs/Makefile =================================================================== --- security/liboqs/Makefile +++ security/liboqs/Makefile @@ -8,7 +8,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BROKEN_FreeBSD_11= Could NOT find OpenSSL, try to set the path to OpenSSL root folder [...] BROKEN_i386= Unknown or unsupported processor: i386 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} Index: security/libretls/Makefile =================================================================== --- security/libretls/Makefile +++ security/libretls/Makefile @@ -8,8 +8,6 @@ LICENSE= ISCL -BROKEN_FreeBSD_11= requires newer OpenSSL - USES= libtool ssl pkgconfig INSTALL_TARGET= install-strip GNU_CONFIGURE= yes Index: security/ncrack/Makefile =================================================================== --- security/ncrack/Makefile +++ security/ncrack/Makefile @@ -19,10 +19,4 @@ CPPFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} -.include - -.if ${SSL_DEFAULT} == base -BROKEN_FreeBSD_11= OpenSSL > 1.0 required -.endif - -.include +.include Index: security/openca-tools-forked/Makefile =================================================================== --- security/openca-tools-forked/Makefile +++ security/openca-tools-forked/Makefile @@ -31,7 +31,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 && ${SSL_DEFAULT} == base +.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= OpenSSL-1.1.1 not supported by the upstream .endif Index: security/openiked-portable/Makefile =================================================================== --- security/openiked-portable/Makefile +++ security/openiked-portable/Makefile @@ -19,14 +19,8 @@ USERS= _iked GROUPS= _iked -.include - -.if ${OSREL:R} < 12 && ${SSL_DEFAULT} == "base" -BROKEN= requires OpenSSL 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=[openssl|libressl*] to /etc/make.conf -.endif - post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/iked.conf \ ${STAGEDIR}${PREFIX}/etc/iked.conf.sample -.include +.include Index: security/p5-Crypt-OpenSSL-CA/Makefile =================================================================== --- security/p5-Crypt-OpenSSL-CA/Makefile +++ security/p5-Crypt-OpenSSL-CA/Makefile @@ -34,7 +34,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base +.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= Does not support OpenSSL 1.1 .endif Index: security/p5-OpenCA-OpenSSL/Makefile =================================================================== --- security/p5-OpenCA-OpenSSL/Makefile +++ security/p5-OpenCA-OpenSSL/Makefile @@ -27,7 +27,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base +.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= Does not support OpenSSL 1.1 .endif Index: security/pam_ssh_agent_auth/Makefile =================================================================== --- security/pam_ssh_agent_auth/Makefile +++ security/pam_ssh_agent_auth/Makefile @@ -14,7 +14,6 @@ GH_TUPLE= floodyberry:ed25519-donna:8757bd4:floodyberry_ed25519_donna/ed25519-donna BROKEN_mips64= fails to compile: ed25519-donna-portable.h:85:4: Need a uint128_t implementation! -BROKEN_FreeBSD_11_powerpc64= fails to compile on powerpc64 elfv1: ed25519-donna-portable.h: warning: ALIGN redefined BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: ed25519-donna-portable.h: warning: ALIGN redefined USES= perl5 ssl tar:bzip2 Index: security/pkcs11-tools/Makefile =================================================================== --- security/pkcs11-tools/Makefile +++ security/pkcs11-tools/Makefile @@ -36,10 +36,6 @@ .include -.if ${SSL_DEFAULT} == base && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN= OpenSSL version is too old, lacks symbols: error: use of undeclared identifier 'EVP_PKEY_X25519', etc. -.endif - post-extract: @${RMDIR} ${WRKSRC}/.gnulib ${WRKSRC}/include/oasis-pkcs11 @${MV} ${WRKSRC_gnulib} ${WRKSRC}/.gnulib Index: security/pks/Makefile =================================================================== --- security/pks/Makefile +++ security/pks/Makefile @@ -53,7 +53,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base +.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= Does not build with OpenSSL 1.1 .endif Index: security/py-cryptography/Makefile =================================================================== --- security/py-cryptography/Makefile +++ security/py-cryptography/Makefile @@ -45,20 +45,9 @@ # We need to keep old py-cryptography and py-openssl for 11.x release # due to outdated OpenSSL version in base -.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == "base" -. if ${OSVERSION} >= 1103500 && ${OSVERSION} < 1200085 -# 1103500 352193 2019-09-10 11.3-STABLE got OpenSSL 1.0.2t -# 1200085 339270 2018-10-19 12.0-STABLE got OpenSSL 1.1.1 -PORTVERSION= 2.9.2 -EXTRA_PATCHES= ${PATCHDIR}/openssl102u -. endif -.endif # Apply LibreSSL upstream patch that conflicts with above patch for 2.9.2 -# XXX convert back to unconditional when FreeBSD 11 goes EOL -.if ${SSL_DEFAULT:Mlibressl*} EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Fix-build-with-LibreSSL-3.3.2-5988 -.endif .if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 post-patch: Index: security/py-openssl/Makefile =================================================================== --- security/py-openssl/Makefile +++ security/py-openssl/Makefile @@ -33,15 +33,6 @@ # We need to keep old py-cryptography and py-penssl for 11.x release # due to outdated OpenSSL version in base -.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == "base" -. if ${OSVERSION} >= 1103500 && ${OSVERSION} < 1200085 -# 1103500 352193 2019-09-10 11.3-STABLE got OpenSSL 1.0.2t -# 1200085 339270 2018-10-19 12.0-STABLE got OpenSSL 1.1.1 -#.sinclude "${.CURDIR}/Makefile.${OPSYS}-${OSREL:R}" -PORTVERSION= 19.1.0 -PORTEPOCH= 1 -. endif -.endif # These tests will be skipped due the following reasons: # Index: security/racoon2/Makefile =================================================================== --- security/racoon2/Makefile +++ security/racoon2/Makefile @@ -10,8 +10,6 @@ MAINTAINER= cy@FreeBSD.org COMMENT= Racoon2 IPsec daemon -BROKEN_FreeBSD_11= Requires openssl to build - CONFLICTS= racoon2-legacy-* USE_GITHUB= yes Index: security/seahorse/Makefile =================================================================== --- security/seahorse/Makefile +++ security/seahorse/Makefile @@ -57,10 +57,4 @@ LDAP_USE= OPENLDAP=yes LDAP_MESON_TRUE= ldap-support -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -LDFLAGS+= -fuse-ld=lld -.endif - .include Index: security/softhsm2/Makefile =================================================================== --- security/softhsm2/Makefile +++ security/softhsm2/Makefile @@ -59,9 +59,7 @@ .endif # openssl-1.1.1 (default after 1200080) doesn't support GHOST (yet), punt for now. -.if ${OSVERSION}>=1200080 CONFIGURE_ARGS+= --disable-gost -.endif post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/p11-kit/modules Index: security/tpm2-tools/Makefile =================================================================== --- security/tpm2-tools/Makefile +++ security/tpm2-tools/Makefile @@ -20,10 +20,4 @@ BROKEN_SSL= openssl -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN_SSL+= base -.endif - -.include +.include Index: security/uacme/Makefile =================================================================== --- security/uacme/Makefile +++ security/uacme/Makefile @@ -20,7 +20,7 @@ --sysconfdir=${PREFIX}/etc OPTIONS_DEFINE= DOCS EXAMPLES MANPAGES UALPN -_OPENSSL_SAFE= ${(${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == libressl || ${SSL_DEFAULT} == libressl-devel:?no:yes} +_OPENSSL_SAFE= ${${SSL_DEFAULT} == libressl || ${SSL_DEFAULT} == libressl-devel:?no:yes} OPTIONS_DEFAULT= ${${_OPENSSL_SAFE} == no:?GNUTLS:OPENSSL} MANPAGES \ UALPN OPTIONS_SINGLE= CRYPTO Index: security/wpa_supplicant-devel/Makefile =================================================================== --- security/wpa_supplicant-devel/Makefile +++ security/wpa_supplicant-devel/Makefile @@ -13,8 +13,6 @@ GH_TAGNAME= b4f7506ff COMMIT_DATE= 2021.07.14 -BROKEN_FreeBSD_11= Does not support OpenSSL 1.0.2 - LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/README Index: security/zeek/Makefile =================================================================== --- security/zeek/Makefile +++ security/zeek/Makefile @@ -11,7 +11,6 @@ LICENSE= BSD3CLAUSE -BROKEN_FreeBSD_11_powerpc64= Does not build: error: zero-size array 'names' BROKEN_FreeBSD_12_powerpc64= Does not build: error: zero-size array 'names' USES= bison cmake compiler:c++11-lang cpe gettext-runtime ninja perl5 \ Index: sysutils/acpica-tools/Makefile =================================================================== --- sysutils/acpica-tools/Makefile +++ sysutils/acpica-tools/Makefile @@ -12,7 +12,6 @@ LICENSE= BSD3CLAUSE GPLv2 LICENSE_COMB= dual -BROKEN_FreeBSD_11_powerpc64= fails to compile on powerpc64 elfv1: comparison is always true due to limited range of data type BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: comparison is always true due to limited range of data type USES= gmake Index: sysutils/apache-mesos/Makefile =================================================================== --- sysutils/apache-mesos/Makefile +++ sysutils/apache-mesos/Makefile @@ -13,8 +13,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= does not build - BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ elfio>0:devel/elfio \ http-parser>0:www/http-parser \ Index: sysutils/arcconf/Makefile =================================================================== --- sysutils/arcconf/Makefile +++ sysutils/arcconf/Makefile @@ -25,13 +25,8 @@ PERIODICSCRIPT= 410.status-aac-raid -.include -.if ${OSREL:R} >= 12 DIST_TYPE= 12_x64 RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libncurses.so.8:misc/compat12x -.else -DIST_TYPE= 11_x64 -.endif NO_BUILD= yes NO_WRKSUBDIR= yes @@ -44,4 +39,4 @@ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} ${STAGEDIR}${PREFIX}/etc/periodic/daily -.include +.include Index: sysutils/barrier/Makefile =================================================================== --- sysutils/barrier/Makefile +++ sysutils/barrier/Makefile @@ -20,8 +20,6 @@ OPTIONS_DEFINE= EXAMPLES GUI OPTIONS_DEFAULT= GUI -# no GUI option on 11.x with base SSL since qt5-network is not available -OPTIONS_EXCLUDE= ${${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base:?GUI:} OPTIONS_SUB= yes GUI_DESC= Build configuration utility (requires Qt 5) Index: sysutils/bhyve+/Makefile =================================================================== --- sysutils/bhyve+/Makefile +++ sysutils/bhyve+/Makefile @@ -33,9 +33,7 @@ USE_LDCONFIG= yes -.if 1100000 <= ${OSVERSION} && ${OSVERSION} < 1200000 -EXTRA_PATCHES= ${PATCHDIR}/freebsd-11 -.elif 1200000 <= ${OSVERSION} && ${OSVERSION} < 1300000 +.if 1200000 <= ${OSVERSION} && ${OSVERSION} < 1300000 EXTRA_PATCHES= ${PATCHDIR}/freebsd-12 .elif 1300000 <= ${OSVERSION} && ${OSVERSION} < 1400000 EXTRA_PATCHES= ${PATCHDIR}/freebsd-13 Index: sysutils/bhyve+/files/freebsd-11/patch-bhyve-shelp =================================================================== --- sysutils/bhyve+/files/freebsd-11/patch-bhyve-shelp +++ /dev/null @@ -1,79 +0,0 @@ ---- usr.sbin/bhyve/pci_emul.c.orig 2021-08-21 23:52:31 UTC -+++ usr.sbin/bhyve/pci_emul.c -@@ -237,6 +237,17 @@ done: - return (error); - } - -+void -+pci_print_supported_devices() -+{ -+ struct pci_devemu **pdpp, *pdp; -+ -+ SET_FOREACH(pdpp, pci_devemu_set) { -+ pdp = *pdpp; -+ printf("%s\n", pdp->pe_emu); -+ } -+} -+ - static int - pci_valid_pba_offset(struct pci_devinst *pi, uint64_t offset) - { ---- usr.sbin/bhyve/pci_emul.h.orig 2021-08-21 23:54:47 UTC -+++ usr.sbin/bhyve/pci_emul.h -@@ -235,6 +235,7 @@ int pci_msix_table_bar(struct pci_devins - int pci_msix_pba_bar(struct pci_devinst *pi); - int pci_msi_maxmsgnum(struct pci_devinst *pi); - int pci_parse_slot(char *opt); -+void pci_print_supported_devices(); - void pci_populate_msicap(struct msicap *cap, int msgs, int nextptr); - int pci_emul_add_msixcap(struct pci_devinst *pi, int msgnum, int barnum); - int pci_emul_msix_twrite(struct pci_devinst *pi, uint64_t offset, int size, -diff --git a/bhyve.8.orig b/bhyve.8 -index 32392c9..0d4b16f 100644 ---- usr.sbin/bhyve/bhyve.8.orig -+++ usr.sbin/bhyve/bhyve.8 -@@ -47,7 +47,11 @@ - .Op Fl l Ar lpcdev Ns Op , Ns Ar conf - .Op Fl m Ar memsize Ns Op Ar K|k|M|m|G|g|T|t - .Op Fl p Ar vcpu:hostcpu --.Op Fl s Ar slot,emulation Ns Op , Ns Ar conf -+.Oo Fl s -+.Sm off -+.Cm help | Ar slot,emulation Ns Op , Ns Ar conf -+.Sm on -+.Oc - .Op Fl U Ar uuid - .Ar vmname - .Sh DESCRIPTION -@@ -157,7 +161,7 @@ to - .Em hostcpu . - .It Fl P - Force the guest virtual CPU to exit when a PAUSE instruction is detected. --.It Fl s Ar slot,emulation Ns Op , Ns Ar conf -+.It Fl s Op Ar help|slot,emulation Ns Op , Ns Ar conf - Configure a virtual PCI slot and function. - .Pp - .Nm -@@ -166,6 +170,8 @@ slots on the bus. - There are 32 available slots, with the option of providing up to 8 functions - per slot. - .Bl -tag -width 10n -+.It Ar help -+print a list of supported PCI devices. - .It Ar slot - .Ar pcislot[:function] - .Ar bus:pcislot:function ---- usr.sbin/bhyve/bhyverun.c.orig 2021-08-21 23:52:19 UTC -+++ usr.sbin/bhyve/bhyverun.c -@@ -1058,7 +1058,10 @@ main(int argc, char *argv[]) - } - break; - case 's': -- if (pci_parse_slot(optarg) != 0) -+ if (strncmp(optarg, "help", strlen(optarg)) == 0) { -+ pci_print_supported_devices(); -+ exit(0); -+ } else if (pci_parse_slot(optarg) != 0) - exit(4); - else - break; Index: sysutils/bhyve+/files/freebsd-11/patch-libvmmapi =================================================================== --- sysutils/bhyve+/files/freebsd-11/patch-libvmmapi +++ /dev/null @@ -1,33 +0,0 @@ ---- lib/libvmmapi/Makefile.orig 2021-09-04 01:05:23.110816000 UTC -+++ lib/libvmmapi/Makefile -@@ -6,6 +6,7 @@ - INCS= vmmapi.h - - WARNS?= 2 -+SHLIB_MAJOR?= 5.1 - - LIBADD= util - ---- usr.sbin/bhyvectl/Makefile.orig 2021-09-04 02:33:12.704720000 +0200 -+++ usr.sbin/bhyvectl/Makefile 2021-09-04 02:34:28.740202000 +0200 -@@ -8,7 +8,8 @@ - - MAN= bhyvectl.8 - --LIBADD= vmmapi util -+LIBADD= util -+LDADD= ../../lib/libvmmapi/libvmmapi.so.5.1 - - WARNS?= 3 - ---- usr.sbin/bhyveload/Makefile.orig 2021-09-04 02:33:20.942548000 +0200 -+++ usr.sbin/bhyveload/Makefile 2021-09-04 02:35:58.712996000 +0200 -@@ -5,7 +5,7 @@ - MAN= bhyveload.8 - PACKAGE= bhyve - --LIBADD= vmmapi -+LDADD= ../../lib/libvmmapi/libvmmapi.so.5.1 - - WARNS?= 3 - Index: sysutils/bhyve+/files/freebsd-11/patch-virtio-9p =================================================================== --- sysutils/bhyve+/files/freebsd-11/patch-virtio-9p +++ /dev/null @@ -1,385 +0,0 @@ ---- usr.sbin/bhyve/Makefile.orig 2021-08-20 16:08:36 UTC -+++ usr.sbin/bhyve/Makefile -@@ -3,6 +3,7 @@ - # - - .include -+CFLAGS+=-I${SRCTOP}/contrib/lib9p - CFLAGS+=-I${SRCTOP}/sys - - PROG= bhyve -@@ -37,6 +38,7 @@ SRCS= \ - pci_irq.c \ - pci_lpc.c \ - pci_passthru.c \ -+ pci_virtio_9p.c \ - pci_virtio_block.c \ - pci_virtio_console.c \ - pci_virtio_net.c \ -@@ -63,7 +65,8 @@ SRCS= \ - .PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm - SRCS+= vmm_instruction_emul.c - --LIBADD= vmmapi md pthread z -+LIBADD= md pthread z sbuf casper cap_pwd cap_grp -+LDADD+= ../../contrib/lib9p/lib9p.so.1.1 ../../lib/libvmmapi/libvmmapi.so.5.1 - - .if ${MK_INET_SUPPORT} != "no" - CFLAGS+=-DINET ---- usr.sbin/bhyve/pci_virtio_9p.c.orig 2021-08-20 16:11:13 UTC -+++ usr.sbin/bhyve/pci_virtio_9p.c -@@ -0,0 +1,344 @@ -+/*- -+ * Copyright (c) 2015 iXsystems Inc. -+ * Copyright (c) 2017-2018 Jakub Klama -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer -+ * in this position and unchanged. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+/* -+ * VirtIO filesystem passthrough using 9p protocol. -+ */ -+ -+#include -+__FBSDID("$FreeBSD$"); -+ -+#include -+#include -+#include -+#include -+ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#include -+#include -+ -+#include "bhyverun.h" -+#include "pci_emul.h" -+#include "virtio.h" -+ -+#define VT9P_MAX_IOV 128 -+#define VT9P_RINGSZ 256 -+#define VT9P_MAXTAGSZ 256 -+#define VT9P_CONFIGSPACESZ (VT9P_MAXTAGSZ + sizeof(uint16_t)) -+ -+static int pci_vt9p_debug; -+#define DPRINTF(params) if (pci_vt9p_debug) printf params -+#define WPRINTF(params) printf params -+ -+/* -+ * Per-device softc -+ */ -+struct pci_vt9p_softc { -+ struct virtio_softc vsc_vs; -+ struct vqueue_info vsc_vq; -+ pthread_mutex_t vsc_mtx; -+ uint64_t vsc_cfg; -+ uint64_t vsc_features; -+ char * vsc_rootpath; -+ struct pci_vt9p_config * vsc_config; -+ struct l9p_backend * vsc_fs_backend; -+ struct l9p_server * vsc_server; -+ struct l9p_connection * vsc_conn; -+}; -+ -+struct pci_vt9p_request { -+ struct pci_vt9p_softc * vsr_sc; -+ struct iovec * vsr_iov; -+ size_t vsr_niov; -+ size_t vsr_respidx; -+ size_t vsr_iolen; -+ uint16_t vsr_idx; -+}; -+ -+struct pci_vt9p_config { -+ uint16_t tag_len; -+ char tag[0]; -+} __attribute__((packed)); -+ -+static int pci_vt9p_send(struct l9p_request *, const struct iovec *, -+ const size_t, const size_t, void *); -+static void pci_vt9p_drop(struct l9p_request *, const struct iovec *, size_t, -+ void *); -+static void pci_vt9p_reset(void *); -+static void pci_vt9p_notify(void *, struct vqueue_info *); -+static int pci_vt9p_cfgread(void *, int, int, uint32_t *); -+static void pci_vt9p_neg_features(void *, uint64_t); -+ -+static struct virtio_consts vt9p_vi_consts = { -+ "vt9p", /* our name */ -+ 1, /* we support 1 virtqueue */ -+ VT9P_CONFIGSPACESZ, /* config reg size */ -+ pci_vt9p_reset, /* reset */ -+ pci_vt9p_notify, /* device-wide qnotify */ -+ pci_vt9p_cfgread, /* read virtio config */ -+ NULL, /* write virtio config */ -+ pci_vt9p_neg_features, /* apply negotiated features */ -+ (1 << 0), /* our capabilities */ -+}; -+ -+ -+static void -+pci_vt9p_reset(void *vsc) -+{ -+ struct pci_vt9p_softc *sc; -+ -+ sc = vsc; -+ -+ DPRINTF(("vt9p: device reset requested !\n")); -+ vi_reset_dev(&sc->vsc_vs); -+} -+ -+static void -+pci_vt9p_neg_features(void *vsc, uint64_t negotiated_features) -+{ -+ struct pci_vt9p_softc *sc = vsc; -+ -+ sc->vsc_features = negotiated_features; -+} -+ -+static int -+pci_vt9p_cfgread(void *vsc, int offset, int size, uint32_t *retval) -+{ -+ struct pci_vt9p_softc *sc = vsc; -+ void *ptr; -+ -+ ptr = (uint8_t *)sc->vsc_config + offset; -+ memcpy(retval, ptr, size); -+ return (0); -+} -+ -+static int -+pci_vt9p_get_buffer(struct l9p_request *req, struct iovec *iov, size_t *niov, -+ void *arg) -+{ -+ struct pci_vt9p_request *preq = req->lr_aux; -+ size_t n = preq->vsr_niov - preq->vsr_respidx; -+ -+ memcpy(iov, preq->vsr_iov + preq->vsr_respidx, -+ n * sizeof(struct iovec)); -+ *niov = n; -+ return (0); -+} -+ -+static int -+pci_vt9p_send(struct l9p_request *req, const struct iovec *iov, -+ const size_t niov, const size_t iolen, void *arg) -+{ -+ struct pci_vt9p_request *preq = req->lr_aux; -+ struct pci_vt9p_softc *sc = preq->vsr_sc; -+ -+ preq->vsr_iolen = iolen; -+ -+ pthread_mutex_lock(&sc->vsc_mtx); -+ vq_relchain(&sc->vsc_vq, preq->vsr_idx, preq->vsr_iolen); -+ vq_endchains(&sc->vsc_vq, 1); -+ pthread_mutex_unlock(&sc->vsc_mtx); -+ free(preq); -+ return (0); -+} -+ -+static void -+pci_vt9p_drop(struct l9p_request *req, const struct iovec *iov, size_t niov, -+ void *arg) -+{ -+ struct pci_vt9p_request *preq = req->lr_aux; -+ struct pci_vt9p_softc *sc = preq->vsr_sc; -+ -+ pthread_mutex_lock(&sc->vsc_mtx); -+ vq_relchain(&sc->vsc_vq, preq->vsr_idx, 0); -+ vq_endchains(&sc->vsc_vq, 1); -+ pthread_mutex_unlock(&sc->vsc_mtx); -+ free(preq); -+} -+ -+static void -+pci_vt9p_notify(void *vsc, struct vqueue_info *vq) -+{ -+ struct iovec iov[VT9P_MAX_IOV]; -+ struct pci_vt9p_softc *sc; -+ struct pci_vt9p_request *preq; -+ uint16_t idx, n, i; -+ uint16_t flags[VT9P_MAX_IOV]; -+ -+ sc = vsc; -+ -+ while (vq_has_descs(vq)) { -+ n = vq_getchain(vq, &idx, iov, VT9P_MAX_IOV, flags); -+ preq = calloc(1, sizeof(struct pci_vt9p_request)); -+ preq->vsr_sc = sc; -+ preq->vsr_idx = idx; -+ preq->vsr_iov = iov; -+ preq->vsr_niov = n; -+ preq->vsr_respidx = 0; -+ -+ /* Count readable descriptors */ -+ for (i = 0; i < n; i++) { -+ if (flags[i] & VRING_DESC_F_WRITE) -+ break; -+ -+ preq->vsr_respidx++; -+ } -+ -+ for (int i = 0; i < n; i++) { -+ DPRINTF(("vt9p: vt9p_notify(): desc%d base=%p, " -+ "len=%zu, flags=0x%04x\r\n", i, iov[i].iov_base, -+ iov[i].iov_len, flags[i])); -+ } -+ -+ l9p_connection_recv(sc->vsc_conn, iov, preq->vsr_respidx, preq); -+ } -+} -+ -+ -+static int -+pci_vt9p_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) -+{ -+ struct pci_vt9p_softc *sc; -+ char *opt; -+ char *sharename = NULL; -+ char *rootpath = NULL; -+ int rootfd; -+ bool ro = false; -+ cap_rights_t rootcap; -+ -+ if (opts == NULL) { -+ printf("virtio-9p: share name and path required\n"); -+ return (1); -+ } -+ -+ while ((opt = strsep(&opts, ",")) != NULL) { -+ if (strchr(opt, '=') != NULL) { -+ if (sharename != NULL) { -+ printf("virtio-9p: more than one share name given\n"); -+ return (1); -+ } -+ -+ sharename = strsep(&opt, "="); -+ rootpath = opt; -+ continue; -+ } -+ -+ if (strcmp(opt, "ro") == 0) { -+ DPRINTF(("read-only mount requested\r\n")); -+ ro = true; -+ continue; -+ } -+ -+ printf("virtio-9p: invalid option '%s'\n", opt); -+ return (1); -+ } -+ -+ if (strlen(sharename) > VT9P_MAXTAGSZ) { -+ printf("virtio-9p: share name too long\n"); -+ return (1); -+ } -+ -+ rootfd = open(rootpath, O_DIRECTORY); -+ if (rootfd < 0) -+ return (-1); -+ -+ sc = calloc(1, sizeof(struct pci_vt9p_softc)); -+ sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config) + -+ VT9P_MAXTAGSZ); -+ -+ pthread_mutex_init(&sc->vsc_mtx, NULL); -+ -+ cap_rights_init(&rootcap, -+ CAP_LOOKUP, CAP_ACL_CHECK, CAP_ACL_DELETE, CAP_ACL_GET, -+ CAP_ACL_SET, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_FSTAT, -+ CAP_CREATE, CAP_FCHMODAT, CAP_FCHOWNAT, CAP_FTRUNCATE, -+ CAP_LINKAT_SOURCE, CAP_LINKAT_TARGET, CAP_MKDIRAT, CAP_MKNODAT, -+ CAP_PREAD, CAP_PWRITE, CAP_RENAMEAT_SOURCE, CAP_RENAMEAT_TARGET, -+ CAP_SEEK, CAP_SYMLINKAT, CAP_UNLINKAT, CAP_EXTATTR_DELETE, -+ CAP_EXTATTR_GET, CAP_EXTATTR_LIST, CAP_EXTATTR_SET, -+ CAP_FUTIMES, CAP_FSTATFS, CAP_FSYNC, CAP_FPATHCONF); -+ -+ if (cap_rights_limit(rootfd, &rootcap) != 0) -+ return (1); -+ -+ sc->vsc_config->tag_len = (uint16_t)strlen(sharename); -+ memcpy(sc->vsc_config->tag, sharename, sc->vsc_config->tag_len); -+ -+ if (l9p_backend_fs_init(&sc->vsc_fs_backend, rootfd, ro) != 0) { -+ errno = ENXIO; -+ return (1); -+ } -+ -+ if (l9p_server_init(&sc->vsc_server, sc->vsc_fs_backend) != 0) { -+ errno = ENXIO; -+ return (1); -+ } -+ -+ if (l9p_connection_init(sc->vsc_server, &sc->vsc_conn) != 0) { -+ errno = EIO; -+ return (1); -+ } -+ -+ sc->vsc_conn->lc_msize = L9P_MAX_IOV * PAGE_SIZE; -+ sc->vsc_conn->lc_lt.lt_get_response_buffer = pci_vt9p_get_buffer; -+ sc->vsc_conn->lc_lt.lt_send_response = pci_vt9p_send; -+ sc->vsc_conn->lc_lt.lt_drop_response = pci_vt9p_drop; -+ -+ vi_softc_linkup(&sc->vsc_vs, &vt9p_vi_consts, sc, pi, &sc->vsc_vq); -+ sc->vsc_vs.vs_mtx = &sc->vsc_mtx; -+ sc->vsc_vq.vq_qsize = VT9P_RINGSZ; -+ -+ /* initialize config space */ -+ pci_set_cfgdata16(pi, PCIR_DEVICE, VIRTIO_DEV_9P); -+ pci_set_cfgdata16(pi, PCIR_VENDOR, VIRTIO_VENDOR); -+ pci_set_cfgdata8(pi, PCIR_CLASS, PCIC_STORAGE); -+ pci_set_cfgdata16(pi, PCIR_SUBDEV_0, VIRTIO_TYPE_9P); -+ pci_set_cfgdata16(pi, PCIR_SUBVEND_0, VIRTIO_VENDOR); -+ -+ if (vi_intr_init(&sc->vsc_vs, 1, fbsdrun_virtio_msix())) -+ return (1); -+ vi_set_io_bar(&sc->vsc_vs, 0); -+ -+ return (0); -+} -+ -+struct pci_devemu pci_de_v9p = { -+ .pe_emu = "virtio-9p", -+ .pe_init = pci_vt9p_init, -+ .pe_barwrite = vi_pci_write, -+ .pe_barread = vi_pci_read -+}; -+PCI_EMUL_SET(pci_de_v9p); ---- usr.sbin/bhyve/virtio.h.orig 2021-08-20 16:20:49 UTC -+++ usr.sbin/bhyve/virtio.h -@@ -215,6 +215,7 @@ struct vring_used { - #define VIRTIO_DEV_BLOCK 0x1001 - #define VIRTIO_DEV_RANDOM 0x1005 - #define VIRTIO_DEV_CONSOLE 0x1003 -+#define VIRTIO_DEV_9P 0x1009 - - /* - * PCI config space constants. Index: sysutils/bhyve+/files/freebsd-11/patch-vtd-fix =================================================================== --- sysutils/bhyve+/files/freebsd-11/patch-vtd-fix +++ /dev/null @@ -1,211 +0,0 @@ ---- sys/amd64/vmm/intel/vtd.c -+++ sys/amd64/vmm/intel/vtd.c -@@ -51,6 +51,8 @@ __FBSDID("$FreeBSD$"); - * Architecture Spec, September 2008. - */ - -+#define VTD_DRHD_INCLUDE_PCI_ALL(Flags) (((Flags) >> 0) & 0x1) -+ - /* Section 10.4 "Register Descriptions" */ - struct vtdmap { - volatile uint32_t version; -@@ -116,10 +118,11 @@ struct domain { - static SLIST_HEAD(, domain) domhead; - - #define DRHD_MAX_UNITS 8 --static int drhd_num; --static struct vtdmap *vtdmaps[DRHD_MAX_UNITS]; --static int max_domains; --typedef int (*drhd_ident_func_t)(void); -+static ACPI_DMAR_HARDWARE_UNIT *drhds[DRHD_MAX_UNITS]; -+static int drhd_num; -+static struct vtdmap *vtdmaps[DRHD_MAX_UNITS]; -+static int max_domains; -+typedef int (*drhd_ident_func_t)(void); - - static uint64_t root_table[PAGE_SIZE / sizeof(uint64_t)] __aligned(4096); - static uint64_t ctx_tables[256][PAGE_SIZE / sizeof(uint64_t)] __aligned(4096); -@@ -175,6 +178,69 @@ domain_id(void) - return (id); - } - -+static struct vtdmap * -+vtd_device_scope(uint16_t rid) -+{ -+ int i, remaining, pathremaining; -+ char *end, *pathend; -+ struct vtdmap *vtdmap; -+ ACPI_DMAR_HARDWARE_UNIT *drhd; -+ ACPI_DMAR_DEVICE_SCOPE *device_scope; -+ ACPI_DMAR_PCI_PATH *path; -+ -+ for (i = 0; i < drhd_num; i++) { -+ drhd = drhds[i]; -+ -+ if (VTD_DRHD_INCLUDE_PCI_ALL(drhd->Flags)) { -+ /* -+ * From Intel VT-d arch spec, version 3.0: -+ * If a DRHD structure with INCLUDE_PCI_ALL flag Set is reported -+ * for a Segment, it must be enumerated by BIOS after all other -+ * DRHD structures for the same Segment. -+ */ -+ vtdmap = vtdmaps[i]; -+ return(vtdmap); -+ } -+ -+ end = (char *)drhd + drhd->Header.Length; -+ remaining = drhd->Header.Length - sizeof(ACPI_DMAR_HARDWARE_UNIT); -+ while (remaining > sizeof(ACPI_DMAR_DEVICE_SCOPE)) { -+ device_scope = (ACPI_DMAR_DEVICE_SCOPE *)(end - remaining); -+ remaining -= device_scope->Length; -+ -+ switch (device_scope->EntryType){ -+ /* 0x01 and 0x02 are PCI device entries */ -+ case 0x01: -+ case 0x02: -+ break; -+ default: -+ continue; -+ } -+ -+ if (PCI_RID2BUS(rid) != device_scope->Bus) -+ continue; -+ -+ pathend = (char *)device_scope + device_scope->Length; -+ pathremaining = device_scope->Length - sizeof(ACPI_DMAR_DEVICE_SCOPE); -+ while (pathremaining >= sizeof(ACPI_DMAR_PCI_PATH)) { -+ path = (ACPI_DMAR_PCI_PATH *)(pathend - pathremaining); -+ pathremaining -= sizeof(ACPI_DMAR_PCI_PATH); -+ -+ if (PCI_RID2SLOT(rid) != path->Device) -+ continue; -+ if (PCI_RID2FUNC(rid) != path->Function) -+ continue; -+ -+ vtdmap = vtdmaps[i]; -+ return (vtdmap); -+ } -+ } -+ } -+ -+ /* No matching scope */ -+ return (NULL); -+} -+ - static void - vtd_wbflush(struct vtdmap *vtdmap) - { -@@ -240,7 +306,7 @@ vtd_translation_disable(struct vtdmap *vtdmap) - static int - vtd_init(void) - { -- int i, units, remaining; -+ int i, units, remaining, tmp; - struct vtdmap *vtdmap; - vm_paddr_t ctx_paddr; - char *end, envname[32]; -@@ -291,8 +357,9 @@ vtd_init(void) - break; - - drhd = (ACPI_DMAR_HARDWARE_UNIT *)hdr; -- vtdmaps[units++] = (struct vtdmap *)PHYS_TO_DMAP(drhd->Address); -- if (units >= DRHD_MAX_UNITS) -+ drhds[units] = drhd; -+ vtdmaps[units] = (struct vtdmap *)PHYS_TO_DMAP(drhd->Address); -+ if (++units >= DRHD_MAX_UNITS) - break; - remaining -= hdr->Length; - } -@@ -302,12 +369,18 @@ vtd_init(void) - - skip_dmar: - drhd_num = units; -- vtdmap = vtdmaps[0]; - -- if (VTD_CAP_CM(vtdmap->cap) != 0) -- panic("vtd_init: invalid caching mode"); -+ max_domains = 64 * 1024; /* maximum valid value */ -+ for (i = 0; i < drhd_num; i++){ -+ vtdmap = vtdmaps[i]; -+ -+ if (VTD_CAP_CM(vtdmap->cap) != 0) -+ panic("vtd_init: invalid caching mode"); - -- max_domains = vtd_max_domains(vtdmap); -+ /* take most compatible (minimum) value */ -+ if ((tmp = vtd_max_domains(vtdmap)) < max_domains) -+ max_domains = tmp; -+ } - - /* - * Set up the root-table to point to the context-entry tables -@@ -373,7 +446,6 @@ vtd_add_device(void *arg, uint16_t rid) - struct vtdmap *vtdmap; - uint8_t bus; - -- vtdmap = vtdmaps[0]; - bus = PCI_RID2BUS(rid); - ctxp = ctx_tables[bus]; - pt_paddr = vtophys(dom->ptp); -@@ -385,6 +457,10 @@ vtd_add_device(void *arg, uint16_t rid) - (uint16_t)(ctxp[idx + 1] >> 8)); - } - -+ if ((vtdmap = vtd_device_scope(rid)) == NULL) -+ panic("vtd_add_device: device %x is not in scope for " -+ "any DMA remapping unit", rid); -+ - /* - * Order is important. The 'present' bit is set only after all fields - * of the context pointer are initialized. -@@ -568,8 +644,6 @@ vtd_create_domain(vm_paddr_t maxaddr) - if (drhd_num <= 0) - panic("vtd_create_domain: no dma remapping hardware available"); - -- vtdmap = vtdmaps[0]; -- - /* - * Calculate AGAW. - * Section 3.4.2 "Adjusted Guest Address Width", Architecture Spec. -@@ -594,7 +668,14 @@ vtd_create_domain(vm_paddr_t maxaddr) - pt_levels = 2; - sagaw = 30; - addrwidth = 0; -- tmp = VTD_CAP_SAGAW(vtdmap->cap); -+ -+ tmp = ~0; -+ for (i = 0; i < drhd_num; i++) { -+ vtdmap = vtdmaps[i]; -+ /* take most compatible value */ -+ tmp &= VTD_CAP_SAGAW(vtdmap->cap); -+ } -+ - for (i = 0; i < 5; i++) { - if ((tmp & (1 << i)) != 0 && sagaw >= agaw) - break; -@@ -606,8 +687,8 @@ vtd_create_domain(vm_paddr_t maxaddr) - } - - if (i >= 5) { -- panic("vtd_create_domain: SAGAW 0x%lx does not support AGAW %d", -- VTD_CAP_SAGAW(vtdmap->cap), agaw); -+ panic("vtd_create_domain: SAGAW 0x%x does not support AGAW %d", -+ tmp, agaw); - } - - dom = malloc(sizeof(struct domain), M_VTD, M_ZERO | M_WAITOK); -@@ -634,7 +715,12 @@ vtd_create_domain(vm_paddr_t maxaddr) - * There is not any code to deal with the demotion at the moment - * so we disable superpage mappings altogether. - */ -- dom->spsmask = VTD_CAP_SPS(vtdmap->cap); -+ dom->spsmask = ~0; -+ for (i = 0; i < drhd_num; i++) { -+ vtdmap = vtdmaps[i]; -+ /* take most compatible value */ -+ dom->spsmask &= VTD_CAP_SPS(vtdmap->cap); -+ } - #endif - - SLIST_INSERT_HEAD(&domhead, dom, next); - Index: sysutils/cfengine310/Makefile =================================================================== --- sysutils/cfengine310/Makefile +++ sysutils/cfengine310/Makefile @@ -76,7 +76,7 @@ .include -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1200085 +.if ${OPSYS} == "FreeBSD" .if ${SSL_DEFAULT} != "openssl" BROKEN_FreeBSD_12= fails to build with openssl BROKEN_FreeBSD_13= fails to build with openssl Index: sysutils/crate/Makefile =================================================================== --- sysutils/crate/Makefile +++ sysutils/crate/Makefile @@ -13,8 +13,6 @@ BROKEN= STL feature 'filesystem' isn't available # ' .endif -IGNORE_FreeBSD_11= getline isn't available on 11 by simply including as its manpage says #' - BUILD_DEPENDS= rang>0:devel/rang LIB_DEPENDS= libyaml-cpp.so:devel/yaml-cpp Index: sysutils/ddpt/Makefile =================================================================== --- sysutils/ddpt/Makefile +++ sysutils/ddpt/Makefile @@ -11,8 +11,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11= lack of NVME_STATUS_GET_SCT and NVME_STATUS_GET_SC - USES= gmake tar:tgz USE_LDCONFIG= yes GNU_CONFIGURE= yes Index: sysutils/dtrace-toolkit/Makefile =================================================================== --- sysutils/dtrace-toolkit/Makefile +++ sysutils/dtrace-toolkit/Makefile @@ -78,7 +78,7 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200031 +.if ${OPSYS} == FreeBSD # lstat calls are no longer available on 12.0+ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-dtruss .endif Index: sysutils/fluent-bit/Makefile =================================================================== --- sysutils/fluent-bit/Makefile +++ sysutils/fluent-bit/Makefile @@ -40,10 +40,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-lib_luajit__src__lj_prng.c -.endif - .if ${ARCH:Mpowerpc64*} CMAKE_ARGS+= -DFLB_LUAJIT:BOOL=OFF .elif ${ARCH} == powerpc Index: sysutils/hid-tools/Makefile =================================================================== --- sysutils/hid-tools/Makefile +++ sysutils/hid-tools/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 -IGNORE_FreeBSD_11= Is missing a hidraw(4) driver - RUN_DEPENDS_FreeBSD_12= iichid>=0.0.6:sysutils/iichid RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}parse>=0:textproc/py-parse@${PY_FLAVOR} \ Index: sysutils/iichid/Makefile =================================================================== --- sysutils/iichid/Makefile +++ sysutils/iichid/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= Requires FreeBSD 12.1 or later IGNORE_FreeBSD_13= Is a part of base system IGNORE_FreeBSD_14= Is a part of base system Index: sysutils/ipmitool/Makefile =================================================================== --- sysutils/ipmitool/Makefile +++ sysutils/ipmitool/Makefile @@ -48,7 +48,7 @@ .include -.if (${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085) || ${SSL_DEFAULT} == openssl +.if ${OPSYS} == FreeBSD || ${SSL_DEFAULT} == openssl EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_plugins_lanplus_lanplus__crypt__impl.c .endif Index: sysutils/keyd/Makefile =================================================================== --- sysutils/keyd/Makefile +++ sysutils/keyd/Makefile @@ -18,7 +18,6 @@ GH_ACCOUNT= rvaiya MAKE_ARGS= DESTDIR="${DESTDIR}" PREFIX="${PREFIX}" \ GIT_HASH="${DISTVERSIONFULL}" -CFLAGS+= -D_WITH_GETLINE # XXX Remove after FreeBSD 11 EOL PLIST_FILES= bin/${PORTNAME} \ share/man/man1/${PORTNAME}.1.gz \ "@dir ${ETCDIR}" Index: sysutils/kvmclock-kmod/Makefile =================================================================== --- sysutils/kvmclock-kmod/Makefile +++ sysutils/kvmclock-kmod/Makefile @@ -8,7 +8,6 @@ LICENSE= BSD2CLAUSE -BROKEN_FreeBSD_11= fails to build: pvclock.c:248:30: error: too many arguments ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= not yet tested for non-x86 Index: sysutils/libdnf/Makefile =================================================================== --- sysutils/libdnf/Makefile +++ sysutils/libdnf/Makefile @@ -8,8 +8,6 @@ LICENSE= LGPL21 # no LICENSE tag for Version 2.1 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11= fatal error: sys/auxv.h: No such file or directory - BUILD_DEPENDS= check>0:devel/check LIB_DEPENDS= libassuan.so:security/libassuan \ libgpgme.so:security/gpgme \ Index: sysutils/nsysctl/Makefile =================================================================== --- sysutils/nsysctl/Makefile +++ sysutils/nsysctl/Makefile @@ -24,9 +24,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 -IGNORE= needs oid_label member of struct sysctl_oid defined in sysctl.h which was first introduced in FreeBSD 12 -.endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD .endif Index: sysutils/nvme-cli/Makefile =================================================================== --- sysutils/nvme-cli/Makefile +++ sysutils/nvme-cli/Makefile @@ -12,7 +12,6 @@ # only tested on amd64, all other archs are no-go until we're sure amd64 works. # And there's plenty in amd64 that compiles, but won't run (eg using /sys/, etc) ONLY_FOR_ARCHS= amd64 -BROKEN_FreeBSD_11= Uses newer API than in 11.x USES= gmake USE_GITHUB= yes Index: sysutils/openzfs-kmod/Makefile =================================================================== --- sysutils/openzfs-kmod/Makefile +++ sysutils/openzfs-kmod/Makefile @@ -29,7 +29,7 @@ .include -.if (${OSVERSION} < 1200504) || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1300013) +.if ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300013 IGNORE= needs FreeBSD 12/13 with AES-CCM support .endif Index: sysutils/openzfs/Makefile =================================================================== --- sysutils/openzfs/Makefile +++ sysutils/openzfs/Makefile @@ -29,7 +29,7 @@ .include -.if (${OSVERSION} < 1200504) || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1300013) +.if ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300013 IGNORE= needs FreeBSD 12/13 with AES-CCM support .endif Index: sysutils/panicmail/Makefile =================================================================== --- sysutils/panicmail/Makefile +++ sysutils/panicmail/Makefile @@ -8,21 +8,16 @@ LICENSE= BSD2CLAUSE -RUN_DEPENDS= pkesh:security/pkesh +RUN_DEPENDS= pkesh:security/pkesh \ + ${LOCALBASE}/bin/gdb:devel/gdb NO_BUILD= yes PLIST_FILES= etc/rc.d/panicmail \ etc/cperciva-panicmail.pem -# Pull in gdb from ports for FreeBSD versions where it's not in base -.include -.if ${OSVERSION} > 1200028 -RUN_DEPENDS+= ${LOCALBASE}/bin/gdb:devel/gdb -.endif - do-install: ${INSTALL_SCRIPT} ${WRKSRC}/panicmail ${STAGEDIR}${PREFIX}/etc/rc.d/ ${INSTALL_DATA} ${WRKSRC}/cperciva-panicmail.pem ${STAGEDIR}${PREFIX}/etc -.include +.include Index: sysutils/rshim-user-space/Makefile =================================================================== --- sysutils/rshim-user-space/Makefile +++ sysutils/rshim-user-space/Makefile @@ -25,7 +25,7 @@ .include -.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1201500 || !exists(/usr/lib/libcuse.so) +.if ${OPSYS} != FreeBSD || !exists(/usr/lib/libcuse.so) IGNORE= not supported on this operating system combination .endif Index: sysutils/sdparm/Makefile =================================================================== --- sysutils/sdparm/Makefile +++ sysutils/sdparm/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD3CLAUSE -BROKEN_FreeBSD_11= Lack of NVME_STATUS_GET_SCT - USE_LDCONFIG= yes USES= shebangfix tar:tgz GNU_CONFIGURE= yes Index: sysutils/sysctlbyname-improved-kmod/Makefile =================================================================== --- sysutils/sysctlbyname-improved-kmod/Makefile +++ sysutils/sysctlbyname-improved-kmod/Makefile @@ -23,12 +23,6 @@ .include -# Once the sysctlinfo interface (review D21700) lands into the base tree this -# node can be added to the interface and the following statement needs -# to be expanded -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 -IGNORE= needs oid_label member of struct sysctl_oid defined in sysctl.h which was first introduced in FreeBSD 12 -.endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD .endif Index: sysutils/sysctlinfo-kmod/Makefile =================================================================== --- sysutils/sysctlinfo-kmod/Makefile +++ sysutils/sysctlinfo-kmod/Makefile @@ -26,11 +26,6 @@ .include -# Once the sysctlinfo interface (review D21700) lands into the base tree the -# following statement needs to be expanded -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 -IGNORE= needs oid_label member of struct sysctl_oid defined in sysctl.h which was first introduced in FreeBSD 12 -.endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD .endif Index: sysutils/u-boot-master/Makefile =================================================================== --- sysutils/u-boot-master/Makefile +++ sysutils/u-boot-master/Makefile @@ -248,12 +248,4 @@ .endfor ${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${INST}/README -.include - -.if defined(FAMILY) -.if ${FAMILY} == qemu && ${OPSYS} == FreeBSD && ${OSVERSION} <= 1200000 -BROKEN= Base openssl too old -.endif -.endif - .include Index: sysutils/u-boot-sopine-spi/Makefile =================================================================== --- sysutils/u-boot-sopine-spi/Makefile +++ sysutils/u-boot-sopine-spi/Makefile @@ -10,7 +10,6 @@ UBOOT_PLIST= u-boot-sunxi-with-spl.bin \ boot.scr PLIST_EXTRAS= sopine-spi-flasher.img -IGNORE_FreeBSD_11= No makefs msdos support post-build: mkimage -C none -A arm64 -T script -d ${.CURDIR}/../u-boot-sopine-spi/files/boot.cmd ${WRKSRC}/boot.scr Index: sysutils/xen-tools/Makefile =================================================================== --- sysutils/xen-tools/Makefile +++ sysutils/xen-tools/Makefile @@ -65,10 +65,6 @@ IGNORE= only supported on FreeBSD .endif -.if ${OSVERSION} < 1200074 -IGNORE= only supported on FreeBSD 12.0 or newer -.endif - .if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008 BROKEN= SPICE support requires FreeBSD version 13.0 or higher .endif Index: sysutils/ztop/Makefile =================================================================== --- sysutils/ztop/Makefile +++ sysutils/ztop/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_11= lacks required kernel functionality - USES= cargo USE_GITHUB= yes GH_ACCOUNT= asomers Index: textproc/apertium/Makefile =================================================================== --- textproc/apertium/Makefile +++ textproc/apertium/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library *** BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library *** BUILD_DEPENDS= bash:shells/bash Index: textproc/libucl/Makefile =================================================================== --- textproc/libucl/Makefile +++ textproc/libucl/Makefile @@ -53,7 +53,7 @@ .include # https://github.com/vstakhov/libucl/issues/203 -.if ${PORT_OPTIONS:MSIGNATURES} && ((${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl) +.if ${PORT_OPTIONS:MSIGNATURES} && ((${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl) BROKEN= Signatures checking support does not build with OpenSSL 1.1.1 .endif Index: textproc/xmlwrapp/Makefile =================================================================== --- textproc/xmlwrapp/Makefile +++ textproc/xmlwrapp/Makefile @@ -12,7 +12,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_11_powerpc64= fails to configure: invalid value: boost_major_version= BROKEN_FreeBSD_12_powerpc64= fails to configure: invalid value: boost_major_version= LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs Index: www/chromium/Makefile =================================================================== --- www/chromium/Makefile +++ www/chromium/Makefile @@ -14,7 +14,6 @@ LICENSE= BSD3CLAUSE LGPL21 MPL11 LICENSE_COMB= multi -BROKEN_FreeBSD_11_aarch64= components/safe_browsing_db/v4_rice.cc:120:18: use of overloaded operator '&' is ambiguous BROKEN_i386= ../../base/files/file_util_posix.cc:1258:29: error: no matching function for call to 'sendfile' (ssize_t vs off_t) ONLY_FOR_ARCHS= aarch64 amd64 i386 Index: www/cpp-httplib/Makefile =================================================================== --- www/cpp-httplib/Makefile +++ www/cpp-httplib/Makefile @@ -29,8 +29,8 @@ lib/cmake/httplib/httplibConfigVersion.cmake \ lib/cmake/httplib/httplibTargets.cmake -OPTIONS_DEFINE= BROTLI ${${OSVERSION}>1200085:?SSL:} -OPTIONS_DEFAULT= BROTLI ${${OSVERSION}>1200085:?SSL:} +OPTIONS_DEFINE= BROTLI SSL +OPTIONS_DEFAULT= BROTLI SSL BROTLI_CMAKE_BOOL= HTTPLIB_REQUIRE_BROTLI HTTPLIB_USE_BROTLI_IF_AVAILABLE BROTLI_BUILD_DEPENDS= brotli>0:archivers/brotli Index: www/epiphany/Makefile =================================================================== --- www/epiphany/Makefile +++ www/epiphany/Makefile @@ -54,10 +54,4 @@ PLIST_SUB+= EPHY_VERSION=${PORTVERSION:R} -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-lib_ephy-sync-utils.c -.endif - -.include +.include Index: www/firefox/files/patch-freebsd11 =================================================================== --- www/firefox/files/patch-freebsd11 +++ /dev/null @@ -1,21 +0,0 @@ -Drop after FreeBSD 11 EOL, see https://svnweb.freebsd.org/changeset/base/303524 - -media/libcubeb/src/cubeb_oss.c:362:10: error: implicit declaration of function 'getline' is invalid in C99 [-Werror,-Wimplicit-function-declaration] - while (getline(&line, &linecap, sndstatfp) > 0) { - ^ -media/libcubeb/src/cubeb_oss.c:850:13: warning: comparison of integers of different signs: 'long' and 'unsigned int' [-Wsign-compare] - if (nfr > s->bufframes) { - ~~~ ^ ~~~~~~~~~~~~ - ---- media/libcubeb/src/cubeb_oss.c.orig 2021-08-31 15:32:30.862769000 +0200 -+++ media/libcubeb/src/cubeb_oss.c 2021-08-31 15:33:07.421620000 +0200 -@@ -10,6 +10,9 @@ - * accompanying file LICENSE for details. - */ - -+#if defined(__FreeBSD__) && __FreeBSD__ < 12 -+#define _WITH_GETLINE -+#endif - #include "cubeb-internal.h" - #include "cubeb/cubeb.h" - #include "cubeb_mixer.h" Index: www/h2o-devel/Makefile =================================================================== --- www/h2o-devel/Makefile +++ www/h2o-devel/Makefile @@ -14,7 +14,6 @@ BROKEN_armv6= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported BROKEN_armv7= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported -BROKEN_FreeBSD_11_powerpc64= fails to link on powerpc64 elfv1: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' LIB_DEPENDS= libuv.so:devel/libuv Index: www/h2o/Makefile =================================================================== --- www/h2o/Makefile +++ www/h2o/Makefile @@ -13,7 +13,6 @@ BROKEN_armv6= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported BROKEN_armv7= fails to compile: asm_arm.inc:139:36: '.syntax divided' arm assembly not supported -BROKEN_FreeBSD_11_powerpc64= fails to link: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' BROKEN_FreeBSD_12_powerpc64= fails to link: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' LIB_DEPENDS= libuv.so:devel/libuv Index: www/httest/Makefile =================================================================== --- www/httest/Makefile +++ www/httest/Makefile @@ -37,12 +37,6 @@ MAKE_JOBS_UNSAFE= yes -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -BROKEN= requires OpenSSL 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=openssl to /etc/make.conf -.endif - post-patch: @${REINPLACE_CMD} -e 's|`$$APR_CONFIG --cflags`||; s|-llua|-llua-${LUA_VER}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/generate_modules_c.sh @@ -53,4 +47,4 @@ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR} -.include +.include Index: www/lagrange/Makefile =================================================================== --- www/lagrange/Makefile +++ www/lagrange/Makefile @@ -28,10 +28,4 @@ OPENSSL_LDFLAGS= -lssl -lcrypto -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base -BROKEN= requires at least OpenSSL version 1.1.1 to build -.endif - -.include +.include Index: www/libdatachannel/Makefile =================================================================== --- www/libdatachannel/Makefile +++ www/libdatachannel/Makefile @@ -24,16 +24,10 @@ CMAKE_ON= USE_SYSTEM_SRTP NO_EXAMPLES NO_TESTS -.include - -.if ${SSL_DEFAULT} == base -BROKEN_FreeBSD_11= OpenSSL is too old: use of undeclared identifier 'X509_getm_notBefore' -.endif - do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DNO_TESTS:BOOL=OFF ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ./tests-${DISTVERSION:C/-.*//} -.include +.include Index: www/mod_authnz_crowd/Makefile =================================================================== --- www/mod_authnz_crowd/Makefile +++ www/mod_authnz_crowd/Makefile @@ -14,7 +14,6 @@ BROKEN_mips= fails to build: error: curl/curl.h: No such file or directory BROKEN_mips64= fails to build: error: curl/curl.h: No such file or directory -BROKEN_FreeBSD_11_powerpc64= fails to build on powerpc64 elfv1: curl/curl.h: No such file or directory BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: curl/curl.h: No such file or directory LIB_DEPENDS= libsvn_client-1.so:devel/subversion \ Index: www/node/Makefile =================================================================== --- www/node/Makefile +++ www/node/Makefile @@ -19,7 +19,6 @@ OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE OPTIONS_DEFAULT= DTRACE -OPTIONS_DEFAULT_FreeBSD_11= BUNDLED_SSL OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} OPTIONS_SUB= yes @@ -88,10 +87,6 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tools_v8__gypfiles_v8.gyp .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN_SSL+= base -.endif - .if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 CONFIGURE_ARGS+=--openssl-no-asm .endif Index: www/node10/Makefile =================================================================== --- www/node10/Makefile +++ www/node10/Makefile @@ -23,7 +23,6 @@ OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE OPTIONS_DEFAULT= DTRACE -OPTIONS_DEFAULT_FreeBSD_11= BUNDLED_SSL OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} OPTIONS_SUB= yes @@ -78,10 +77,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN_SSL+= base -.endif - .if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 && ${ARCH} != i386 CONFIGURE_ARGS+=--openssl-no-asm .elif (defined(PPC_ABI) && ${PPC_ABI} == ELFv2) || ${ARCH} == powerpc64le Index: www/node14/Makefile =================================================================== --- www/node14/Makefile +++ www/node14/Makefile @@ -20,7 +20,6 @@ OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE OPTIONS_DEFAULT= DTRACE -OPTIONS_DEFAULT_FreeBSD_11= BUNDLED_SSL OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} OPTIONS_SUB= yes @@ -89,10 +88,6 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tools_v8__gypfiles_v8.gyp .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 -BROKEN_SSL+= base -.endif - .if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 CONFIGURE_ARGS+=--openssl-no-asm .endif Index: www/polipo/files/pkg-install.in =================================================================== --- www/polipo/files/pkg-install.in +++ www/polipo/files/pkg-install.in @@ -65,12 +65,4 @@ fi -OSVER=`uname -r | sed -e 's/\..*//'` -if [ ${OSVER} = "8" -o ${OSVER} = "9" ]; then - CACHEPARENT=`dirname ${POLIPOCACHE}` - echo "You will need to manually run:" - echo " chmod o+x %%DESTDIR%%$CACHEPARENT" - echo "to ensure the cache is useable." -fi - exit 0 Index: www/quark/Makefile =================================================================== --- www/quark/Makefile +++ www/quark/Makefile @@ -22,11 +22,6 @@ .include -# _WITH_DPRINTF support was removed precisely in r303524. -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200002 -CFLAGS+= -D_WITH_DPRINTF -.endif - _COMMIT_HASH= 3c7049e9063edebbd1934178f263f9f3c9b8ddf5 pre-everything:: Index: www/sitecopy/Makefile =================================================================== --- www/sitecopy/Makefile +++ www/sitecopy/Makefile @@ -42,7 +42,7 @@ ${WRKSRC}/src/sitestore.c @${REINPLACE_CMD} -e 's|25 26 27 28|& 29 30 31|g' \ ${WRKSRC}/configure -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200072 +.if ${OPSYS} == FreeBSD @${REINPLACE_CMD} -e '/#define ksize_t /d' \ ${WRKSRC}/configure .endif Index: www/squid3/Makefile =================================================================== --- www/squid3/Makefile +++ www/squid3/Makefile @@ -274,7 +274,7 @@ # Finally, add additional user specified configuration options: CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS} -.if ${PORT_OPTIONS:MSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base +.if ${PORT_OPTIONS:MSSL} && ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base BROKEN= does not build with OpenSSL 1.1; you may add DEFAULT_VERSIONS+=ssl=libressl to /etc/make.conf as a workaround .endif Index: x11-servers/xorg-server/Makefile =================================================================== --- x11-servers/xorg-server/Makefile +++ x11-servers/xorg-server/Makefile @@ -23,10 +23,7 @@ OPTIONS_RADIO= CONF OPTIONS_RADIO_CONF= DEVD UDEV OPTIONS_DEFAULT= SUID -OPTIONS_DEFAULT_FreeBSD_11= DEVD -OPTIONS_DEFAULT_FreeBSD_12= UDEV -OPTIONS_DEFAULT_FreeBSD_13= UDEV -OPTIONS_DEFAULT_FreeBSD_14= UDEV +OPTIONS_DEFAULT_FreeBSD= UDEV OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} SUID_DESC= Install setuid wrapper to allow startx as non-root Index: x11-toolkits/gnustep-gui/Makefile =================================================================== --- x11-toolkits/gnustep-gui/Makefile +++ x11-toolkits/gnustep-gui/Makefile @@ -20,8 +20,6 @@ LIB_DEPENDS+= libao.so:audio/libao LIB_DEPENDS+= libflite.so:audio/flite -BROKEN_FreeBSD_11= compiler segfault - USES= gnustep jpeg pkgconfig xorg USE_GNUSTEP= base build USE_XORG= x11 xt Index: x11-toolkits/wlroots/files/patch-include_wlr_types_wlr__seat.h =================================================================== --- x11-toolkits/wlroots/files/patch-include_wlr_types_wlr__seat.h +++ /dev/null @@ -1,26 +0,0 @@ -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231425 - -In file included from ../sway/ipc-json.c:7: -In file included from ../include/sway/ipc-json.h:5: -In file included from ../include/sway/input/input-manager.h:6: -In file included from ../include/sway/server.h:9: -In file included from /usr/local/include/wlr/types/wlr_data_device.h:13: -/usr/local/include/wlr/types/wlr_seat.h:197:18: error: field has incomplete type 'struct timespec' - struct timespec last_event; - ^ -/usr/local/include/wlr/types/wlr_output.h:123:9: note: forward declaration of 'struct timespec' - struct timespec *when; - ^ - ---- include/wlr/types/wlr_seat.h.orig 2019-08-01 16:00:48 UTC -+++ include/wlr/types/wlr_seat.h -@@ -10,6 +10,9 @@ - #define WLR_TYPES_WLR_SEAT_H - - #include -+#if defined(_C11_SOURCE) && defined(__FreeBSD__) && __FreeBSD__ < 12 -+#include -+#endif - #include - #include - #include Index: x11-toolkits/wlroots/pkg-message =================================================================== --- x11-toolkits/wlroots/pkg-message +++ x11-toolkits/wlroots/pkg-message @@ -2,8 +2,6 @@ { type: install message: <= 1200079 ${REINPLACE_CMD} \ -e 's/kmem_alloc_contig(kmem_arena, /kmem_alloc_contig(/' \ -e 's/kmem_free(kmem_arena, /kmem_free(/' \ ${WRKSRC}/src/${NVSRC}/nvidia_subr.c -.endif # Pull the right header after FreeBSD src r347984 .if ${OSVERSION} >= 1300029 && ${NVVERSION} >= 358.009 ${REINPLACE_CMD} -e '/^#include/s:lock\.h:mutex.h:' \ Index: x11/squeekboard/Makefile =================================================================== --- x11/squeekboard/Makefile +++ x11/squeekboard/Makefile @@ -10,7 +10,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_11= requires getrandom() BROKEN_FreeBSD_12_powerpc64= fails to compile: rs.e2mg9us3-cgu.14:(.text.imservice_handle_commit_state+0x228): undefined reference to 'eekboard_context_service_show_keyboard' BROKEN_FreeBSD_13_powerpc64= fails to link: ld: error: undefined symbol: eekboard_context_service_get_overlay Index: x11/taiga/Makefile =================================================================== --- x11/taiga/Makefile +++ x11/taiga/Makefile @@ -15,7 +15,6 @@ libavcodec.so:multimedia/ffmpeg USES= compiler:c11 meson pkgconfig -CPPFLAGS+= -D_WITH_GETLINE # XXX Remove after FreeBSD 11 EOL PLIST_FILES= bin/${PORTNAME} .include Index: x11/waybar/Makefile =================================================================== --- x11/waybar/Makefile +++ x11/waybar/Makefile @@ -21,7 +21,6 @@ USE_GNOME= gtkmm30 GH_ACCOUNT= Alexays GH_PROJECT= Waybar -CPPFLAGS+= -D_WITH_GETLINE # XXX Remove after FreeBSD 11 EOL PLIST_FILES= bin/${PORTNAME} \ etc/xdg/${PORTNAME}/config \ etc/xdg/${PORTNAME}/style.css Index: x11/wayland-logout/Makefile =================================================================== --- x11/wayland-logout/Makefile +++ x11/wayland-logout/Makefile @@ -20,7 +20,7 @@ # Cannot use C implementation without cr_pid .if make(makesum) DISTFILES= ${DISTNAME:S/${DISTVERSION}/1.3/}${EXTRACT_SUFX} -.elif ${OPSYS} != FreeBSD || ${OSVERSION} < 1202506 +.elif ${OPSYS} != FreeBSD DISTVERSION= 1.3 NO_ARCH= yes MESON_ARGS+= -Dimplementation=shell Index: x11/xlockmore/Makefile =================================================================== --- x11/xlockmore/Makefile +++ x11/xlockmore/Makefile @@ -92,10 +92,6 @@ .include -.if ${PORT_OPTIONS:MFREETYPE} -IGNORE_FreeBSD_11= FREETYPE support requires FreeBSD version 12+ -.endif - .if defined(XLOCKMORE_LANG) CONFIGURE_ARGS+= --with-lang=${XLOCKMORE_LANG} .endif Index: x11/xorg-minimal/Makefile =================================================================== --- x11/xorg-minimal/Makefile +++ x11/xorg-minimal/Makefile @@ -14,14 +14,8 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/Xorg:x11-servers/xorg-server \ ${LOCALBASE}/bin/xinit:x11/xinit \ - ${LOCALBASE}/bin/xauth:x11/xauth - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 -RUN_DEPENDS+= ${LOCALBASE}/lib/xorg/modules/input/mouse_drv.so:x11-drivers/xf86-input-mouse -RUN_DEPENDS+= ${LOCALBASE}/lib/xorg/modules/input/kbd_drv.so:x11-drivers/xf86-input-keyboard -.else -RUN_DEPENDS+= ${LOCALBASE}/lib/xorg/modules/input/libinput_drv.so:x11-drivers/xf86-input-libinput -.endif + ${LOCALBASE}/bin/xauth:x11/xauth \ + ${LOCALBASE}/lib/xorg/modules/input/libinput_drv.so:x11-drivers/xf86-input-libinput .if ${VIDEO_DRIVER} == "nvidia" RUN_DEPENDS+= ${LOCALBASE}/lib/xorg/modules/drivers/nvidia_drv.so:x11/nvidia-driver