diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk --- a/Mk/Uses/cabal.mk +++ b/Mk/Uses/cabal.mk @@ -81,12 +81,6 @@ BROKEN= ${USE_CABAL:Mbasement-0.0.1[4-5]} package doesn't compile on i386 . endif -. if ${OSVERSION} < 1302000 && defined(USE_CABAL) && ${USE_CABAL:Mtext-2.*} -# Band-aids for a Clang bug that is shipped with FreeBSD < 13.2 -BUILD_DEPENDS+= clang15:devel/llvm15 -BUILD_ARGS+= --ghc-options='-pgmc clang++15' -. endif - PKGNAMEPREFIX?= hs- CABAL_EXECUTABLES?= ${PORTNAME} diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk --- a/Mk/Uses/qt-dist.mk +++ b/Mk/Uses/qt-dist.mk @@ -261,7 +261,7 @@ ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_qt__module.prf \ ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_common_bsd_bsd.conf \ ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_freebsd-clang_qmake.conf -. if ${ARCH:Mmips*} || (${ARCH:Mpowerpc*} && !exists(/usr/bin/clang)) || ${ARCH} == sparc64 +. if ${ARCH:Mmips*} || (${ARCH:Mpowerpc*} && !exists(/usr/bin/clang)) _EXTRA_PATCHES_QT5+= ${PORTSDIR}/devel/${_QT_RELNAME}/files/extra-patch-mkspecs_common_g++-base.conf \ ${PORTSDIR}/devel/${_QT_RELNAME}/files/extra-patch-mkspecs_common_gcc-base.conf \ ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_freebsd-g++_qmake.conf @@ -548,4 +548,3 @@ ${_KDE_${_QT_DIST}_BRANCH} .endif # defined(_QT_DIST_MK_INCLUDED) - diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1184,7 +1184,7 @@ . endif _EXPORTED_VARS+= OSVERSION -. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1204000 || (${OSVERSION} >= 1300000 && ${OSVERSION} < 1302000)) +. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1302000 ) _UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your ${OPSYS} version has ended, and no ports\ are guaranteed to build on this system. Please upgrade to a supported release. . if defined(ALLOW_UNSUPPORTED_SYSTEM) diff --git a/archivers/innoextract/Makefile b/archivers/innoextract/Makefile --- a/archivers/innoextract/Makefile +++ b/archivers/innoextract/Makefile @@ -11,8 +11,6 @@ LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_sparc64= does not build: undefined reference to std::ctype::_M_widen_init() - BUILD_DEPENDS= boost-libs>0:devel/boost-libs USES= cmake compiler:c++11-lang iconv diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile --- a/archivers/libarchive/Makefile +++ b/archivers/libarchive/Makefile @@ -63,12 +63,4 @@ ac_cv_lib_charset_locale_charset=no .endif -# Prior to 1301508 we didn't ship openssl.pc which libarchive now expects -# so we need to use the old approach on older versions of FreeBSD -# which is not to define Requires.private in libarchive.pc - -.if ${PORT_OPTIONS:MOPENSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} < 1301508 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-pkgconfig-compat -.endif - .include diff --git a/archivers/libarchive/files/extra-patch-pkgconfig-compat b/archivers/libarchive/files/extra-patch-pkgconfig-compat deleted file mode 100644 --- a/archivers/libarchive/files/extra-patch-pkgconfig-compat +++ /dev/null @@ -1,7 +0,0 @@ ---- build/pkgconfig/libarchive.pc.in.orig 2022-12-09 13:38:31 UTC -+++ build/pkgconfig/libarchive.pc.in -@@ -10,4 +10,3 @@ Cflags: -I${includedir} - Cflags.private: -DLIBARCHIVE_STATIC - Libs: -L${libdir} -larchive - Libs.private: @LIBS@ --Requires.private: @LIBSREQUIRED@ diff --git a/archivers/py-zstandard/Makefile b/archivers/py-zstandard/Makefile --- a/archivers/py-zstandard/Makefile +++ b/archivers/py-zstandard/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD2CLAUSE -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} #LIB_DEPENDS= libzstd.so:archivers/zstd TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} diff --git a/astro/libgal/Makefile b/astro/libgal/Makefile --- a/astro/libgal/Makefile +++ b/astro/libgal/Makefile @@ -14,6 +14,4 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX} --enable-shared=yes USE_LDCONFIG= yes -BROKEN_sparc64= Does not compile on sparc64: gcc coredump - .include diff --git a/astro/oskar/Makefile b/astro/oskar/Makefile --- a/astro/oskar/Makefile +++ b/astro/oskar/Makefile @@ -12,7 +12,6 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= gccfeatures.h:54:4: This code has only been tested on x86 and powerpc platforms -BROKEN_FreeBSD_12_powerpc64= fails to compile: oskar_convert_cirs_relative_directions_to_enu_directions.c:67:29: 'csinl' undeclared (first use in this function) LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ libhdf5.so:science/hdf5 \ diff --git a/audio/cheesecutter/Makefile b/audio/cheesecutter/Makefile --- a/audio/cheesecutter/Makefile +++ b/audio/cheesecutter/Makefile @@ -22,6 +22,7 @@ GH_PROJECT= CheeseCutter MAKEFILE= Makefile.ldc +MAKE_ARGS= DLDFLAGS=-L=-Wl,-z,nostart-stop-gc MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR} OPTIONS_DEFINE= EXAMPLES @@ -35,10 +36,4 @@ ${INSTALL_MAN} ${WRKSRC}/doc/${f}.fr.1 ${STAGEDIR}${MANPREFIX}/share/man/fr/man1 .endfor -.include - -.if (${OSVERSION} >= 1301000) -MAKE_ARGS= DLDFLAGS=-L=-Wl,-z,nostart-stop-gc -.endif - -.include +.include diff --git a/audio/fdk-aac/Makefile b/audio/fdk-aac/Makefile --- a/audio/fdk-aac/Makefile +++ b/audio/fdk-aac/Makefile @@ -12,9 +12,6 @@ LICENSE_FILE= ${WRKSRC}/NOTICE LICENSE_PERMS= dist-mirror pkg-mirror auto-accept -NOT_FOR_ARCHS= sparc64 -NOT_FOR_ARCHS_REASON= not yet ported to this architecture - USES= cmake USE_LDCONFIG= yes diff --git a/audio/mhwaveedit/Makefile b/audio/mhwaveedit/Makefile --- a/audio/mhwaveedit/Makefile +++ b/audio/mhwaveedit/Makefile @@ -24,7 +24,6 @@ --with-build-time="-" BROKEN_powerpc64= fails to compile on powerpc64: convert_inc.c: conflicting types for 'C_FLOAT_PCM32SBEPM' -BROKEN_sparc64= fails to compile on sparc64 OPTIONS_DEFINE= DOUBLE_SAMPLES JACK LADSPA OSS PORTAUDIO \ PULSEAUDIO SAMPLERATE SDL SNDFILE NLS diff --git a/audio/mixertui/Makefile b/audio/mixertui/Makefile --- a/audio/mixertui/Makefile +++ b/audio/mixertui/Makefile @@ -12,6 +12,7 @@ LIB_DEPENDS= libsysctlmibinfo2.so:devel/libsysctlmibinfo2 +USES= ncurses USE_GITLAB= yes GL_ACCOUNT= alfix @@ -24,12 +25,4 @@ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/share/man/man8 -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses -.else -USES+= ncurses:port -.endif - .include diff --git a/audio/nas/Makefile b/audio/nas/Makefile --- a/audio/nas/Makefile +++ b/audio/nas/Makefile @@ -18,7 +18,7 @@ MAKE_ENV+= COMPRESS_CMD="${COMPRESS_CMD:S/c//}" MAKE_JOBS_UNSAFE= yes -.include +FPIC= -fpic post-configure: # Work around shortcomings of the Imake.rules et. al: @@ -27,13 +27,7 @@ -e 's,\(\$$(AR) \$$@ \$$\)(OBJS),\1(OBJS:S|^|unshared/|),' \ ${WRKSRC}/lib/audio/Makefile -.if ${ARCH} == "sparc64" -FPIC= -fPIC -.else -FPIC= -fpic -.endif - post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaudio.so.2 -.include +.include diff --git a/audio/ncpamixer/Makefile b/audio/ncpamixer/Makefile --- a/audio/ncpamixer/Makefile +++ b/audio/ncpamixer/Makefile @@ -12,7 +12,7 @@ LIB_DEPENDS= libpulse.so:audio/pulseaudio -USES= cmake compiler:c++17-lang +USES= cmake compiler:c++17-lang ncurses USE_GITHUB= yes GH_ACCOUNT= fulhax @@ -21,13 +21,4 @@ PLIST_FILES= bin/${PORTNAME} -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses -.else -USES+= ncurses:port -CFLAGS+= -I${LOCALBASE}/include/ncurses -.endif - .include diff --git a/audio/opus/Makefile b/audio/opus/Makefile --- a/audio/opus/Makefile +++ b/audio/opus/Makefile @@ -21,11 +21,4 @@ INSTALL_TARGET= install-strip TEST_TARGET= check -.include - -# drop after FreeBSD 12 EOL -.if ${ARCH} == "arm" -CONFIGURE_ARGS+=--enable-fixed-point -.endif - .include diff --git a/audio/rhvoice/Makefile b/audio/rhvoice/Makefile --- a/audio/rhvoice/Makefile +++ b/audio/rhvoice/Makefile @@ -12,8 +12,6 @@ LICENSE_FILE_LGPL21+ = ${WRKSRC}/licenses/lgpl-2.1.txt LICENSE_FILE_GPLv3+ = ${WRKSRC}/licenses/gpl-3.0.txt -BROKEN_FreeBSD_12_powerpc64= fails to configure: The C++ compiler is not working - USES= compiler:c++0x pkgconfig scons USE_LDCONFIG= yes diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile --- a/audio/sfizz/Makefile +++ b/audio/sfizz/Makefile @@ -69,10 +69,6 @@ .include -.if (${OSVERSION} < 1301505) # 20d21e43514502c0a346f3c2cdb1d8cd8c7cc6b0 commit in 13 fixed booleans in stdatomic.h that were causing breakage -BROKEN= fails to compile: unknown type name '_Bool' -.endif - post-install-LV2-on: @${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/lib/lv2/sfizz.lv2/Contents/Binary/sfizz.so \ diff --git a/benchmarks/sipp/Makefile b/benchmarks/sipp/Makefile --- a/benchmarks/sipp/Makefile +++ b/benchmarks/sipp/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 -BROKEN_FreeBSD_12_powerpc64= fails to compile: /usr/local/lib/gcc9/include/c++/cstddef:52:8: expected unqualified-id before string constant - BUILD_DEPENDS= help2man:misc/help2man USES= autoreconf compiler:c++11-lang gmake ncurses pkgconfig diff --git a/biology/avida/Makefile b/biology/avida/Makefile --- a/biology/avida/Makefile +++ b/biology/avida/Makefile @@ -16,7 +16,6 @@ BROKEN_mips= invokes x86 assembler BROKEN_mips64= invokes x86 assembler BROKEN_riscv64= invokes x86 assembler -BROKEN_sparc64= missing atomics implementation USES= compiler:c11 cmake ncurses USE_CXXSTD= gnu++98 diff --git a/biology/gatk/Makefile b/biology/gatk/Makefile --- a/biology/gatk/Makefile +++ b/biology/gatk/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.TXT -BROKEN_FreeBSD_12_powerpc64= fails to build: String index out of range: -1 - BUILD_DEPENDS= gradle:devel/gradle USES= gettext-runtime diff --git a/biology/mafft/Makefile b/biology/mafft/Makefile --- a/biology/mafft/Makefile +++ b/biology/mafft/Makefile @@ -28,14 +28,6 @@ MKDIR="${MKDIR}" \ LN="${LN}" -.include - -post-patch: -.if ${ARCH} == sparc64 - @${REINPLACE_CMD} -e 's|ENABLE_MULTITHREAD = -Denablemultithread||' \ - ${BUILD_WRKSRC}/Makefile -.endif - post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/biology/plink/Makefile b/biology/plink/Makefile --- a/biology/plink/Makefile +++ b/biology/plink/Makefile @@ -11,7 +11,7 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= aarch64 mips64 powerpc64 powerpc64le sparc64 +NOT_FOR_ARCHS= aarch64 mips64 powerpc64 powerpc64le NOT_FOR_ARCHS_REASON= 64bit code requires SSE2 instructions USES= gmake fortran diff --git a/cad/astk-serveur/Makefile b/cad/astk-serveur/Makefile --- a/cad/astk-serveur/Makefile +++ b/cad/astk-serveur/Makefile @@ -60,11 +60,6 @@ .include -.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 - WRKCONF= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/configuration .if !defined(CLIENT_SEUL) WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_SERV diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile --- a/cad/brlcad/Makefile +++ b/cad/brlcad/Makefile @@ -10,8 +10,6 @@ LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= does not compile: invokes i386 assembler - BUILD_DEPENDS= xsltproc:textproc/libxslt LIB_DEPENDS= liblz4.so:archivers/liblz4 \ libdrm.so:graphics/libdrm \ diff --git a/cad/calculix-ccx/Makefile b/cad/calculix-ccx/Makefile --- a/cad/calculix-ccx/Makefile +++ b/cad/calculix-ccx/Makefile @@ -32,6 +32,9 @@ OPTIONS_DEFINE= DOCS EXAMPLES +CFLAGS+= -fpic +FFLAGS+= -fpic + .include .if ${PORT_OPTIONS:MDOCS} @@ -44,14 +47,6 @@ EXTRACT_ONLY+= ${DIST_EXAMPLES} .endif -.if ${ARCH} == "sparc64" -CFLAGS+= -fPIC -FFLAGS+= -fPIC -.else -CFLAGS+= -fpic -FFLAGS+= -fpic -.endif - .if ${GCC_DEFAULT} >= 10 # workaround for Missing actual argument for argument '_formal_15' at (1) FFLAGS+= -fallow-argument-mismatch diff --git a/cad/calculix/Makefile b/cad/calculix/Makefile --- a/cad/calculix/Makefile +++ b/cad/calculix/Makefile @@ -45,20 +45,15 @@ USES+= llvm:max=15 .endif +CFLAGS+= -fpic +FFLAGS+= -fpic + .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) CPPFLAGS+= -Wno-error=int-conversion .endif -.if ${ARCH} == "sparc64" -CFLAGS+= -fPIC -FFLAGS+= -fPIC -.else -CFLAGS+= -fpic -FFLAGS+= -fpic -.endif - pre-build: @${REINPLACE_CMD} -e 's!c++!${CXX}!g;' \ ${WRKSRC}/libSNL/src/makefile diff --git a/cad/klayout/Makefile b/cad/klayout/Makefile --- a/cad/klayout/Makefile +++ b/cad/klayout/Makefile @@ -11,7 +11,6 @@ BROKEN_i386= type 'hash' does not provide a call operator BROKEN_powerpc= type 'hash' does not provide a call operator -BROKEN_sparc64= does not compile on sparc64: gcc bug USES= compiler:c++0x gmake gl python ruby qt:5 USE_GITHUB= yes diff --git a/cad/libredwg/Makefile b/cad/libredwg/Makefile --- a/cad/libredwg/Makefile +++ b/cad/libredwg/Makefile @@ -42,7 +42,7 @@ PYTHON_VARS= SHEBANG_FILES+=examples/load_dwg.py post-patch: -# XXX: switch the order of #include's to unbreak on powerpc/sparc64 +# XXX: switch the order of #include's to unbreak on powerpc # which are still based on gcc-4.2.1 (should be no-op elsewhere) @${REINPLACE_CMD} -e '/#include "com/ { x; s/^/#include /; \ G; }; 24d' ${WRKSRC}/src/common.c diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile --- a/cad/nvc/Makefile +++ b/cad/nvc/Makefile @@ -21,9 +21,6 @@ RUN_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION} \ bash:shells/bash TEST_DEPENDS= check>0:devel/check -.if !exists(/usr/include/unwind.h) -LIB_DEPENDS+= libunwind.so:devel/libunwind -.endif USES= autoreconf compiler:c++14-lang localbase pkgconfig shebangfix diff --git a/cad/stepcode/Makefile b/cad/stepcode/Makefile --- a/cad/stepcode/Makefile +++ b/cad/stepcode/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -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 USE_GITHUB= yes USE_LDCONFIG= yes diff --git a/cad/z88/Makefile b/cad/z88/Makefile --- a/cad/z88/Makefile +++ b/cad/z88/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12_powerpc64= fails to link: /usr/bin/ld: : No such file: No such file or directory - LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 diff --git a/chinese/kcfonts/Makefile b/chinese/kcfonts/Makefile --- a/chinese/kcfonts/Makefile +++ b/chinese/kcfonts/Makefile @@ -12,7 +12,6 @@ MAKE_ARGS= CFONTDIR=${FONTSDIR} EFONTDIR=${FONTSDIR} MAKE_JOBS_UNSAFE=yes -BROKEN_sparc64= Does not build on sparc64 NO_WRKSUBDIR= yes diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile --- a/comms/aprsd/Makefile +++ b/comms/aprsd/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2 -BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)' - USE_CXXSTD= c++14 USE_RC_SUBR= aprsd diff --git a/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp b/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp deleted file mode 100644 --- a/comms/ebusd/files/patch-src_lib_ebus_datatype.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- src/lib/ebus/datatype.cpp.orig 2023-07-08 13:54:20 UTC -+++ src/lib/ebus/datatype.cpp -@@ -22,6 +22,7 @@ - - #include "lib/ebus/datatype.h" - #include -+#include # for FreeBSD 12.4 - #include - #include - #include diff --git a/comms/fldigi/Makefile b/comms/fldigi/Makefile --- a/comms/fldigi/Makefile +++ b/comms/fldigi/Makefile @@ -8,8 +8,6 @@ COMMENT= Digital decoder for psk, cw, psk31, olivia WWW= http://www.w1hkj.com -BROKEN_FreeBSD_12= no hid support - LICENSE= GPLv3 BUILD_DEPENDS= asciidoc:textproc/asciidoc \ diff --git a/comms/flrig/Makefile b/comms/flrig/Makefile --- a/comms/flrig/Makefile +++ b/comms/flrig/Makefile @@ -9,8 +9,6 @@ COMMENT= Ham Radio rig control program, cooperates with fldigi WWW= http://www.w1hkj.com/flrig-help/index.html -IGNORE_FreeBSD_12= no hid support - LICENSE= GPLv2 LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \ diff --git a/comms/linrad/Makefile b/comms/linrad/Makefile --- a/comms/linrad/Makefile +++ b/comms/linrad/Makefile @@ -19,7 +19,6 @@ BROKEN_powerpc64= fails to compile: implicit declaration of function outb BROKEN_powerpc64le= fails to compile: implicit declaration of function outb BROKEN_riscv64= fails to build: gmake: No rule to make target 'Makefile' -BROKEN_sparc64= fails to compile: implicit declaration of function outb LIB_DEPENDS= librtlsdr.so:comms/rtl-sdr \ libportaudio.so:audio/portaudio \ diff --git a/comms/obexapp/Makefile b/comms/obexapp/Makefile --- a/comms/obexapp/Makefile +++ b/comms/obexapp/Makefile @@ -15,15 +15,9 @@ USES= iconv readline uidfix PLIST_FILES= bin/obexapp man/man1/obexapp.1.gz -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134 -MAKE_ENV+= NO_WERROR=yes -.else MAKE_ENV+= MK_WERROR=no -.endif post-patch: @${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/Makefile -.include +.include diff --git a/comms/uartlirc/Makefile b/comms/uartlirc/Makefile --- a/comms/uartlirc/Makefile +++ b/comms/uartlirc/Makefile @@ -18,7 +18,6 @@ BROKEN_powerpc64= fails to compile: uart.h: No such file or directory BROKEN_powerpc64le= fails to compile: uart.h: No such file or directory BROKEN_riscv64= fails to compile: uartlirc_core.c:273:19: expected expression -BROKEN_sparc64= fails to build BROKEN_FreeBSD_13= fails to compile: uartlirc_bus_scc.c:101:7: use of undeclared identifier 'SCC_CLASS_SAB82532' BROKEN_FreeBSD_14= fails to compile: uartlirc_bus_scc.c:101:7: use of undeclared identifier 'SCC_CLASS_SAB82532' diff --git a/comms/uhd/Makefile b/comms/uhd/Makefile --- a/comms/uhd/Makefile +++ b/comms/uhd/Makefile @@ -32,9 +32,6 @@ CONFLICTS= usrp -BROKEN_FreeBSD_12_aarch64= fails to configure: Could not find standard set_new_handler function -BROKEN_FreeBSD_12_armv6= fails to configure: Could not find standard set_new_handler function -BROKEN_FreeBSD_12_armv7= fails to configure: Could not find standard set_new_handler function BROKEN_FreeBSD_13_aarch64= fails to configure: Could not find standard set_new_handler function BROKEN_FreeBSD_13_armv6= fails to configure: Could not find standard set_new_handler function BROKEN_FreeBSD_13_armv7= fails to configure: Could not find standard set_new_handler function diff --git a/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h b/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h deleted file mode 100644 --- a/converters/wkhtmltopdf/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h +++ /dev/null @@ -1,26 +0,0 @@ ---- src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h.orig 2018-05-29 06:56:52 UTC -+++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h -@@ -227,7 +227,11 @@ namespace JSC { - u.asBits.tag = CellTag; - else - u.asBits.tag = EmptyValueTag; -+#if defined(__sparc64__) -+ u.asBits.payload = reinterpret_cast(ptr); -+#else - u.asBits.payload = reinterpret_cast(ptr); -+#endif - #if ENABLE(JSC_ZOMBIES) - ASSERT(!isZombie()); - #endif -@@ -239,7 +243,11 @@ namespace JSC { - u.asBits.tag = CellTag; - else - u.asBits.tag = EmptyValueTag; -+#if defined(__sparc64__) -+ u.asBits.payload = reinterpret_cast(const_cast(ptr)); -+#else - u.asBits.payload = reinterpret_cast(const_cast(ptr)); -+#endif - #if ENABLE(JSC_ZOMBIES) - ASSERT(!isZombie()); - #endif diff --git a/databases/firebird30-server/Makefile b/databases/firebird30-server/Makefile --- a/databases/firebird30-server/Makefile +++ b/databases/firebird30-server/Makefile @@ -64,8 +64,6 @@ STRIP= ONLY_FOR_ARCHS= i386 amd64 -# sparc64 fails due to lack of valid AtomicCounter implementation in -# src/common/classes/fb_atomic.h; presumably other tier-2s would as well INSTALL_FB= ${INSTALL} ${COPY} diff --git a/databases/firebird40-server/Makefile b/databases/firebird40-server/Makefile --- a/databases/firebird40-server/Makefile +++ b/databases/firebird40-server/Makefile @@ -65,8 +65,6 @@ STRIP= ONLY_FOR_ARCHS= i386 amd64 powerpc64le -# sparc64 fails due to lack of valid AtomicCounter implementation in -# src/common/classes/fb_atomic.h; presumably other tier-2s would as well INSTALL_FB= ${INSTALL} ${COPY} diff --git a/databases/gnats4/Makefile b/databases/gnats4/Makefile --- a/databases/gnats4/Makefile +++ b/databases/gnats4/Makefile @@ -14,7 +14,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_12_powerpc64= fails to build on powerpc64 elfv1: conflicting types for yy_scan_string USES= cpe gettext-runtime gmake CPE_VENDOR= gnu diff --git a/databases/grass7/Makefile b/databases/grass7/Makefile --- a/databases/grass7/Makefile +++ b/databases/grass7/Makefile @@ -23,8 +23,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/GPL.TXT -BROKEN_sparc64= Does not configure on sparc64 - BUILD_DEPENDS= ${PY_NUMPY} \ ${PYTHON_SITELIBDIR}/six.py:devel/py-six@${PY_FLAVOR} LIB_DEPENDS= libgdal.so:graphics/gdal \ diff --git a/databases/leofs/Makefile b/databases/leofs/Makefile --- a/databases/leofs/Makefile +++ b/databases/leofs/Makefile @@ -10,7 +10,7 @@ LICENSE= APACHE20 -NOT_FOR_ARCHS= riscv64 sparc64 +NOT_FOR_ARCHS= riscv64 NOT_FOR_ARCHS_REASON= does not build: error Please implement AtomicPointer for this platform BUILD_DEPENDS= ${LOCALBASE}/lib/erlang21/bin/erlc:lang/erlang-runtime21 \ diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile --- a/databases/libmemcached/Makefile +++ b/databases/libmemcached/Makefile @@ -45,11 +45,4 @@ SASL_CMAKE_BOOL= ENABLE_SASL SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 -.include - -# Skip libcrypto.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file -.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/libcrypto.pc) -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl -.endif - -.include +.include diff --git a/databases/libmemcached/files/extra-patch-openssl b/databases/libmemcached/files/extra-patch-openssl deleted file mode 100644 --- a/databases/libmemcached/files/extra-patch-openssl +++ /dev/null @@ -1,11 +0,0 @@ ---- src/libhashkit/CMakeLists.txt.orig 2023-03-06 08:47:30 UTC -+++ src/libhashkit/CMakeLists.txt -@@ -45,7 +45,7 @@ if(ENABLE_OPENSSL_CRYPTO) - if(OPENSSL_CRYPTO_LIBRARY) - target_compile_definitions(libhashkit PRIVATE HAVE_OPENSSL_CRYPTO) - target_link_libraries(libhashkit PUBLIC OpenSSL::Crypto) -- pkgconfig_export(REQUIRES_PRIVATE libcrypto) -+ pkgconfig_export(REQUIRES_PRIVATE "") - else() - message(WARNING "Could not find OpenSSL::Crypto") - endif() diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile --- a/databases/memcached/Makefile +++ b/databases/memcached/Makefile @@ -37,8 +37,6 @@ OPTIONS_DEFAULT_amd64= DTRACE OPTIONS_DEFAULT_powerpc64= DTRACE OPTIONS_DEFAULT_powerpc64le= DTRACE -OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_12= DTRACE DTRACE_DESC= Enable dtrace probes SASL_DESC= Enable SASL Authentication diff --git a/databases/mysql80-server/Makefile b/databases/mysql80-server/Makefile --- a/databases/mysql80-server/Makefile +++ b/databases/mysql80-server/Makefile @@ -198,11 +198,6 @@ post-extract: @${RM} -rv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h -# This can be removed after FreeBSD 12.4 and 13.1 EoL -.if defined(CLIENT_ONLY) && !exists(${OPENSSLBASE}/libdata/pkgconfig/openssl.pc) -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-scripts_CMakeLists.txt -.endif - # XXX MBi alignment issue .if ${ARCH} == i386 EXTRA_PATCHES+= files/extra-patch-boost-boost_1_77_0-boost-move-detail-type_traits.hpp diff --git a/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt b/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt deleted file mode 100644 --- a/databases/mysql80-server/files/extra-patch-scripts_CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- scripts/CMakeLists.txt.orig 2022-12-16 15:34:44 UTC -+++ scripts/CMakeLists.txt -@@ -362,7 +362,6 @@ IF (WITH_SSL STREQUAL "system") - # We have implemented "system" for other platforms as well, but those - # are non-native packages. - IF(LINUX OR SOLARIS OR FREEBSD) -- SET(CONFIG_REQUIRES_PRIVATE "openssl") - STRING(REPLACE "-lssl" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}") - STRING(REPLACE "-lcrypto" "" CONFIG_LIBS_PRIVATE "${CONFIG_LIBS_PRIVATE}") - STRING(REGEX REPLACE "[ ]+" " " CONFIG_LIBS_PRIVATE diff --git a/databases/mysqlwsrep57-server/Makefile b/databases/mysqlwsrep57-server/Makefile --- a/databases/mysqlwsrep57-server/Makefile +++ b/databases/mysqlwsrep57-server/Makefile @@ -181,7 +181,7 @@ # Plugin innodb_memcached requires -fcommon to avoid duplicate symbol linker # error with llmv11. -.if (${OPSYS} == FreeBSD && ${OSVERSION} >= 1300109) || ${CHOSEN_COMPILER_TYPE} == gcc +.if ${CHOSEN_COMPILER_TYPE} == gcc CFLAGS+= -fcommon .endif diff --git a/databases/p5-Tie-LevelDB/Makefile b/databases/p5-Tie-LevelDB/Makefile --- a/databases/p5-Tie-LevelDB/Makefile +++ b/databases/p5-Tie-LevelDB/Makefile @@ -14,7 +14,6 @@ NOT_FOR_ARCHS= aarch64 riscv64 NOT_FOR_ARCHS_REASON= does not build: Please implement AtomicPointer for this platform -BROKEN_sparc64= does not build: unrecognized command line options LIB_DEPENDS= libleveldb.so:databases/leveldb diff --git a/databases/postgresql16-server/Makefile b/databases/postgresql16-server/Makefile --- a/databases/postgresql16-server/Makefile +++ b/databases/postgresql16-server/Makefile @@ -108,8 +108,6 @@ OPTIONS_DEFINE+= LLVM OPTIONS_DEFAULT+= LLVM LLVM_DESC= Build with support for JIT-compiling expressions -OPTIONS_EXCLUDE+= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_12= LLVM LLVM_CONFIGURE_WITH= llvm LLVM_CONFIGURE_ENV= LLVM_CONFIG=${LLVM_CONFIG} \ CLANG=${LOCALBASE}/bin/clang${LLVM_VERSION} diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile --- a/databases/rocksdb/Makefile +++ b/databases/rocksdb/Makefile @@ -17,7 +17,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_12_powerpc64= does not build: util/crc32c.cc:435:22: 'arch_ppc_probe' was not declared in this scope BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libgflags.so:devel/gflags \ diff --git a/databases/soci/Makefile b/databases/soci/Makefile --- a/databases/soci/Makefile +++ b/databases/soci/Makefile @@ -35,7 +35,6 @@ OPTIONS_EXCLUDE_powerpc64= FIREBIRD OPTIONS_EXCLUDE_powerpc64le= FIREBIRD OPTIONS_EXCLUDE_riscv64= FIREBIRD -OPTIONS_EXCLUDE_sparc64= FIREBIRD OPTIONS_SUB= yes diff --git a/databases/tarantool/Makefile b/databases/tarantool/Makefile --- a/databases/tarantool/Makefile +++ b/databases/tarantool/Makefile @@ -12,7 +12,7 @@ BROKEN_aarch64= fails to compile: mmintrin.h:50:12: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different siz BROKEN_riscv64= fails to compile: mmintrin.h:50:12: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different siz -NOT_FOR_ARCHS= armv6 i386 powerpc64 sparc64 +NOT_FOR_ARCHS= armv6 i386 powerpc64 NOT_FOR_ARCHS_REASON= fails to build: Unsupported architecture BUILD_DEPENDS= gsed:textproc/gsed \ diff --git a/deskutils/easystroke/Makefile b/deskutils/easystroke/Makefile --- a/deskutils/easystroke/Makefile +++ b/deskutils/easystroke/Makefile @@ -11,8 +11,6 @@ LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -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 \ ${LOCALBASE}/include/xorg/xserver-properties.h:x11-servers/xorg-server LIB_DEPENDS= libdbus-1.so:devel/dbus \ diff --git a/deskutils/xdg-desktop-portal/Makefile b/deskutils/xdg-desktop-portal/Makefile --- a/deskutils/xdg-desktop-portal/Makefile +++ b/deskutils/xdg-desktop-portal/Makefile @@ -25,14 +25,7 @@ -Dflatpak-interfaces=disabled -Dsandboxed-image-validation=false \ -Dsystemd=disabled -.include - -.if (${OSVERSION} >= 1400000 && ${OSVERSION} < 1400008) \ - || ${OSVERSION} < 1300000 -IGNORE= requires O_PATH support in open(2) -.endif - post-install: @${RM} -r ${STAGEDIR}${PREFIX}/lib/systemd -.include +.include diff --git a/devel/9base/Makefile b/devel/9base/Makefile --- a/devel/9base/Makefile +++ b/devel/9base/Makefile @@ -11,7 +11,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= has low-level code unavailable for ${ARCH} USES= cpe shebangfix diff --git a/devel/abi-compliance-checker/Makefile b/devel/abi-compliance-checker/Makefile --- a/devel/abi-compliance-checker/Makefile +++ b/devel/abi-compliance-checker/Makefile @@ -31,6 +31,8 @@ CTAGS?= exctags +PICFLAG?= -fpic + .include .if ${PORT_OPTIONS:MPORTS_BINUTILS} @@ -42,12 +44,6 @@ CPPFILT?= /usr/bin/c++filt .endif -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - # Only vtable-dumper is a C program; the rest is all perl script do-build: cd ${WRKSRC}/vdumper && \ diff --git a/devel/adacurses/Makefile b/devel/adacurses/Makefile --- a/devel/adacurses/Makefile +++ b/devel/adacurses/Makefile @@ -15,7 +15,7 @@ #BUILD_DEPENDS= gsed:textproc/gsed #BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed -USES= ada autoreconf gmake pkgconfig tar:tgz +USES= ada autoreconf gmake ncurses pkgconfig tar:tgz GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \ @@ -50,12 +50,4 @@ (cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \ ${MAKE_CMD} ${MAKE_ARGS} THIS=${PORTNAME} install.html) -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses -.else -USES+= ncurses:port -.endif - .include diff --git a/devel/android-tools/files/patch-vendor_adb_compression__utils.h b/devel/android-tools/files/patch-vendor_adb_compression__utils.h deleted file mode 100644 --- a/devel/android-tools/files/patch-vendor_adb_compression__utils.h +++ /dev/null @@ -1,28 +0,0 @@ ---- vendor/adb/compression_utils.h.orig 2022-06-09 20:52:06 UTC -+++ vendor/adb/compression_utils.h -@@ -95,7 +95,12 @@ struct NullDecoder final : public Decoder { - void* p = output_buffer_.data(); - while (available_out > 0 && !input_buffer_.empty()) { - size_t len = std::min(available_out, input_buffer_.front_size()); -+#ifdef __FreeBSD__ -+ // TODO: Delete when FreeBSD 12.x goes EOL -+ p = (char *)memcpy(p, input_buffer_.front_data(), len) + len; -+#else - p = mempcpy(p, input_buffer_.front_data(), len); -+#endif - available_out -= len; - input_buffer_.drop_front(len); - } -@@ -119,7 +124,12 @@ struct NullEncoder final : public Encoder { - - while (available_out > 0 && !input_buffer_.empty()) { - size_t len = std::min(available_out, input_buffer_.front_size()); -+#ifdef __FreeBSD__ -+ // TODO: Delete when FreeBSD 12.x goes EOL -+ p = (char *)memcpy(p, input_buffer_.front_data(), len) + len; -+#else - p = mempcpy(p, input_buffer_.front_data(), len); -+#endif - available_out -= len; - input_buffer_.drop_front(len); - } diff --git a/devel/api-sanity-autotest/Makefile b/devel/api-sanity-autotest/Makefile --- a/devel/api-sanity-autotest/Makefile +++ b/devel/api-sanity-autotest/Makefile @@ -34,17 +34,13 @@ OPTIONS_DEFINE= DOCS +PICFLAG?= -fpic + .include CPPFILT?= /usr/bin/c++filt READELF?= /usr/bin/readelf -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - post-patch: @${REINPLACE_CMD} -E \ -e 's/gcc([ \])/${CC}\1/' \ diff --git a/devel/arduino/Makefile b/devel/arduino/Makefile --- a/devel/arduino/Makefile +++ b/devel/arduino/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi -# Confirmed for ARCHS below. Arm, PowerPC and Sparc untested. (Feedback welcome) +# Confirmed for ARCHS below. Arm and PowerPC untested. (Feedback welcome) ONLY_FOR_ARCHS= amd64 i386 RUN_DEPENDS= ${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar:comms/rxtx \ diff --git a/devel/atlas-devel/Makefile b/devel/atlas-devel/Makefile --- a/devel/atlas-devel/Makefile +++ b/devel/atlas-devel/Makefile @@ -23,7 +23,6 @@ CXXFLAGS_mips= -Wno-error=deprecated CXXFLAGS_mips64= -Wno-error=deprecated -CXXFLAGS_sparc64= -Wno-error=deprecated OPTIONS_DEFINE= DOCS diff --git a/devel/avce00/Makefile b/devel/avce00/Makefile --- a/devel/avce00/Makefile +++ b/devel/avce00/Makefile @@ -26,7 +26,7 @@ post-extract: ${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/GNUmakefile ${CP} ${WRKSRC}/GNUmakefile ${WRKSRC}/Makefile -.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64" || ${ARCH} == powerpc64 +.if ${ARCH} == "powerpc" || ${ARCH} == powerpc64 @${REINPLACE_CMD} -e 's#LSB#MSB#g' ${WRKSRC}/Makefile .endif diff --git a/devel/avro-c/Makefile b/devel/avro-c/Makefile --- a/devel/avro-c/Makefile +++ b/devel/avro-c/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_sparc64= fails to build - LIB_DEPENDS= libjansson.so:devel/jansson \ libsnappy.so:archivers/snappy diff --git a/devel/bazel029/Makefile b/devel/bazel029/Makefile --- a/devel/bazel029/Makefile +++ b/devel/bazel029/Makefile @@ -15,7 +15,6 @@ 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_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip diff --git a/devel/bazel5/Makefile b/devel/bazel5/Makefile --- a/devel/bazel5/Makefile +++ b/devel/bazel5/Makefile @@ -15,7 +15,6 @@ NOT_FOR_ARCHS= i386 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_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip diff --git a/devel/bbparse/Makefile b/devel/bbparse/Makefile --- a/devel/bbparse/Makefile +++ b/devel/bbparse/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_12=does not build ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le USE_GITHUB= yes diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -22,7 +22,7 @@ FLAVORS= native aarch64 aarch64_none_elf amd64 arm_gnueabi arm_none_eabi \ avr i386 mingw32 mips mips64 powerpc powerpc64 powerpc64le riscv64 \ - riscv64_none_elf s390x sparc64 riscv32_unknown_elf + riscv64_none_elf s390x riscv32_unknown_elf FLAVOR?= native USES= bison:alias compiler:env cpe gmake localbase libtool perl5 pkgconfig tar:lz @@ -131,7 +131,7 @@ .include # Actual earliest version may differ slightly -.if (${ARCH} != sparc64 && ${ARCH} != mips && ${ARCH} != mips64 && ${ARCH} != powerpcspe && ${ARCH} != powerpc && ${ARCH} != powerpc64 && ${ARCH} != riscv64 && !defined(PKGNAMEPREFIX)) || ((${ARCH} == powerpc || ${ARCH} == powerpc64) && ${CHOSEN_COMPILER_TYPE} != gcc && !defined(PKGNAMEPREFIX)) +.if (${ARCH} != mips && ${ARCH} != mips64 && ${ARCH} != powerpcspe && ${ARCH} != powerpc && ${ARCH} != powerpc64 && ${ARCH} != riscv64 && !defined(PKGNAMEPREFIX)) || ((${ARCH} == powerpc || ${ARCH} == powerpc64) && ${CHOSEN_COMPILER_TYPE} != gcc && !defined(PKGNAMEPREFIX)) CONFIGURE_ARGS+= --enable-gold --enable-plugins CXXFLAGS+= -Wno-c++11-narrowing PLIST_SUB+= GOLD="" diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile --- a/devel/boost-libs/Makefile +++ b/devel/boost-libs/Makefile @@ -7,8 +7,6 @@ LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt -BROKEN_sparc64= https://github.com/boostorg/context/commit/f2ef6326b6ed - BUILD_DEPENDS+= bjam:devel/boost-jam OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS diff --git a/devel/concurrencykit/Makefile b/devel/concurrencykit/Makefile --- a/devel/concurrencykit/Makefile +++ b/devel/concurrencykit/Makefile @@ -15,7 +15,7 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le OPTIONS_DEFINE= RTM VMAPACK OPTIONS_DEFAULT= VMAPACK diff --git a/devel/cxxtools/Makefile b/devel/cxxtools/Makefile --- a/devel/cxxtools/Makefile +++ b/devel/cxxtools/Makefile @@ -15,7 +15,6 @@ BROKEN_mips= does not configure: in section .data.rel.ro of csvdeserializer-test.o: defined in discarded section BROKEN_mips64= does not configure: in section .data.rel.ro of csvdeserializer-test.o: defined in discarded section BROKEN_riscv64= does not configure: error: check for atomictype failed -BROKEN_sparc64= does not configure USES= cpe iconv libtool localbase pathfix CPE_VENDOR= tntnet diff --git a/devel/distorm/Makefile b/devel/distorm/Makefile --- a/devel/distorm/Makefile +++ b/devel/distorm/Makefile @@ -23,13 +23,7 @@ lib/libdistorm3.so \ lib/libdistorm3.so.1 -.include - -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else PICFLAG?= -fpic -.endif do-build: @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \ @@ -50,4 +44,4 @@ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/disasm ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include -.include +.include diff --git a/devel/efivar/Makefile b/devel/efivar/Makefile --- a/devel/efivar/Makefile +++ b/devel/efivar/Makefile @@ -9,7 +9,7 @@ LICENSE= LGPL21 -NOT_FOR_ARCHS= powerpc powerpc64 powerpspe sparc64 +NOT_FOR_ARCHS= powerpc powerpc64 powerpspe NOT_FOR_ARCHS_REASON= specification only supports little-endian processors LIB_DEPENDS= libpopt.so:devel/popt diff --git a/devel/electron26/files/patch-third__party_wayland_include_config.h b/devel/electron26/files/patch-third__party_wayland_include_config.h --- a/devel/electron26/files/patch-third__party_wayland_include_config.h +++ b/devel/electron26/files/patch-third__party_wayland_include_config.h @@ -1,21 +1,6 @@ ---- third_party/wayland/include/config.h.orig 2023-04-02 06:41:50 UTC +--- third_party/wayland/include/config.h.orig 2023-10-09 02:57:22 UTC +++ third_party/wayland/include/config.h -@@ -9,7 +9,14 @@ - - #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0 - -+#if defined(__FreeBSD__) -+#include -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+#undef HAVE_MEMFD_CREATE -+#else - #define HAVE_MEMFD_CREATE -+#endif -+#endif - - #define HAVE_MKOSTEMP - -@@ -25,7 +32,11 @@ +@@ -25,11 +25,14 @@ #undef HAVE_SYS_PROCCTL_H @@ -27,3 +12,7 @@ #define HAVE_XUCRED_CR_PID 0 + #define PACKAGE "wayland" + + #define PACKAGE_VERSION "1.21.0" +- diff --git a/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc deleted file mode 100644 --- a/devel/electron26/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-08-16 00:42:09 UTC -+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc -@@ -224,6 +224,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - // so if it exceeds 16 bits, it may be broken. - static constexpr size_t kSizeLimit = 60000; - if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+ PLOG(ERROR) << "memfd is not supported"; -+ return; -+#else - base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); - if (!memfd.get()) { - PLOG(ERROR) << "Failed to create memfd"; -@@ -236,6 +240,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - zcr_extended_text_input_v1_set_large_surrounding_text( - extended_obj_.get(), memfd.get(), text.length(), - selection_range.start(), selection_range.end()); -+#endif - } else { - zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), - selection_range.start(), diff --git a/devel/electron27/files/patch-third__party_wayland_include_config.h b/devel/electron27/files/patch-third__party_wayland_include_config.h --- a/devel/electron27/files/patch-third__party_wayland_include_config.h +++ b/devel/electron27/files/patch-third__party_wayland_include_config.h @@ -1,21 +1,6 @@ ---- third_party/wayland/include/config.h.orig 2023-04-02 06:41:50 UTC +--- third_party/wayland/include/config.h.orig 2023-12-07 21:20:48 UTC +++ third_party/wayland/include/config.h -@@ -9,7 +9,14 @@ - - #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0 - -+#if defined(__FreeBSD__) -+#include -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+#undef HAVE_MEMFD_CREATE -+#else - #define HAVE_MEMFD_CREATE -+#endif -+#endif - - #define HAVE_MKOSTEMP - -@@ -25,7 +32,11 @@ +@@ -25,11 +25,14 @@ #undef HAVE_SYS_PROCCTL_H @@ -27,3 +12,7 @@ #define HAVE_XUCRED_CR_PID 0 + #define PACKAGE "wayland" + + #define PACKAGE_VERSION "1.21.0" +- diff --git a/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc deleted file mode 100644 --- a/devel/electron27/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-19 19:59:21 UTC -+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc -@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - // so if it exceeds 16 bits, it may be broken. - static constexpr size_t kSizeLimit = 60000; - if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+ PLOG(ERROR) << "memfd is not supported"; -+ return; -+#else - base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); - if (!memfd.get()) { - PLOG(ERROR) << "Failed to create memfd"; -@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - zcr_extended_text_input_v1_set_large_surrounding_text( - extended_obj_.get(), memfd.get(), text.length(), - selection_range.start(), selection_range.end()); -+#endif - } else { - zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), - selection_range.start(), diff --git a/devel/elfutils/Makefile b/devel/elfutils/Makefile --- a/devel/elfutils/Makefile +++ b/devel/elfutils/Makefile @@ -14,7 +14,6 @@ LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 BROKEN_armv6= fails to build: fails to compile i386_disasm.c -BROKEN_sparc64= sparc patch does not apply cleanly to 0.172 LIB_DEPENDS= libargp.so:devel/argp-standalone \ libcurl.so:ftp/curl @@ -22,8 +21,8 @@ PLIST_SUB= VERSION=${PORTVERSION} -CFLAGS+= -I${LOCALBASE}/include \ - -I${LOCALBASE}/share/gnulib/lib +CFLAGS+= -I${LOCALBASE}/share/gnulib/lib \ + -DFREEBSD_HAS_MEMPCPY LDFLAGS+= ${LOCALBASE}/lib/libargp.so \ ${LOCALBASE}/lib/libintl.so @@ -35,7 +34,7 @@ NLS_USES_OFF= gettext # used anyway NLS_CONFIGURE_ENABLE= nls -USES= autoreconf cpe gmake libtool pkgconfig tar:bzip2 +USES= autoreconf cpe gmake libtool localbase pkgconfig tar:bzip2 CPE_VENDOR= ${PORTNAME}_project GNU_CONFIGURE= yes USE_LDCONFIG= yes @@ -48,12 +47,6 @@ # Disable debuginfod until option support can be added: CONFIGURE_ARGS+= --disable-debuginfod -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300512 # 2021-07-17 -CFLAGS+= -DFREEBSD_HAS_MEMPCPY -.endif - pre-configure: @${CP} -a \ ${LOCALBASE}/share/gnulib/lib/obstack.c \ diff --git a/devel/freebsd-gcc12/Makefile b/devel/freebsd-gcc12/Makefile --- a/devel/freebsd-gcc12/Makefile +++ b/devel/freebsd-gcc12/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -IGNORE_FreeBSD_12= Does not build - BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \ objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ diff --git a/devel/freebsd-gcc13/Makefile b/devel/freebsd-gcc13/Makefile --- a/devel/freebsd-gcc13/Makefile +++ b/devel/freebsd-gcc13/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -IGNORE_FreeBSD_12= Does not build - BUILD_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} \ objdump:devel/binutils LIB_DEPENDS= libgmp.so:math/gmp \ diff --git a/devel/freebsd-gcc9/Makefile b/devel/freebsd-gcc9/Makefile --- a/devel/freebsd-gcc9/Makefile +++ b/devel/freebsd-gcc9/Makefile @@ -20,7 +20,7 @@ libmpc.so:math/mpc RUN_DEPENDS= ${BU_PREFIX}-as:devel/binutils@${BU_FLAVOR} -FLAVORS= aarch64 amd64 armv6 armv7 i386 mips mips64 powerpc powerpc64 riscv64 sparc64 +FLAVORS= aarch64 amd64 armv6 armv7 i386 mips mips64 powerpc powerpc64 riscv64 TARGETARCH= ${FLAVOR} USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz diff --git a/devel/freebsd-gcc9/pkg-plist.sparc64 b/devel/freebsd-gcc9/pkg-plist.sparc64 deleted file mode 100644 --- a/devel/freebsd-gcc9/pkg-plist.sparc64 +++ /dev/null @@ -1,8 +0,0 @@ -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/dbxelf.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS%%.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-opts.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-protos.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h -%%PLUGINS%%lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h diff --git a/devel/freebsd-sysroot/Makefile b/devel/freebsd-sysroot/Makefile --- a/devel/freebsd-sysroot/Makefile +++ b/devel/freebsd-sysroot/Makefile @@ -91,8 +91,6 @@ .if ${OPSYS} != FreeBSD IGNORE= is only for FreeBSD -.elif ${FLAVOR} == powerpc64le && ${OSVERSION} < 1302000 -IGNORE= is only for FreeBSD 13.2-RELEASE or greater .endif pre-extract: diff --git a/devel/grpc/Makefile b/devel/grpc/Makefile --- a/devel/grpc/Makefile +++ b/devel/grpc/Makefile @@ -53,13 +53,6 @@ CONFLICTS_INSTALL= grpc[0-9][0-9][0-9] -.include - -# Skip openssl.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file -.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/openssl.pc) -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl -.endif - post-patch: # Clean up bundled libraries @${RM} -r ${WRKSRC}/third_party/abseil-cpp/ @@ -73,4 +66,4 @@ @${RM} -r ${WRKSRC}/third_party/xxhash/ @${RM} -r ${WRKSRC}/third_party/zlib/ -.include +.include diff --git a/devel/grpc/files/extra-patch-openssl b/devel/grpc/files/extra-patch-openssl deleted file mode 100644 --- a/devel/grpc/files/extra-patch-openssl +++ /dev/null @@ -1,20 +0,0 @@ ---- CMakeLists.txt.orig 2023-11-28 00:12:30 UTC -+++ CMakeLists.txt -@@ -30395,7 +30395,7 @@ generate_pkgconfig( - "high performance general RPC framework" - "${gRPC_CORE_VERSION}" - "absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_cleanup absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_memory absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr" -- "libcares openssl re2 zlib" -+ "libcares re2 zlib" - "-lgrpc" - "-laddress_sorting -lupb -lupb_textformat_lib -lupb_json_lib -lutf8_range_lib -lupb_collections_lib" - "grpc.pc") -@@ -30417,7 +30417,7 @@ generate_pkgconfig( - "C++ wrapper for gRPC" - "${gRPC_CPP_VERSION}" - "absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_cleanup absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_memory absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr grpc" -- "libcares openssl re2 zlib" -+ "libcares re2 zlib" - "-lgrpc++" - "-laddress_sorting -lupb -lupb_textformat_lib -lupb_json_lib -lutf8_range_lib -lupb_collections_lib" - "grpc++.pc") diff --git a/devel/hare/Makefile b/devel/hare/Makefile --- a/devel/hare/Makefile +++ b/devel/hare/Makefile @@ -27,12 +27,6 @@ OPTIONS_DEFINE= DOCS -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -BROKEN= pre-FreeBSD-13 assembler is not compatible with generated files -.endif - do-build: ${CP} ${WRKSRC}/config.example.mk ${WRKSRC}/config.mk cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} @@ -47,4 +41,4 @@ do-test: cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} check -.include +.include diff --git a/devel/intel-graphics-compiler/Makefile b/devel/intel-graphics-compiler/Makefile --- a/devel/intel-graphics-compiler/Makefile +++ b/devel/intel-graphics-compiler/Makefile @@ -13,7 +13,6 @@ ONLY_FOR_ARCHS= aarch64 amd64 i386 ONLY_FOR_ARCHS_REASON= only Intel GPUs on x86 are supported -BROKEN_FreeBSD_12_i386= clang crashes during build BROKEN_FreeBSD_14_i386= lld crashes during build BUILD_DEPENDS= vc-intrinsics-${FLAVOR}>=0.4.0:devel/vc-intrinsics@${FLAVOR} diff --git a/devel/kf5-kcoreaddons/Makefile b/devel/kf5-kcoreaddons/Makefile --- a/devel/kf5-kcoreaddons/Makefile +++ b/devel/kf5-kcoreaddons/Makefile @@ -29,13 +29,4 @@ CMAKE_ARGS= -DACCOUNTS_SERVICE_ICON_DIR:PATH=/var/db/AccountsService/icons -.include -# FreeBSD base gained /etc/os-release in r354922, which -# corresponds to __FreeBSD_version 1300060 -.if ${OSVERSION} < 1300060 -post-patch: - ${REINPLACE_CMD} -e '/QStringLiteral/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ - ${WRKSRC}/src/lib/util/kosrelease.cpp -.endif - -.include +.include diff --git a/devel/libcutl/Makefile b/devel/libcutl/Makefile --- a/devel/libcutl/Makefile +++ b/devel/libcutl/Makefile @@ -11,8 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_sparc64= Does not build: cannot configure with boost - LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libexpat.so:textproc/expat2 diff --git a/devel/libffcall/files/patch-ffcall-abi.h b/devel/libffcall/files/patch-ffcall-abi.h deleted file mode 100644 --- a/devel/libffcall/files/patch-ffcall-abi.h +++ /dev/null @@ -1,11 +0,0 @@ ---- ffcall-abi.h.orig 2018-11-18 21:47:39 UTC -+++ ffcall-abi.h -@@ -75,7 +75,7 @@ - #endif - #endif - #ifndef __sparc64__ --#if defined(__sparcv9) /* GCC/Solaris, Sun C */ || defined(__arch64__) /* GCC/Linux */ -+#if defined(__sparcv9) /* GCC/Solaris, Sun C */ - #define __sparc64__ 1 - #endif - #endif diff --git a/devel/libftdi1/Makefile b/devel/libftdi1/Makefile --- a/devel/libftdi1/Makefile +++ b/devel/libftdi1/Makefile @@ -13,8 +13,6 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.GPL LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LIB -BROKEN_sparc64= Does not build: fails to link - LIB_DEPENDS= libconfuse.so:devel/libconfuse USES= cmake:insource compiler:c++11-lang gettext-runtime pkgconfig tar:bzip2 diff --git a/devel/libhoard/Makefile b/devel/libhoard/Makefile --- a/devel/libhoard/Makefile +++ b/devel/libhoard/Makefile @@ -13,7 +13,6 @@ BROKEN_mips= no spin lock implementation is available for this platform BROKEN_mips64= no spin lock implementation is available for this platform -BROKEN_sparc64= Does not build WRKSRC= ${WRKDIR}/Hoard/src MAKEFILE= GNUmakefile diff --git a/devel/libpeak/Makefile b/devel/libpeak/Makefile --- a/devel/libpeak/Makefile +++ b/devel/libpeak/Makefile @@ -10,7 +10,7 @@ LICENSE= BSD2CLAUSE -ONLY_FOR_ARCHS= amd64 i386 sparc64 +ONLY_FOR_ARCHS= amd64 i386 USES= gmake libtool perl5 shebangfix USE_PERL5= test diff --git a/devel/libqsbr/Makefile b/devel/libqsbr/Makefile --- a/devel/libqsbr/Makefile +++ b/devel/libqsbr/Makefile @@ -9,13 +9,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/../LICENSE -# the fix uses __LONG_WIDTH__ which is only available from FreeBSD 13 -BROKEN_FreeBSD_12_i386= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") -BROKEN_FreeBSD_12_armv6= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") -BROKEN_FreeBSD_12_armv7= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") -BROKEN_FreeBSD_12_powerpc= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") -BROKEN_FreeBSD_12_mips= static_assert(sizeof(qsbr_epoch_t) == 8, "expected 64-bit counter") - USES= compiler:c11 gmake libtool:build USE_GITHUB= yes GH_ACCOUNT= rmind diff --git a/devel/lightning/Makefile b/devel/lightning/Makefile --- a/devel/lightning/Makefile +++ b/devel/lightning/Makefile @@ -10,7 +10,7 @@ LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 mips powerpc powerpc64 powerpc64le powerpcspe riscv64 sparc64 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 mips powerpc powerpc64 powerpc64le powerpcspe riscv64 USES= cpe libtool pathfix CPE_VENDOR= gnu @@ -20,7 +20,7 @@ TEST_TARGET= check USE_LDCONFIG= yes -PLIST_SUB= JIT_ARCH=${ARCH:S/i386/x86/:S/amd64/x86/:S/x86_64/x86/:S/sparc64/sparc/:C/powerpc.*/ppc/:C/armv./arm/:S/riscv64/riscv/} +PLIST_SUB= JIT_ARCH=${ARCH:S/i386/x86/:S/amd64/x86/:S/x86_64/x86/:C/powerpc.*/ppc/:C/armv./arm/:S/riscv64/riscv/} INFO= lightning diff --git a/devel/linux_libusb/Makefile b/devel/linux_libusb/Makefile --- a/devel/linux_libusb/Makefile +++ b/devel/linux_libusb/Makefile @@ -39,9 +39,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134 -MAKE_ARGS+= NO_WERROR=yes -.endif MAKE_ARGS+= NO_WDATE_TIME=yes .if ${ARCH} == amd64 diff --git a/devel/llbuild/Makefile b/devel/llbuild/Makefile --- a/devel/llbuild/Makefile +++ b/devel/llbuild/Makefile @@ -14,7 +14,6 @@ BROKEN_aarch64= fails to link: undefined symbol: sbrk BROKEN_riscv64= fails to link: undefined symbol: sbrk -BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: unrecognized command line option "-Wdocumentation" LIB_DEPENDS= libsqlite3.so:databases/sqlite3 diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -109,7 +109,6 @@ OPTIONS_EXCLUDE_i386= FLANG OPENMP OPTIONS_EXCLUDE_powerpc= FLANG OPENMP OPTIONS_EXCLUDE_riscv64= LLDB -OPTIONS_EXCLUDE_FreeBSD_12= OPENMP .endif _ALL_OPTIONS= CLANG COMPILER_RT DOCS EXTRAS FLANG GOLD LIT LLD LLDB MLIR \ @@ -249,13 +248,6 @@ .if ${PORT_OPTIONS:MCOMPILER_RT} LLVM_ENABLE_PROJECTS+= compiler-rt COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc) -.if ${OSVERSION} < 1300525 -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -BUILD_DEPENDS+= libunwind>0:devel/libunwind -# Allow unwind.h to be found reliably -USES+= localbase -.endif .endif .if ${PORT_OPTIONS:MEXTRAS} diff --git a/devel/llvm10/Makefile b/devel/llvm10/Makefile --- a/devel/llvm10/Makefile +++ b/devel/llvm10/Makefile @@ -273,7 +273,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -308,7 +308,6 @@ _BE_LIBS_Mips= AsmParser Disassembler _BE_LIBS_PowerPC= AsmParser Disassembler _BE_LIBS_RISCV= AsmParser Disassembler Utils -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler _BE_LIBS_X86= AsmParser Disassembler Utils diff --git a/devel/llvm11/Makefile b/devel/llvm11/Makefile --- a/devel/llvm11/Makefile +++ b/devel/llvm11/Makefile @@ -274,7 +274,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -314,7 +314,6 @@ _BE_LIBS_Mips= AsmParser Disassembler _BE_LIBS_PowerPC= AsmParser Disassembler _BE_LIBS_RISCV= AsmParser Disassembler Utils -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler _BE_LIBS_X86= AsmParser Disassembler diff --git a/devel/llvm12/Makefile b/devel/llvm12/Makefile --- a/devel/llvm12/Makefile +++ b/devel/llvm12/Makefile @@ -117,13 +117,8 @@ X_COMPILER_TYPE=clang CLANG_USE= GNOME=libxml2 COMPILER_RT_DESC= Sanitizer libraries -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind COMPILER_RT_CMAKE_ON= \ -DCOMPILER_RT_INSTALL_PATH=${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE} -# Allow unwind.h to be found reliably -COMPILER_RT_USES= localbase COMPILER_RT_PLIST_FILES=${_COMPILER_RT_LIBS:S|^|${_CRTLIBDIR}/|} \ ${_COMPILER_RT_BLACKLISTS:S|^|${_CRTBLDIR}/|} DOCS_BUILD_DEPENDS= \ @@ -285,7 +280,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -325,7 +320,6 @@ _BE_LIBS_Mips= AsmParser Disassembler _BE_LIBS_PowerPC= AsmParser Disassembler _BE_LIBS_RISCV= AsmParser Disassembler -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler _BE_LIBS_X86= AsmParser Disassembler diff --git a/devel/llvm13/Makefile b/devel/llvm13/Makefile --- a/devel/llvm13/Makefile +++ b/devel/llvm13/Makefile @@ -131,13 +131,8 @@ X_COMPILER_TYPE=clang CLANG_USE= GNOME=libxml2 COMPILER_RT_DESC= Sanitizer libraries -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind COMPILER_RT_CMAKE_ON= \ -DCOMPILER_RT_INSTALL_PATH=${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE} -# Allow unwind.h to be found reliably -COMPILER_RT_USES= localbase COMPILER_RT_PLIST_FILES=${_COMPILER_RT_LIBS:S|^|${_CRTLIBDIR}/|} \ ${_COMPILER_RT_BLACKLISTS:S|^|${_CRTBLDIR}/|} DOCS_BUILD_DEPENDS= \ @@ -322,7 +317,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -366,7 +361,6 @@ _BE_LIBS_PowerPC= AsmParser Disassembler _BE_LIBS_BACKWARDS_PowerPC=Exegesis _BE_LIBS_RISCV= AsmParser Disassembler -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler Utils _BE_LIBS_X86= AsmParser Disassembler diff --git a/devel/llvm14/Makefile b/devel/llvm14/Makefile --- a/devel/llvm14/Makefile +++ b/devel/llvm14/Makefile @@ -265,13 +265,6 @@ .if ${PORT_OPTIONS:MCOMPILER_RT} LLVM_ENABLE_PROJECTS+= compiler-rt COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/fuzzer|profile\/InstrProfData.inc) -.if ${OSVERSION} < 1300525 -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -BUILD_DEPENDS+= libunwind>0:devel/libunwind -# Allow unwind.h to be found reliably -USES+= localbase -.endif .endif .if ${PORT_OPTIONS:MEXTRAS} @@ -327,7 +320,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -372,7 +365,6 @@ _BE_LIBS_BACKWARDS_PowerPC=Exegesis _BE_INCS_RISCV= riscv_vector.h _BE_LIBS_RISCV= AsmParser Disassembler -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_VE= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler Utils diff --git a/devel/llvm15/Makefile b/devel/llvm15/Makefile --- a/devel/llvm15/Makefile +++ b/devel/llvm15/Makefile @@ -287,13 +287,6 @@ .if ${PORT_OPTIONS:MCOMPILER_RT} LLVM_ENABLE_PROJECTS+= compiler-rt COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc) -.if ${OSVERSION} < 1300525 -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -BUILD_DEPENDS+= libunwind>0:devel/libunwind -# Allow unwind.h to be found reliably -USES+= localbase -.endif .endif .if ${PORT_OPTIONS:MEXTRAS} @@ -349,7 +342,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -394,7 +387,6 @@ _BE_LIBS_BACKWARDS_PowerPC=Exegesis _BE_INCS_RISCV= riscv_vector.h _BE_LIBS_RISCV= AsmParser Disassembler -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_VE= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler Utils diff --git a/devel/llvm16/Makefile b/devel/llvm16/Makefile --- a/devel/llvm16/Makefile +++ b/devel/llvm16/Makefile @@ -118,7 +118,6 @@ OPTIONS_EXCLUDE_i386= FLANG OPENMP OPTIONS_EXCLUDE_powerpc= FLANG OPENMP OPTIONS_EXCLUDE_riscv64= LLDB -OPTIONS_EXCLUDE_FreeBSD_12= OPENMP .endif # All non-backend options @@ -286,13 +285,6 @@ .if ${PORT_OPTIONS:MCOMPILER_RT} LLVM_ENABLE_PROJECTS+= compiler-rt COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc) -.if ${OSVERSION} < 1300525 -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -BUILD_DEPENDS+= libunwind>0:devel/libunwind -# Allow unwind.h to be found reliably -USES+= localbase -.endif .endif .if ${PORT_OPTIONS:MEXTRAS} @@ -354,7 +346,7 @@ .include "${.CURDIR}/Makefile.COMMANDS" .include "${.CURDIR}/Makefile.MAN1SRCS" -_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV Sparc X86 +_FREEBSD_BACKENDS= AArch64 ARM Mips PowerPC RISCV X86 FREEBSD_BACKENDS= ${_FREEBSD_BACKENDS} .if ${ARCH} == amd64 _NATIVE_BACKENDS= X86 @@ -400,7 +392,6 @@ _BE_LIBS_BACKWARDS_PowerPC=Exegesis _BE_INCS_RISCV= riscv_vector.h _BE_LIBS_RISCV= AsmParser Disassembler TargetMCA -_BE_LIBS_Sparc= AsmParser Disassembler _BE_LIBS_SystemZ= AsmParser Disassembler _BE_LIBS_VE= AsmParser Disassembler _BE_LIBS_WebAssembly= AsmParser Disassembler Utils diff --git a/devel/llvm17/Makefile b/devel/llvm17/Makefile --- a/devel/llvm17/Makefile +++ b/devel/llvm17/Makefile @@ -119,7 +119,6 @@ OPTIONS_EXCLUDE_i386= FLANG OPENMP OPTIONS_EXCLUDE_powerpc= FLANG OPENMP OPTIONS_EXCLUDE_riscv64= LLDB -OPTIONS_EXCLUDE_FreeBSD_12= OPENMP .endif # All non-backend options @@ -287,13 +286,6 @@ .if ${PORT_OPTIONS:MCOMPILER_RT} LLVM_ENABLE_PROJECTS+= compiler-rt COMPILER_RT_PATTERN= (sanitizer|include.xray|include\/(fuzzer|orc)|profile\/InstrProfData.inc) -.if ${OSVERSION} < 1300525 -# An unwind.h is require to build. I think an in-tree one should be used -# but this seems to work as a workaround... -BUILD_DEPENDS+= libunwind>0:devel/libunwind -# Allow unwind.h to be found reliably -USES+= localbase -.endif .endif .if ${PORT_OPTIONS:MEXTRAS} diff --git a/devel/love/Makefile b/devel/love/Makefile --- a/devel/love/Makefile +++ b/devel/love/Makefile @@ -11,7 +11,7 @@ LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/license.txt -NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= Hashing not yet implemented for big endian LIB_DEPENDS= libmodplug.so:audio/libmodplug \ diff --git a/devel/mdb/Makefile b/devel/mdb/Makefile --- a/devel/mdb/Makefile +++ b/devel/mdb/Makefile @@ -31,16 +31,6 @@ IGNORE= requires full source tree with CDDL sources .endif -.if ${OSVERSION} < 1300015 && ${COMPILER_TYPE} == "clang" && \ - ${COMPILER_VERSION} >= 80 -# clang 8 cannot compile due to enum redefinitions in kernel.h -BROKEN= Depends on removed llvm70 -# BUILD_DEPENDS+= ${LOCALBASE}/bin/clang70:devel/llvm70 -# CPP= ${LOCALBASE}/bin/clang-cpp70 -# CC= ${LOCALBASE}/bin/clang70 -# CXX= ${LOCALBASE}/bin/clang++70 -.endif - pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mdb/kvm/${MACHINE_ARCH} diff --git a/devel/mongo-c-driver/Makefile b/devel/mongo-c-driver/Makefile --- a/devel/mongo-c-driver/Makefile +++ b/devel/mongo-c-driver/Makefile @@ -87,10 +87,6 @@ .endif .endif -# .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300523 -# EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_libmongoc_src_mongoc_mongoc-counters-private.h -# .endif - pre-configure-CRYPTOPROFILE-on: .if ${SSL_DEFAULT:Mlibressl*} @${ECHO_MSG} "CRYPTOPROFILE requires OpenSSL." diff --git a/devel/msgpack-c/Makefile b/devel/msgpack-c/Makefile --- a/devel/msgpack-c/Makefile +++ b/devel/msgpack-c/Makefile @@ -21,13 +21,6 @@ CMAKE_OFF= MSGPACK_BUILD_EXAMPLES MSGPACK_BUILD_TESTS TEST_TARGET= test -.include - -.if ${ARCH} == "sparc64" -# required for __sync _* atomic operations on sparc -USE_GCC= yes -.endif - pre-test: cd ${WRKSRC} && ${CMAKE_BIN} . && ${MAKE_CMD} @@ -35,7 +28,6 @@ # until upstream makes up its mind. post-install: ${LN} -sf msgpack-c.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/msgpack.pc - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/msgpackc .for tgt in config-version config targets-${CMAKE_BUILD_TYPE:tl} targets ${LN} -sf ../msgpack-c/msgpack-c-${tgt}.cmake \ @@ -45,4 +37,4 @@ ${LN} -sf libmsgpack-c.${ext} ${STAGEDIR}${PREFIX}/lib/libmsgpackc.${ext} .endfor -.include +.include diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile --- a/devel/ncurses/Makefile +++ b/devel/ncurses/Makefile @@ -12,8 +12,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= cannot build: coredump: illegal instruction - USES= cpe pkgconfig shebangfix CPE_VENDOR= gnu USE_LDCONFIG= yes diff --git a/devel/nextpnr/Makefile b/devel/nextpnr/Makefile --- a/devel/nextpnr/Makefile +++ b/devel/nextpnr/Makefile @@ -13,7 +13,6 @@ NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= clang segfault -BROKEN_FreeBSD_12_powerpc64= runaway build BUILD_DEPENDS= ${LOCALBASE}/share/trellis/database:devel/trellis \ ${LOCALBASE}/share/icebox:devel/icestorm diff --git a/devel/p5-Data-MessagePack-Stream/Makefile b/devel/p5-Data-MessagePack-Stream/Makefile --- a/devel/p5-Data-MessagePack-Stream/Makefile +++ b/devel/p5-Data-MessagePack-Stream/Makefile @@ -10,7 +10,6 @@ BROKEN_mips= fails to build: atomic operations are not found BROKEN_mips64= fails to build: atomic operations are not found -BROKEN_sparc64= fails to build: atomic operations are not found BUILD_DEPENDS= p5-File-Which>=0:sysutils/p5-File-Which \ p5-Module-Build-XSUtil>=0:devel/p5-Module-Build-XSUtil \ diff --git a/devel/pcl/Makefile b/devel/pcl/Makefile --- a/devel/pcl/Makefile +++ b/devel/pcl/Makefile @@ -14,8 +14,4 @@ WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION} -post-patch: # required at least on sparc64 - @${REINPLACE_CMD} -e '/, ; G ; }' ${WRKSRC}/pcl/pcl.c - .include diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile --- a/devel/pcre/Makefile +++ b/devel/pcre/Makefile @@ -16,7 +16,6 @@ USES_powerpc= compiler:c++11-lang USES_powerpc64= compiler:c++11-lang USES_powerpcspe= compiler:c++11-lang -USES_sparc64= compiler:c++11-lang USE_LDCONFIG= yes GNU_CONFIGURE= yes diff --git a/devel/pcre2/Makefile b/devel/pcre2/Makefile --- a/devel/pcre2/Makefile +++ b/devel/pcre2/Makefile @@ -36,7 +36,7 @@ .include -.if ${ARCH} != "sparc64" && ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == "" +.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == "" CONFIGURE_ARGS+= --enable-jit .else CONFIGURE_ARGS+= --disable-jit diff --git a/devel/pickle/Makefile b/devel/pickle/Makefile --- a/devel/pickle/Makefile +++ b/devel/pickle/Makefile @@ -14,7 +14,6 @@ BROKEN_armv7= invokes x86 assembler BROKEN_mips= invokes x86 assembler BROKEN_mips64= invokes x86 assembler -BROKEN_sparc64= invokes x86 assembler USES= gmake tar:tgz diff --git a/devel/pika/Makefile b/devel/pika/Makefile --- a/devel/pika/Makefile +++ b/devel/pika/Makefile @@ -10,7 +10,6 @@ LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt -BROKEN_FreeBSD_12= compilation error: /usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int' BROKEN_aarch64= compilation error: error: 'regparm' is not valid on this platform BUILD_DEPENDS= boost-libs>=0:devel/boost-libs diff --git a/devel/protobuf/Makefile b/devel/protobuf/Makefile --- a/devel/protobuf/Makefile +++ b/devel/protobuf/Makefile @@ -12,8 +12,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_sparc64= fails to compile: no atomic ops available - LIB_DEPENDS= libabsl_base.so:devel/abseil \ libjsoncpp.so:devel/jsoncpp TEST_DEPENDS= googletest>=0:devel/googletest diff --git a/devel/py-hidraw/Makefile b/devel/py-hidraw/Makefile --- a/devel/py-hidraw/Makefile +++ b/devel/py-hidraw/Makefile @@ -15,13 +15,7 @@ GH_ACCOUNT= daym USE_PYTHON= autoplist distutils -.include - -.if ${OSVERSION} < 1300000 -IGNORE= requires FreeBSD 13 or later with hidraw support -.endif - post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hidraw/_hidraw*.so -.include +.include diff --git a/devel/py-keystone-engine/Makefile b/devel/py-keystone-engine/Makefile --- a/devel/py-keystone-engine/Makefile +++ b/devel/py-keystone-engine/Makefile @@ -11,8 +11,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.TXT -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-core USES= pkgconfig python diff --git a/devel/qt5-core/Makefile b/devel/qt5-core/Makefile --- a/devel/qt5-core/Makefile +++ b/devel/qt5-core/Makefile @@ -39,19 +39,6 @@ MORE_WRKSRCS= src/tools/bootstrap src/corelib src/tools/qlalr -.include - -# FreeBSD base gained an os-release in r354922, but that does not exist -# always (see Synth bug 191, or PR 255354). Be a little more forgiving: -# assume sufficiently recent base "will have it", and check otherwise -# because 12.2 does, others like 12.1 do not have it. -.if !exists(/etc/rc.d/os-release) && (${OSVERSION} < 1300060) -RUN_DEPENDS+= etc_os-release>0:sysutils/etc_os-release -post-patch: - ${REINPLACE_CMD} -e '/readEtcFile/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ - ${WRKSRC}/src/corelib/global/qglobal.cpp -.endif - post-configure: .for d in ${MORE_WRKSRCS} ${MKDIR} ${WRKSRC}/${d} @@ -78,4 +65,4 @@ ${REINPLACE_CMD} "/#define QT_NO_/d" ${WRKDIR}/qconfig.h ${MV} ${WRKDIR}/qconfig.h ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h -.include +.include diff --git a/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h b/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h deleted file mode 100644 --- a/devel/qt5-script/files/patch-src__3rdparty__javascriptcore__JavaScriptCore__runtime__JSValue.h +++ /dev/null @@ -1,26 +0,0 @@ ---- ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h.orig 2012-12-12 20:18:36.000000000 +0100 -+++ ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h 2012-12-17 02:13:05.073285539 +0100 -@@ -491,7 +491,11 @@ - u.asBits.tag = CellTag; - else - u.asBits.tag = EmptyValueTag; -+#if defined(__sparc64__) -+ u.asBits.payload = reinterpret_cast(ptr); -+#else - u.asBits.payload = reinterpret_cast(ptr); -+#endif - #if ENABLE(JSC_ZOMBIES) - ASSERT(!isZombie()); - #endif -@@ -503,7 +507,11 @@ - u.asBits.tag = CellTag; - else - u.asBits.tag = EmptyValueTag; -+#if defined(__sparc64__) -+ u.asBits.payload = reinterpret_cast(const_cast(ptr)); -+#else - u.asBits.payload = reinterpret_cast(const_cast(ptr)); -+#endif - #if ENABLE(JSC_ZOMBIES) - ASSERT(!isZombie()); - #endif diff --git a/devel/radare2/Makefile b/devel/radare2/Makefile --- a/devel/radare2/Makefile +++ b/devel/radare2/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe sparc64 +NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture LIB_DEPENDS= libcapstone.so:devel/capstone diff --git a/devel/root/Makefile b/devel/root/Makefile --- a/devel/root/Makefile +++ b/devel/root/Makefile @@ -99,14 +99,6 @@ PLIST_SUB+= NOT_INSTALLED_ON_AARCH64="" ONLY_INSTALLED_ON_AARCH64="@comment " AARCH64_PCM_PREFIX="" AARCH64_PCM_SUFFIX="" .endif -# Some files only installed with LLVM/Clang 13 (used on FreeBSD 12.4, 13.0 and 13.1) -# TODO: Introduce USES+=llvm:min=14 instead when this can be deemed not too obtrusive on supported releases -.if 1204000 <= ${OSVERSION} && ${OSVERSION} < 1302000 && ${OSVERSION} != 1301507 -PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13="" -.else -PLIST_SUB+= ONLY_INSTALLED_WITH_LLVM_CLANG_13="@comment " -.endif - # The following two files should not be staged. This happens even when PYROOT option is OFF. post-install: ${RM} ${STAGEDIR}${PREFIX}/lib/root/__pycache__/cmdLineUtils.cpython-39.pyc diff --git a/devel/root/pkg-plist b/devel/root/pkg-plist --- a/devel/root/pkg-plist +++ b/devel/root/pkg-plist @@ -3910,7 +3910,6 @@ lib/root/libvectorDict.so.%%SHLIB_VER%% %%NOT_INSTALLED_ON_AARCH64%%lib/root/modules.idx %%NOT_INSTALLED_ON_AARCH64%%lib/root/std.pcm -%%NOT_INSTALLED_ON_AARCH64%%%%ONLY_INSTALLED_WITH_LLVM_CLANG_13%%lib/root/std_config.pcm %%PORTDOCS%%%%DOCSDIR%%/CREDITS %%PORTDOCS%%%%DOCSDIR%%/DEVELOPMENT.md %%PORTDOCS%%%%DOCSDIR%%/INSTALL diff --git a/devel/rubygem-gobject-introspection/Makefile b/devel/rubygem-gobject-introspection/Makefile --- a/devel/rubygem-gobject-introspection/Makefile +++ b/devel/rubygem-gobject-introspection/Makefile @@ -11,8 +11,6 @@ LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING.LIB -BROKEN_sparc64= does not build: fails to compile rb-gi-function-info.c - RUN_DEPENDS= rubygem-glib2>=${PORTVERSION}<${PORTVERSION}_99:devel/rubygem-glib2 USES= gem gnome diff --git a/devel/rubygem-rice/Makefile b/devel/rubygem-rice/Makefile --- a/devel/rubygem-rice/Makefile +++ b/devel/rubygem-rice/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_12_powerpc64= fails to configure: could not find ruby.h - USES= gem NO_ARCH= yes diff --git a/devel/sdbus-cpp/Makefile b/devel/sdbus-cpp/Makefile --- a/devel/sdbus-cpp/Makefile +++ b/devel/sdbus-cpp/Makefile @@ -22,12 +22,4 @@ CMAKE_OFF= BUILD_DOC CMAKE_TESTING_ON= BUILD_TESTS -# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31 -# https://cgit.freebsd.org/src/commit/?id=7a202823aa54 -.if !exists(/usr/include/sys/eventfd.h) -LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim -CFLAGS+= `pkg-config --cflags epoll-shim` -LDFLAGS+= `pkg-config --libs epoll-shim` -.endif - .include diff --git a/devel/socket_wrapper/Makefile b/devel/socket_wrapper/Makefile --- a/devel/socket_wrapper/Makefile +++ b/devel/socket_wrapper/Makefile @@ -20,7 +20,6 @@ CFLAGS_powerpc64le= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast CFLAGS_powerpcspe= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast CFLAGS_riscv64= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast -CFLAGS_sparc64= -Wno-error=int-to-pointer-cast -Wno-error=pointer-to-int-cast CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST diff --git a/devel/stack/Makefile b/devel/stack/Makefile --- a/devel/stack/Makefile +++ b/devel/stack/Makefile @@ -209,7 +209,7 @@ RUN_DEPENDS+= llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION} .endif -.if ${OSVERSION} >= 1300078 && ${ARCH} != powerpc64 +.if ${ARCH} != powerpc64 LIB_DEPENDS+= libncursesw.so.8:misc/compat12x .endif diff --git a/devel/tex-libtexluajit/Makefile b/devel/tex-libtexluajit/Makefile --- a/devel/tex-libtexluajit/Makefile +++ b/devel/tex-libtexluajit/Makefile @@ -17,7 +17,6 @@ BROKEN_mips64= Does not configure: error: Sorry, cannot preprocess lj_arch.h BROKEN_powerpc64= Does not build: uninitialized constant Config (NameError) BROKEN_riscv64= Does not configure: error: Sorry, cannot preprocess lj_arch.h -BROKEN_sparc64= Does not configure: error: Sorry, cannot preprocess lj_arch.h USES= compiler libtool pathfix pkgconfig tar:xz tex USE_LDCONFIG= yes diff --git a/devel/upp/Makefile b/devel/upp/Makefile --- a/devel/upp/Makefile +++ b/devel/upp/Makefile @@ -14,7 +14,6 @@ BROKEN_powerpc= Does not compile on ${ARCH}: error Unknown CPU architecture BROKEN_powerpc64= Does not compile on ${ARCH}: error Unknown CPU architecture -BROKEN_sparc64= Does not compile on ${ARCH} USES= compiler:c++14-lang dos2unix pkgconfig:both tar:xz DOS2UNIX_FILES= uppsrc/Core/config.h diff --git a/dns/powerdns-recursor/Makefile b/dns/powerdns-recursor/Makefile --- a/dns/powerdns-recursor/Makefile +++ b/dns/powerdns-recursor/Makefile @@ -14,7 +14,6 @@ BROKEN_armv6= fails to compile: use of overloaded operator << is ambiguous BROKEN_armv7= fails to compile: use of overloaded operator << is ambiguous -BROKEN_FreeBSD_12_powerpc64= fails to compile: Assembler messages: unaligned opcodes detected in executable segment NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= archs with 32-bits time_t are no longer supported by upstream diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile --- a/dns/powerdns/Makefile +++ b/dns/powerdns/Makefile @@ -10,7 +10,6 @@ LICENSE= GPLv2 -BROKEN_sparc64= does not compile: error: to_string is not a member of std NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= archs with 32-bits time_t are no longer supported by upstream diff --git a/editors/pdfedit/Makefile b/editors/pdfedit/Makefile --- a/editors/pdfedit/Makefile +++ b/editors/pdfedit/Makefile @@ -13,7 +13,6 @@ DEPRECATED= BROKEN on all supported versions for 2 years after the EOL of 12 EXPIRATION_DATE= 2023-12-31 BROKEN_powerpc64= fails to configure: error: Could not link against boost_program_options -BROKEN_sparc64= fails to configure: error: Could not link against boost_program_options BROKEN_FreeBSD_13= fails to compile: call to 'advance' is ambiguous BROKEN_FreeBSD_14= fails to compile: call to 'advance' is ambiguous diff --git a/editors/xcoral/Makefile b/editors/xcoral/Makefile --- a/editors/xcoral/Makefile +++ b/editors/xcoral/Makefile @@ -13,25 +13,19 @@ LICENSE= GPLv2 -USES= bison compiler:c11 xorg +LIB_DEPENDS= libgnuregex.so.[6-9]:devel/libgnuregex + +USES= bison compiler:c11 localbase:ldflags xorg USE_XORG= x11 GNU_CONFIGURE= yes CONFIGURE_ARGS= --libdir=${PREFIX}/share LIBS+= -lgnuregex -LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= -isystem ${LOCALBASE}/include EXTRACT_AFTER_ARGS= --exclude BR_Parser.[ch] PLIST_SUB= VERSION="${PORTVERSION}" OPTIONS_DEFINE= DOCS -.include - -.if ${OSVERSION} > 1300000 -LIB_DEPENDS+= libgnuregex.so.[6-9]:devel/libgnuregex -.endif - post-patch: @${REINPLACE_CMD} -e 's| regex\.[co] | |g ; \ s| -g | |g' ${WRKSRC}/Makefile.in @@ -43,4 +37,4 @@ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/* ${STAGEDIR}${DOCSDIR} -.include +.include diff --git a/emulators/cingb/Makefile b/emulators/cingb/Makefile --- a/emulators/cingb/Makefile +++ b/emulators/cingb/Makefile @@ -34,7 +34,7 @@ .include -.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc" && ${ARCH} != powerpc64 +.if ${ARCH} != "powerpc" && ${ARCH} != powerpc64 CPPFLAGS+= -DUSE_LITTLE_ENDIAN .endif diff --git a/emulators/dynamips-community/Makefile b/emulators/dynamips-community/Makefile --- a/emulators/dynamips-community/Makefile +++ b/emulators/dynamips-community/Makefile @@ -11,7 +11,6 @@ LICENSE= GPLv2 BROKEN_riscv64= fails to compile: common/dynamips_common.h:71:2: Please define your architecture! -BROKEN_sparc64= fails to compile: invokes x86 assembler LIB_DEPENDS= libelf.so:devel/libelf diff --git a/emulators/mednafen/Makefile b/emulators/mednafen/Makefile --- a/emulators/mednafen/Makefile +++ b/emulators/mednafen/Makefile @@ -16,8 +16,6 @@ libsndfile.so:audio/libsndfile \ libvorbis.so:audio/libvorbis -BROKEN_sparc64= fails to compile due to internal compiler error - GNU_CONFIGURE= yes USE_SDL= sdl2 net2 USE_GL= gl glu diff --git a/emulators/pcsx2/Makefile b/emulators/pcsx2/Makefile --- a/emulators/pcsx2/Makefile +++ b/emulators/pcsx2/Makefile @@ -95,11 +95,4 @@ https://github.com/${PORTNAME}/${PORTNAME} . && \ ${SH} ${FILESDIR}/gen_gh_tuple.sh >> ${.CURDIR}/Makefile.tuples -.include - -# Fixed in 13.2 with commit 4b6eb0e63c69 (libc++ update) -.if (${OSVERSION} <= 1301503) -BROKEN= needs libc++ with std::bit_cast support -.endif - -.include +.include diff --git a/emulators/ppsspp/Makefile b/emulators/ppsspp/Makefile --- a/emulators/ppsspp/Makefile +++ b/emulators/ppsspp/Makefile @@ -15,7 +15,7 @@ LICENSE= GPLv2+ # Bi-endian architectures default to big for some reason -NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= only little-endian is supported, see \ https://github.com/hrydgard/ppsspp/issues/8823 diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile --- a/emulators/qemu-devel/Makefile +++ b/emulators/qemu-devel/Makefile @@ -135,10 +135,6 @@ PLIST_SUB+= BSDUSER="" .endif -.if ${ARCH} == "sparc64" -CONFIGURE_ARGS+= --sparc_cpu=v9 -.endif - PLIST_SUB+= LINUXBOOT_DMA="" post-extract: diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -234,10 +234,6 @@ PLIST_SUB+= BSDUSER="" .endif -.if ${ARCH} == "sparc64" -CONFIGURE_ARGS+= --sparc_cpu=v9 -.endif - PLIST_SUB+= LINUXBOOT_DMA="" .endif diff --git a/emulators/qemu7/Makefile b/emulators/qemu7/Makefile --- a/emulators/qemu7/Makefile +++ b/emulators/qemu7/Makefile @@ -217,10 +217,6 @@ PLIST_SUB+= BSDUSER="" .endif -.if ${ARCH} == "sparc64" -CONFIGURE_ARGS+= --sparc_cpu=v9 -.endif - PLIST_SUB+= LINUXBOOT_DMA="" .endif diff --git a/emulators/qmc2/Makefile b/emulators/qmc2/Makefile --- a/emulators/qmc2/Makefile +++ b/emulators/qmc2/Makefile @@ -58,12 +58,6 @@ DOCS_ALL_TARGET= doc DOCS_PORTDOCS= html -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -EXTRA_PATCHES= ${PATCHDIR}/extra-scripts-sdl-includepaths -.endif - post-patch: ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}/|g' \ -e 's|%%DOCSDIR%%|${DOCSDIR}/|g' \ diff --git a/emulators/qmc2/files/extra-scripts-sdl-includepaths b/emulators/qmc2/files/extra-scripts-sdl-includepaths deleted file mode 100644 --- a/emulators/qmc2/files/extra-scripts-sdl-includepaths +++ /dev/null @@ -1,9 +0,0 @@ ---- scripts/sdl-includepath.sh.orig 2022-12-03 08:13:04 UTC -+++ scripts/sdl-includepath.sh -@@ -26,5 +26,5 @@ fi - fi - fi - fi --echo $SDL_CFLAGS | egrep -o -e "\\-I\\S+" | sed -e 's/^-I//' -+echo $SDL_CFLAGS | egrep -o -e "-I[^[:space:]]+" | sed -e 's/^-I//' - exit 0 diff --git a/emulators/rpcs3/files/patch-libc++13 b/emulators/rpcs3/files/patch-libc++13 deleted file mode 100644 --- a/emulators/rpcs3/files/patch-libc++13 +++ /dev/null @@ -1,26 +0,0 @@ -Drop after FreeBSD 12.4 EOL around 2023-12-31. - -Utilities/Config.cpp:194:23: error: no matching function for call to 'to_chars' - if (auto [ptr, ec] = std::to_chars(str.data(), str.data() + str.size(), value, std::chars_format::fixed); ec == std::errc()) - ^~~~~~~~~~~~~ -/usr/include/c++/v1/charconv:166:6: note: candidate function not viable: no known conversion from 'std::chars_format' to 'int' for 4th argument -void to_chars(char*, char*, bool, int = 10) = delete; - ^ -/usr/include/c++/v1/charconv:458:1: note: candidate template ignored: requirement 'is_integral::value' was not satisfied [with _Tp = double] -to_chars(char* __first, char* __last, _Tp __value, int __base) -^ -/usr/include/c++/v1/charconv:450:1: note: candidate function template not viable: requires 3 arguments, but 4 were provided -to_chars(char* __first, char* __last, _Tp __value) -^ - ---- Utilities/Config.cpp.orig 2023-02-25 10:23:07 UTC -+++ Utilities/Config.cpp -@@ -185,7 +185,7 @@ bool try_to_string(std::string* out, const f64& value) - - bool try_to_string(std::string* out, const f64& value) - { --#ifdef __APPLE__ -+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 14000 - if (out) *out = std::to_string(value); - return true; - #else diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile --- a/emulators/vba/Makefile +++ b/emulators/vba/Makefile @@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc= Runaway cc1plus process -BROKEN_sparc64= Runaway cc1plus process BUILD_DEPENDS= nasm:devel/nasm LIB_DEPENDS= libpng.so:graphics/png diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile --- a/emulators/virtualbox-ose/Makefile +++ b/emulators/virtualbox-ose/Makefile @@ -202,11 +202,6 @@ .include -.if ${OPSYS} == FreeBSD && \ - (${OSVERSION} < 1300513 || ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400026) -EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp -.endif - .if ${CHOSEN_COMPILER_TYPE} == clang # 1) llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. # 2) llvm15 in FreeBSD miscompiles virtualbox 6.1 causing errors: PR#270189. diff --git a/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp b/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp deleted file mode 100644 --- a/emulators/virtualbox-ose/files/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp +++ /dev/null @@ -1,14 +0,0 @@ ---- src/VBox/Devices/PC/DevFwCommon.cpp.orig -+++ src/VBox/Devices/PC/DevFwCommon.cpp -@@ -40,6 +40,11 @@ - #include "VBoxDD2.h" - #include "DevFwCommon.h" - -+static inline void * -+mempcpy(void *__restrict dst, const void *__restrict src, size_t len) -+{ -+ return ((char *)memcpy(dst, src, len) + len); -+} - - /********************************************************************************************************************************* - * Defined Constants And Macros * diff --git a/emulators/wine-proton/Makefile b/emulators/wine-proton/Makefile --- a/emulators/wine-proton/Makefile +++ b/emulators/wine-proton/Makefile @@ -11,7 +11,6 @@ LICENSE_COMB= dual LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_12=requires F_ADD_SEALS ONLY_FOR_ARCHS= amd64 i386 BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \ diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile --- a/finance/ledger/Makefile +++ b/finance/ledger/Makefile @@ -11,8 +11,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md -BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: ibledger.so.3: undefined reference to boost::match_results - BUILD_DEPENDS= utf8cpp>=0:devel/utf8cpp LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/french/aster/Makefile b/french/aster/Makefile --- a/french/aster/Makefile +++ b/french/aster/Makefile @@ -80,10 +80,6 @@ .include "${.CURDIR}/../../french/aster/bsd.aster.mk" .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068 -BROKEN= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system -.endif - .if ${ARCH} == "i386" FLAGARCH= -DP_LINUX -DLINUX .else diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile --- a/ftp/axel/Makefile +++ b/ftp/axel/Makefile @@ -21,11 +21,7 @@ GNU_CONFIGURE= yes -.if exists(/usr/libdata/pkgconfig/openssl.pc) CONFIGURE_ARGS= --with-ssl=openssl -.else -CONFIGURE_ARGS= --without-ssl # no easy workaround -.endif PLIST_FILES= bin/axel \ man/man1/axel.1.gz diff --git a/ftp/freebsd-ftpd/Makefile b/ftp/freebsd-ftpd/Makefile --- a/ftp/freebsd-ftpd/Makefile +++ b/ftp/freebsd-ftpd/Makefile @@ -17,7 +17,8 @@ MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE} MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \ BINDIR=${PREFIX}/libexec \ - MANDIR=${PREFIX}/man/man + MANDIR=${PREFIX}/man/man \ + MK_WERROR=no OPTIONS_DEFINE= IPV6 LIBBLACKLIST OPTIONS_DEFAULT= IPV6 LIBBLACKLIST @@ -25,12 +26,4 @@ LIBBLACKLIST_DESC= libblacklist(3) support for rlogind(8) and rshd(8) LIBBLACKLIST_MAKE_ARGS= USE_LIBBLACKLIST=yes -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134 -MAKE_ENV+= MK_WERROR=no -.else -MAKE_ENV+= NO_WERROR=1 -.endif - .include diff --git a/games/adom/Makefile b/games/adom/Makefile --- a/games/adom/Makefile +++ b/games/adom/Makefile @@ -13,6 +13,8 @@ LICENSE_FILE= ${WRKSRC}/docs/readme1st.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror +LIB_DEPENDS+= libncursesw.so.8:misc/compat12x + NO_CDROM= Copy of CD must be sent to author ONLY_FOR_ARCHS= amd64 i386 @@ -31,10 +33,6 @@ ARCH_BITS= 32 .endif -.if ${OSVERSION} >= 1300078 -LIB_DEPENDS+= libncursesw.so.8:misc/compat12x -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/adom ${STAGEDIR}${PREFIX}/bin diff --git a/games/blinkensisters/Makefile b/games/blinkensisters/Makefile --- a/games/blinkensisters/Makefile +++ b/games/blinkensisters/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/DOC/LICENSE -BROKEN_sparc64= does not compile on sparc64 - # actually, old gcc fails in theora.h USES= cmake:insource compiler:c++11-lang localbase perl5 sdl USE_CXXSTD= c++14 diff --git a/games/bloodfrontier/Makefile b/games/bloodfrontier/Makefile --- a/games/bloodfrontier/Makefile +++ b/games/bloodfrontier/Makefile @@ -13,7 +13,6 @@ BROKEN_powerpc= fails to compile BROKEN_powerpc64= fails to compile: tools.h: incompatible types in assignment -BROKEN_sparc64= fails to compile USES= tar:bzip2 gmake USE_CXXSTD= c++14 diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile --- a/games/bsdgames/Makefile +++ b/games/bsdgames/Makefile @@ -25,12 +25,6 @@ INFO= wump INFO_PATH= share/games -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134 -MAKE_ARGS+= NO_WERROR=yes -.endif - pre-install: .for d in atc larn quiz.db boggle @${MKDIR} ${STAGEDIR}${PREFIX}/share/games/$d @@ -49,4 +43,4 @@ @${TOUCH} ${STAGEDIR}/var/games/atc_score @${FIND} ${STAGEDIR}/var/games -type f -exec ${MV} {} {}.sample \; -.include +.include diff --git a/games/chessx/Makefile b/games/chessx/Makefile --- a/games/chessx/Makefile +++ b/games/chessx/Makefile @@ -42,10 +42,4 @@ post-configure: ( cd ${BUILD_WRKSRC} && ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro ) -# the FIND command works around a bug in FreeBSD 12.4 strip(1) which -# leaves junk files when attempting to strip a file of unrecognised format. -post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chessx - ${FIND} ${STAGEDIR}${PREFIX} -name 'ecp.????????' -delete - .include diff --git a/games/el/Makefile b/games/el/Makefile --- a/games/el/Makefile +++ b/games/el/Makefile @@ -8,8 +8,6 @@ COMMENT= Eternal Lands is a free 3D MMORPG WWW= https://www.eternal-lands.com/ -BROKEN_sparc64= fails to build on sparc64 - BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libpng.so:graphics/png \ libvorbis.so:audio/libvorbis \ diff --git a/games/fishsupper/Makefile b/games/fishsupper/Makefile --- a/games/fishsupper/Makefile +++ b/games/fishsupper/Makefile @@ -13,8 +13,6 @@ BUILD_DEPENDS= ${LOCALBASE}/include/boost/bind.hpp:devel/boost-libs -BROKEN_FreeBSD_12_powerpc64= fails to compile: Log.h: expected initializer before '<' token - GNU_CONFIGURE= yes USES= gl gmake localbase:ldflags sdl USE_SDL= sdl image mixer diff --git a/games/freeminer/Makefile b/games/freeminer/Makefile --- a/games/freeminer/Makefile +++ b/games/freeminer/Makefile @@ -12,7 +12,6 @@ LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING # don't remove space BROKEN_armv7= fails to configure: Looking for include file endian.h - not found -BROKEN_FreeBSD_12_powerpc64= fails to compile: freeminer-0.4.10.4/src/util/lock.h:200:31: error: cannot convert 'const shared_map*' to 'locker* LIB_DEPENDS= libsqlite3.so:databases/sqlite3 diff --git a/games/jaggedalliance2/Makefile b/games/jaggedalliance2/Makefile --- a/games/jaggedalliance2/Makefile +++ b/games/jaggedalliance2/Makefile @@ -16,7 +16,7 @@ auto-accept # Ignore this if you feel adventurous -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64le ONLY_FOR_ARCHS_REASON= requires little endian environment BUILD_DEPENDS= string_theory>=3.1:devel/string_theory \ diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile --- a/games/lgeneral/Makefile +++ b/games/lgeneral/Makefile @@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc= does not install -BROKEN_sparc64= does not install USES= gmake localbase sdl USE_CSTD= gnu89 diff --git a/games/linux-steam-utils/Makefile b/games/linux-steam-utils/Makefile --- a/games/linux-steam-utils/Makefile +++ b/games/linux-steam-utils/Makefile @@ -10,7 +10,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_12=not supported ONLY_FOR_ARCHS= amd64 RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ diff --git a/games/moonlight-qt/Makefile b/games/moonlight-qt/Makefile --- a/games/moonlight-qt/Makefile +++ b/games/moonlight-qt/Makefile @@ -33,27 +33,13 @@ share/metainfo/com.moonlight_stream.Moonlight.appdata.xml \ share/icons/hicolor/scalable/apps/moonlight.svg \ -.include - -# fix ssl dependency lack on 12.x releases -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB} -lssl -lcrypto -.endif - post-patch: @${REINPLACE_CMD} -e 's@Exec=moonlight.*@Exec=${PORTNAME}${PKGNAMESUFFIX}@' \ ${WRKSRC}/app/deploy/linux/com.moonlight_stream.Moonlight.desktop @${REINPLACE_CMD} -e 's@^ TARGET = moonlight.*@ TARGET = ${PORTNAME}${PKGNAMESUFFIX}@' \ ${WRKSRC}/app/app.pro -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 - @${REINPLACE_CMD} -e 's@openssl @@' \ - ${WRKSRC}/app/app.pro - @${REINPLACE_CMD} -e '/openssl/ d' \ - ${WRKSRC}/moonlight-common-c/moonlight-common-c.pro -.endif - post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX} -.include +.include diff --git a/games/openglad/Makefile b/games/openglad/Makefile --- a/games/openglad/Makefile +++ b/games/openglad/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -NOT_FOR_ARCHS= sparc64 - USES= gmake localbase:ldflags sdl USE_CXXSTD= c++14 USE_SDL= sdl mixer diff --git a/games/openrct2/Makefile b/games/openrct2/Makefile --- a/games/openrct2/Makefile +++ b/games/openrct2/Makefile @@ -19,7 +19,7 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/licence.txt -NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= Only for little-endian architectures BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json diff --git a/games/pentobi/Makefile b/games/pentobi/Makefile --- a/games/pentobi/Makefile +++ b/games/pentobi/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE.md -BROKEN_FreeBSD_12= does not build: no member named 'test' in 'std::__1::atomic_flag' - BUILD_DEPENDS= itstool:textproc/itstool \ xsltproc:textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl diff --git a/games/quetoo/Makefile b/games/quetoo/Makefile --- a/games/quetoo/Makefile +++ b/games/quetoo/Makefile @@ -76,10 +76,6 @@ CONFIGURE_ARGS+= --with-games='${Q2GAMES}' -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 -.endif - post-patch: .SILENT ${REINPLACE_CMD} -E 's,^(eval PKGDATADIR=).*$$,\1"${Q2DIR}", ; \ 19752s,sdl-config,${SDL_CONFIG}, ; \ diff --git a/games/redeclipse/Makefile b/games/redeclipse/Makefile --- a/games/redeclipse/Makefile +++ b/games/redeclipse/Makefile @@ -13,8 +13,6 @@ CONFLICTS_INSTALL=redeclipse16 -BROKEN_sparc64= does not build on sparc64 - RUN_DEPENDS= redeclipse-data>=${PORTVERSION}:games/redeclipse-data USE_GITHUB= yes diff --git a/games/redeclipse16/Makefile b/games/redeclipse16/Makefile --- a/games/redeclipse16/Makefile +++ b/games/redeclipse16/Makefile @@ -14,8 +14,6 @@ CONFLICTS_INSTALL=redeclipse -BROKEN_sparc64= does not build on sparc64 - RUN_DEPENDS= redeclipse-data16>=${PORTVERSION}:games/redeclipse-data16 USE_GITHUB= yes diff --git a/games/regoth/Makefile b/games/regoth/Makefile --- a/games/regoth/Makefile +++ b/games/regoth/Makefile @@ -10,7 +10,6 @@ LICENSE= GPLv3 -BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/include/math.h:251:8: error: conflicting declaration of C function 'double pow(double, double)' BROKEN_FreeBSD_13_powerpc64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? BROKEN_riscv64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? diff --git a/games/retroarch/Makefile b/games/retroarch/Makefile --- a/games/retroarch/Makefile +++ b/games/retroarch/Makefile @@ -41,7 +41,6 @@ OPTIONS_DEFAULT=FFMPEG OSS SDL OPENGL OPENAL V4L FREETYPE UDEV QT X11 OPTIONS_DEFAULT_amd64= WAYLAND OPTIONS_DEFAULT_i386= WAYLAND -OPTIONS_EXCLUDE_FreeBSD_12= WAYLAND # requires memfd_create() FFMPEG_DESC= On-the-fly recording of gameplay with libavcodec WAYLAND_DESC= Wayland display support UDEV_DESC= udev device hotplug support diff --git a/games/rlvm/Makefile b/games/rlvm/Makefile --- a/games/rlvm/Makefile +++ b/games/rlvm/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv2 GPLv3 MIT LICENSE_COMB= multi -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 \ utf8cpp>=4.0.3:devel/utf8cpp LIB_DEPENDS= libsndfile.so:audio/libsndfile \ diff --git a/games/sdb/Makefile b/games/sdb/Makefile --- a/games/sdb/Makefile +++ b/games/sdb/Makefile @@ -41,7 +41,7 @@ .include -.if ${ARCH} != "powerpc" && ${ARCH} != "powerpc64" && ${ARCH} != "sparc64" +.if ${ARCH} != "powerpc" && ${ARCH} != "powerpc64" PLIST_SUB+= MODEL_SUFFIX="md2" .else # big-endian requires different set of models diff --git a/games/sdlpop/Makefile b/games/sdlpop/Makefile --- a/games/sdlpop/Makefile +++ b/games/sdlpop/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../COPYING -NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= SDLPoP-1.18.1/src/types.h:54:2: This program is not (yet) prepared for big endian CPUs, please contact the author. USES= cmake localbase:ldflags sdl diff --git a/games/spacejunk/Makefile b/games/spacejunk/Makefile --- a/games/spacejunk/Makefile +++ b/games/spacejunk/Makefile @@ -12,7 +12,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= Fails to compile: error: _compile_time_assert__ declared as an array with a negative size -BROKEN_sparc64= Doesn't compile on sparc64 USES= dos2unix localbase sdl USE_CXXSTD= c++98 diff --git a/games/springlobby/Makefile b/games/springlobby/Makefile --- a/games/springlobby/Makefile +++ b/games/springlobby/Makefile @@ -14,7 +14,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -IGNORE_FreeBSD_12= not supported by spring engine ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= spring engine only supports amd64 diff --git a/games/wolfpack/Makefile b/games/wolfpack/Makefile --- a/games/wolfpack/Makefile +++ b/games/wolfpack/Makefile @@ -25,15 +25,9 @@ USE_RC_SUBR= wolfpack SUB_FILES+= pkg-message -.include - post-patch: ${REINPLACE_CMD} -e '/^econfig/,/^$$/s|/empire|/${PORTNAME}|' \ ${WRKSRC}/Make.mk ${WRKSRC}/sources.mk -.if ${ARCH} == "sparc64" - ${REINPLACE_CMD} -e '/ucontext\.h/ { h; s|ucontext|sys/types|; G; }' \ - ${WRKSRC}/src/lib/lwp/lwpint.h -.endif post-install: ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DATADIR} @@ -43,4 +37,4 @@ ${STAGEDIR}${PREFIX}/lib/wolfpack/pconfig > \ ${STAGEDIR}${ETCDIR}/econfig.sample -.include +.include diff --git a/graphics/Hermes/Makefile b/graphics/Hermes/Makefile --- a/graphics/Hermes/Makefile +++ b/graphics/Hermes/Makefile @@ -12,8 +12,6 @@ LICENSE= LGPL20 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= interchanges red and blue colour channels in images - GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USES= gmake libtool tar:bzip2 diff --git a/graphics/aseprite/Makefile b/graphics/aseprite/Makefile --- a/graphics/aseprite/Makefile +++ b/graphics/aseprite/Makefile @@ -15,7 +15,6 @@ BROKEN_armv6= fails to compile: undefined reference to __va_copy BROKEN_armv7= fails to compile: undefined reference to __va_copy -BROKEN_sparc64= fails to compile: vsnprintf is not a member of std EXTRACT_DEPENDS= ${NONEXISTENT}:x11/pixman:extract LIB_DEPENDS= liballeg.so:devel/allegro \ diff --git a/graphics/cbonsai/Makefile b/graphics/cbonsai/Makefile --- a/graphics/cbonsai/Makefile +++ b/graphics/cbonsai/Makefile @@ -10,7 +10,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= ld: error: undefined symbol: win_wch BROKEN_FreeBSD_14= ld: error: undefined symbol: del_panel USES= compiler:c11 ncurses diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile --- a/graphics/darktable/Makefile +++ b/graphics/darktable/Makefile @@ -45,6 +45,7 @@ USES= cmake compiler:gcc-c++11-lib desktop-file-utils gl gnome jpeg \ llvm:15,build lua:54 perl5 pkgconfig sdl shebangfix sqlite \ tar:xz xorg +USE_GCC= yes USE_GL= gl USE_GNOME= cairo gtk30 intltool librsvg2 libxml2 USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME} @@ -96,32 +97,6 @@ .include -.if ${OPSYS}_${OSREL:R} == FreeBSD_12 -# Darktable fails to compile with GCC 13+ on FreeBSD 12.x with the following -# error: -# -# In file included from /usr/include/c++/v1/__functional/weak_result_type.h:16, -# from /usr/include/c++/v1/__functional/invoke.h:14, -# from /usr/include/c++/v1/__functional_base:15, -# from /usr/include/c++/v1/string:520, -# from .../work/darktable-4.4.2/src/external/rawspeed/src/librawspeed/common/ChecksumFile.h:23, -# from .../work/darktable-4.4.2/src/external/rawspeed/src/librawspeed/common/ChecksumFile.cpp:21: -# /usr/include/c++/v1/type_traits:1770:8: error: expected identifier before '__is_convertible' -# 1770 | struct __is_convertible -# | ^~~~~~~~~~~~~~~~ -# -# This seems to be an incompatibility between GCC 13+ and libcxx provided with -# FreeBSD 12.x. The workarounbd is to force the use of GCC 12 on this version -# of FreeBSD. -# -# See: -# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273397 -# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273681 -USE_GCC= 12 -.else -USE_GCC= yes -.endif - .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le CMAKE_ARGS+= -DUSE_OPENCL:BOOL=OFF CXXFLAGS+= -DGDK_DISABLE_DEPRECATED diff --git a/graphics/drm-510-kmod/Makefile b/graphics/drm-510-kmod/Makefile --- a/graphics/drm-510-kmod/Makefile +++ b/graphics/drm-510-kmod/Makefile @@ -26,9 +26,6 @@ .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301000 -IGNORE= not supported on older than 13.1, no kernel support -.endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) .endif diff --git a/graphics/drm-kmod/Makefile b/graphics/drm-kmod/Makefile --- a/graphics/drm-kmod/Makefile +++ b/graphics/drm-kmod/Makefile @@ -16,10 +16,7 @@ .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) .else -. if ${OSVERSION} < 1300000 -RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-fbsd12.0-kmod -_DRM_ARCHS= amd64 i386 -. elif ${OSVERSION} >= 1301000 && ${OSVERSION} < 1400097 +. if ${OSVERSION} >= 1301000 && ${OSVERSION} < 1400097 RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-510-kmod _DRM_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le . elif ${OSVERSION} >= 1400097 && (${ARCH} == i386 || ${ARCH} == aarch64) diff --git a/graphics/figurine/Makefile b/graphics/figurine/Makefile --- a/graphics/figurine/Makefile +++ b/graphics/figurine/Makefile @@ -28,9 +28,6 @@ PORTDOCS= * -# Optimizations produce bad assembly code on sparc64 -CFLAGS_sparc64= -O0 - post-patch: @${REINPLACE_CMD} -e 's|datadir = @datadir@|datadir = @datadir@/doc|' \ ${WRKSRC}/Makefile.in \ diff --git a/graphics/gpu-firmware-amd-kmod/Makefile b/graphics/gpu-firmware-amd-kmod/Makefile --- a/graphics/gpu-firmware-amd-kmod/Makefile +++ b/graphics/gpu-firmware-amd-kmod/Makefile @@ -58,13 +58,6 @@ vangogh \ yellow_carp -cyan_skillfish2_IGNORE_FreeBSD_12= "Not supported on < 13.1" -dimgrey_cavefish_IGNORE_FreeBSD_12= "Not supported on < 13.1" -green_sardine_IGNORE_FreeBSD_12= "Not supported on < 13.1" -sienna_cichlid_IGNORE_FreeBSD_12= "Not supported on < 13.1" -navy_flounder_IGNORE_FreeBSD_12= "Not supported on < 13.1" -vangogh_IGNORE_FreeBSD_12= "Not supported on < 13.1" - USES= kmod uidfix USE_GITHUB= yes diff --git a/graphics/gpu-firmware-kmod/Makefile b/graphics/gpu-firmware-kmod/Makefile --- a/graphics/gpu-firmware-kmod/Makefile +++ b/graphics/gpu-firmware-kmod/Makefile @@ -51,7 +51,13 @@ gpu-firmware-radeon-kmod-sumo2>0:graphics/gpu-firmware-radeon-kmod@sumo2 \ gpu-firmware-radeon-kmod-tahiti>0:graphics/gpu-firmware-radeon-kmod@tahiti \ gpu-firmware-radeon-kmod-turks>0:graphics/gpu-firmware-radeon-kmod@turks \ - gpu-firmware-radeon-kmod-verde>0:graphics/gpu-firmware-radeon-kmod@verde + gpu-firmware-radeon-kmod-verde>0:graphics/gpu-firmware-radeon-kmod@verde \ + gpu-firmware-amd-kmod-cyan-skillfish2>0:graphics/gpu-firmware-amd-kmod@cyan_skillfish2 \ + gpu-firmware-amd-kmod-dimgrey-cavefish>0:graphics/gpu-firmware-amd-kmod@dimgrey_cavefish \ + gpu-firmware-amd-kmod-green-sardine>0:graphics/gpu-firmware-amd-kmod@green_sardine \ + gpu-firmware-amd-kmod-navy-flounder>0:graphics/gpu-firmware-amd-kmod@navy_flounder \ + gpu-firmware-amd-kmod-sienna-cichlid>0:graphics/gpu-firmware-amd-kmod@sienna_cichlid \ + gpu-firmware-amd-kmod-vangogh>0:graphics/gpu-firmware-amd-kmod@vangogh .include @@ -105,14 +111,6 @@ gpu-firmware-amd-kmod-vegam>0:graphics/gpu-firmware-amd-kmod@vegam \ gpu-firmware-amd-kmod-verde>0:graphics/gpu-firmware-amd-kmod@verde \ gpu-firmware-amd-kmod-yellow-carp>0:graphics/gpu-firmware-amd-kmod@yellow_carp -.if ${OSVERSION} >= 1301000 -RUN_DEPENDS+= gpu-firmware-amd-kmod-cyan-skillfish2>0:graphics/gpu-firmware-amd-kmod@cyan_skillfish2 \ - gpu-firmware-amd-kmod-dimgrey-cavefish>0:graphics/gpu-firmware-amd-kmod@dimgrey_cavefish \ - gpu-firmware-amd-kmod-green-sardine>0:graphics/gpu-firmware-amd-kmod@green_sardine \ - gpu-firmware-amd-kmod-navy-flounder>0:graphics/gpu-firmware-amd-kmod@navy_flounder \ - gpu-firmware-amd-kmod-sienna-cichlid>0:graphics/gpu-firmware-amd-kmod@sienna_cichlid \ - gpu-firmware-amd-kmod-vangogh>0:graphics/gpu-firmware-amd-kmod@vangogh -.endif .endif .include diff --git a/graphics/igt-gpu-tools/Makefile b/graphics/igt-gpu-tools/Makefile --- a/graphics/igt-gpu-tools/Makefile +++ b/graphics/igt-gpu-tools/Makefile @@ -9,8 +9,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING -IGNORE_FreeBSD_12= unsupported on FreeBSD versions < 13.1 - BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR} LIB_DEPENDS= libdrm.so:graphics/libdrm \ libdw.so:devel/elfutils \ diff --git a/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake b/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake deleted file mode 100644 --- a/graphics/krita/files/patch-cmake_modules_xsimd_xsimdMacros.cmake +++ /dev/null @@ -1,15 +0,0 @@ -Avoid detecting binutils, especially for FreeBSD 12.x where the base version -gets detected and rejected for being too old. This can be safely removed -after 12.x EOL. - ---- cmake/modules/xsimd/xsimdMacros.cmake.orig 2023-10-05 08:16:01 UTC -+++ cmake/modules/xsimd/xsimdMacros.cmake -@@ -60,7 +60,7 @@ macro(xsimd_check_assembler) - endmacro() - - macro(xsimd_check_assembler) -- execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-prog-name=as OUTPUT_VARIABLE _as RESULT_VARIABLE _as_result) -+ set(_as_result 1) - mark_as_advanced(_as) - mark_as_advanced(_as_result) - if(_as_result) # error code is 0 == OK diff --git a/graphics/lux/Makefile b/graphics/lux/Makefile --- a/graphics/lux/Makefile +++ b/graphics/lux/Makefile @@ -41,7 +41,7 @@ AVX2_DESC= support AVX2 flavor AVX512_DESC= support AVX-512F flavor -SSE2_CXXFLAGS_OFF= ${${OSVERSION}>=1300000:?-march=i686:} +SSE2_CXXFLAGS_OFF= -march=i686 SSE2_CXXFLAGS= -march=pentium4 SSSE3_CMAKE_BOOL= FLV_SSSE3 SSE42_CMAKE_BOOL= FLV_SSE42 diff --git a/graphics/mozjpeg/Makefile b/graphics/mozjpeg/Makefile --- a/graphics/mozjpeg/Makefile +++ b/graphics/mozjpeg/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD3CLAUSE BROKEN_mips64= does not configure: error: SIMD support cannot be enabled -BROKEN_sparc64= does not configure: error: SIMD support cannot be enabled BUILD_DEPENDS= nasm>=2.10,1:devel/nasm LIB_DEPENDS= libpng.so:graphics/png diff --git a/graphics/nvidia-drm-kmod/Makefile b/graphics/nvidia-drm-kmod/Makefile --- a/graphics/nvidia-drm-kmod/Makefile +++ b/graphics/nvidia-drm-kmod/Makefile @@ -8,18 +8,13 @@ USES= metaport +RUN_DEPENDS+= ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod + .include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" .include -# Only supported on FreeBSD 13.1+ .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) -.else -. if ${OSVERSION} >= 1301000 -RUN_DEPENDS+= ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod -. else -IGNORE= not supported for this FreeBSD version -. endif .endif .include diff --git a/graphics/ogre3d/Makefile b/graphics/ogre3d/Makefile --- a/graphics/ogre3d/Makefile +++ b/graphics/ogre3d/Makefile @@ -11,8 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/local/bin/ld: /usr/lib/crt1.o:(.got+0x60): undefined reference to 'main' - LIB_DEPENDS= libzzip.so:devel/zziplib \ libfreetype.so:print/freetype2 @@ -75,7 +73,7 @@ post-patch: @${REINPLACE_CMD} -e '\ - s,defined(__x86_64__),& || defined(__sparc64__) || defined(__amd64__),' \ + s,defined(__x86_64__),& || defined(__amd64__),' \ ${WRKSRC}/OgreMain/include/OgrePlatform.h post-patch-PYTHON-on: diff --git a/graphics/ogre3d19/Makefile b/graphics/ogre3d19/Makefile --- a/graphics/ogre3d19/Makefile +++ b/graphics/ogre3d19/Makefile @@ -48,7 +48,7 @@ @${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX.*\);$$|\1|g' \ ${WRKSRC}/OgreMain/include/Threading/OgreThreadDefinesBoost.h @${REINPLACE_CMD} -e '\ - s,defined(__x86_64__),& || defined(__powerpc__) || defined(__sparc64__) || defined(__amd64__),' \ + s,defined(__x86_64__),& || defined(__powerpc__) || defined(__amd64__),' \ ${WRKSRC}/OgreMain/include/OgrePlatform.h post-patch-BOOST-off: diff --git a/graphics/opencollada/Makefile b/graphics/opencollada/Makefile --- a/graphics/opencollada/Makefile +++ b/graphics/opencollada/Makefile @@ -10,8 +10,6 @@ LICENSE= MIT -BROKEN_sparc64= cannot build: runaway process - LIB_DEPENDS= libpcre.so:devel/pcre USES= cmake compiler:c++11-lib dos2unix iconv localbase gnome pkgconfig diff --git a/graphics/openshadinglanguage/Makefile b/graphics/openshadinglanguage/Makefile --- a/graphics/openshadinglanguage/Makefile +++ b/graphics/openshadinglanguage/Makefile @@ -15,7 +15,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md -BROKEN_FreeBSD_12_powerpc64= fails to compile: llvm_ops.cpp:101:10: fatal error: 'iostream' file not found BROKEN_riscv64= fails to build: /usr/include/c++/v1/__threading_support:135:3: Unsupported architecture LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ diff --git a/graphics/pixie/Makefile b/graphics/pixie/Makefile --- a/graphics/pixie/Makefile +++ b/graphics/pixie/Makefile @@ -16,7 +16,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_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 \ libImath.so:math/Imath \ diff --git a/graphics/qgis-ltr/Makefile b/graphics/qgis-ltr/Makefile --- a/graphics/qgis-ltr/Makefile +++ b/graphics/qgis-ltr/Makefile @@ -157,13 +157,6 @@ .include -# QGIS requires flex >= 2.5.6, see -# https://github.com/qgis/QGIS/blob/fb0f334b06e0828e5695ffcaa7c7eb82d6516cb0/INSTALL.md -.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1300501) -BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex -CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex -.endif - pre-patch: # Only PostgreSQL Client headers, not Server @${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \ diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile --- a/graphics/qgis/Makefile +++ b/graphics/qgis/Makefile @@ -160,13 +160,6 @@ .include -# QGIS requires flex >= 2.5.6, see -# https://github.com/qgis/QGIS/blob/fb0f334b06e0828e5695ffcaa7c7eb82d6516cb0/INSTALL.md -.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1300501) -BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex -CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex -.endif - pre-patch: # Only PostgreSQL Client headers, not Server @${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \ diff --git a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp --- a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp +++ b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp @@ -1,10 +1,10 @@ ---- src/client/qwaylandshmbackingstore.cpp.orig 2022-12-21 21:06:50 UTC +--- src/client/qwaylandshmbackingstore.cpp.orig 2023-10-04 20:59:02 UTC +++ src/client/qwaylandshmbackingstore.cpp @@ -82,6 +82,8 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay * fd = syscall(SYS_memfd_create, "wayland-shm", MFD_CLOEXEC | MFD_ALLOW_SEALING); if (fd >= 0) fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); -+#elif defined(__FreeBSD__) && __FreeBSD_version >= 1300048 ++#elif defined(__FreeBSD__) + fd = memfd_create("wayland-shm", MFD_CLOEXEC); #endif diff --git a/graphics/tesseract-data/Makefile b/graphics/tesseract-data/Makefile --- a/graphics/tesseract-data/Makefile +++ b/graphics/tesseract-data/Makefile @@ -18,8 +18,6 @@ DATADIR= ${PREFIX}/share/tessdata PORTDATA= * -BROKEN_sparc64= Fails to install: runaway process - do-install: @${MKDIR} ${STAGEDIR}${DATADIR} .for l in ${PORTDATA} diff --git a/graphics/vulkan-headers/Makefile b/graphics/vulkan-headers/Makefile --- a/graphics/vulkan-headers/Makefile +++ b/graphics/vulkan-headers/Makefile @@ -20,11 +20,4 @@ # genvk.py requires docgenerator.py from Vulkan-Docs, so drop useless shebang @${FIND} ${WRKSRC}/registry -name \*.py -exec ${REINPLACE_CMD} -i '' '/^#!/d' {} + -post-patch: -# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31 - @if [ -L /usr/include/sched.h ]; then \ - ${REINPLACE_CMD} $$'/^namespace/i\\\n#undef major\\\n#undef minor\\\n\\\n' \ - ${WRKSRC}/include/vulkan/vulkan_structs.hpp; \ - fi - .include diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile --- a/japanese/mozc-server/Makefile +++ b/japanese/mozc-server/Makefile @@ -14,10 +14,8 @@ libzinnia.so:japanese/zinnia RUN_DEPENDS= xdg-open:devel/xdg-utils -BROKEN_FreeBSD_12_powerpc64= fails to install: gyp: Call to 'which clang' returned exit status 1 while in client/client.gyp BROKEN_FreeBSD_13_powerpc64= fails to build: ERROR: ninja -v -C out_linux/Release mozc_server: Error code 1 BROKEN_powerpc= fails to compile: segfault -BROKEN_sparc64= fails to compile: segfault USE_GITHUB= yes GH_ACCOUNT= hrs-allbsd diff --git a/java/netty/Makefile b/java/netty/Makefile --- a/java/netty/Makefile +++ b/java/netty/Makefile @@ -49,8 +49,6 @@ NETTY_ARCH= ppc_32 .elif ${ARCH:Mpowerpc64*} NETTY_ARCH= ppc_64 -.elif ${ARCH} == "sparc64" -NETTY_ARCH= sparc_64 .else # Default to ${ARCH} NETTY_ARCH= ${ARCH} diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile --- a/java/openjdk11/Makefile +++ b/java/openjdk11/Makefile @@ -172,9 +172,6 @@ .if ${ARCH} != amd64 CONFIGURE_ARGS+= --enable-aot=no .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if empty(ICONV_LIB) ICONV_CFLAGS= -DLIBICONV_PLUG diff --git a/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk11/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile --- a/java/openjdk17/Makefile +++ b/java/openjdk17/Makefile @@ -158,9 +158,6 @@ .if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) CONFIGURE_ARGS+= --disable-dtrace .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk17/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile --- a/java/openjdk18/Makefile +++ b/java/openjdk18/Makefile @@ -168,9 +168,6 @@ .if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) CONFIGURE_ARGS+= --disable-dtrace .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk18/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile --- a/java/openjdk19/Makefile +++ b/java/openjdk19/Makefile @@ -158,9 +158,6 @@ .if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) CONFIGURE_ARGS+= --disable-dtrace .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk19/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/java/openjdk20/Makefile b/java/openjdk20/Makefile --- a/java/openjdk20/Makefile +++ b/java/openjdk20/Makefile @@ -157,9 +157,6 @@ .if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) CONFIGURE_ARGS+= --disable-dtrace .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk20/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/java/openjdk21/Makefile b/java/openjdk21/Makefile --- a/java/openjdk21/Makefile +++ b/java/openjdk21/Makefile @@ -157,9 +157,6 @@ .if ${ARCH} == aarch64 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv1) CONFIGURE_ARGS+= --disable-dtrace .endif -.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp b/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp deleted file mode 100644 --- a/java/openjdk21/files/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/hotspot/cpu/ppc/vm_version_ppc.hpp.orig 2019-10-16 11:31:09.000000000 -0700 -+++ src/hotspot/cpu/ppc/vm_version_ppc.hpp 2019-10-23 12:54:06.972903000 -0700 -@@ -108,7 +108,7 @@ - static bool has_lqarx() { return (_features & lqarx_m) != 0; } - static bool has_vcipher() { return (_features & vcipher_m) != 0; } - static bool has_vpmsumb() { return (_features & vpmsumb_m) != 0; } -- static bool has_mfdscr() { return (_features & mfdscr_m) != 0; } -+ static bool has_mfdscr() { return false; } - static bool has_vsx() { return (_features & vsx_m) != 0; } - static bool has_ldbrx() { return (_features & ldbrx_m) != 0; } - static bool has_stdbrx() { return (_features & stdbrx_m) != 0; } diff --git a/lang/angelscript/Makefile b/lang/angelscript/Makefile --- a/lang/angelscript/Makefile +++ b/lang/angelscript/Makefile @@ -10,8 +10,6 @@ LICENSE= ZLIB -BROKEN_sparc64= Does not build: invokes x86 asm - USES= alias compiler:c11 dos2unix gmake zip USE_LDCONFIG= yes diff --git a/lang/cling/Makefile b/lang/cling/Makefile --- a/lang/cling/Makefile +++ b/lang/cling/Makefile @@ -19,7 +19,6 @@ BROKEN_armv6= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod' BROKEN_armv7= fails to compile: AArch64TargetMachine.cpp: relocation truncated to fit: R_ARM_CALL against symbol '__aeabi_uldivmod' BROKEN_riscv64= fails to build: CMake Error at cmake/config-ix.cmake:407: Unknown architecture riscv64 -BROKEN_FreeBSD_12_powerpc64= fails to build: src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: could not convert '((llvm::orc::remote::OrcRemoteTargetClient*)this)->callB(Src, Size)' LIB_DEPENDS= libgtest.so:devel/googletest \ libz3.so:math/z3 diff --git a/lang/clisp/Makefile b/lang/clisp/Makefile --- a/lang/clisp/Makefile +++ b/lang/clisp/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/GNU-GPL -BROKEN_sparc64= Does not compile - LIB_DEPENDS= libffcall.so:devel/libffcall \ libreadline.so:devel/readline \ libsigsegv.so:devel/libsigsegv diff --git a/lang/emilua/Makefile b/lang/emilua/Makefile --- a/lang/emilua/Makefile +++ b/lang/emilua/Makefile @@ -10,7 +10,6 @@ LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt -IGNORE_FreeBSD_12= not supported by Emilua ('memfd_create' was not declared in this scope) IGNORE_FreeBSD_13= not supported by Emilua ('clearenv' was not declared in this scope) BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor \ diff --git a/lang/erlang-runtime21/Makefile b/lang/erlang-runtime21/Makefile --- a/lang/erlang-runtime21/Makefile +++ b/lang/erlang-runtime21/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= autoreconf:build,2.69 compiler cpe gmake ncurses perl5 USE_GITHUB= nodefault GH_ACCOUNT= erlang:otp,corba diff --git a/lang/erlang-runtime22/Makefile b/lang/erlang-runtime22/Makefile --- a/lang/erlang-runtime22/Makefile +++ b/lang/erlang-runtime22/Makefile @@ -13,8 +13,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= autoreconf:build compiler cpe gmake ncurses perl5 USE_GITHUB= nodefault GH_ACCOUNT= erlang:otp,corba diff --git a/lang/erlang-runtime23/Makefile b/lang/erlang-runtime23/Makefile --- a/lang/erlang-runtime23/Makefile +++ b/lang/erlang-runtime23/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= autoreconf:build compiler cpe gmake ncurses perl5 USE_GITHUB= nodefault GH_ACCOUNT= erlang:otp,corba diff --git a/lang/erlang-runtime24/Makefile b/lang/erlang-runtime24/Makefile --- a/lang/erlang-runtime24/Makefile +++ b/lang/erlang-runtime24/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= compiler cpe gmake ncurses perl5 CPE_VENDOR= erlang CPE_PRODUCT= erlang/otp diff --git a/lang/erlang-runtime25/Makefile b/lang/erlang-runtime25/Makefile --- a/lang/erlang-runtime25/Makefile +++ b/lang/erlang-runtime25/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= compiler cpe gmake ncurses perl5 CPE_VENDOR= erlang CPE_PRODUCT= erlang/otp diff --git a/lang/erlang-runtime26/Makefile b/lang/erlang-runtime26/Makefile --- a/lang/erlang-runtime26/Makefile +++ b/lang/erlang-runtime26/Makefile @@ -11,8 +11,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= compiler cpe gmake ncurses perl5 CPE_VENDOR= erlang CPE_PRODUCT= erlang/otp diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -12,8 +12,6 @@ LICENSE= APACHE20 -BROKEN_sparc64= Fails to build: error: fp_except undeclared - USES= compiler cpe gmake ncurses perl5 CPE_VENDOR= erlang CPE_PRODUCT= erlang/otp diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile --- a/lang/gauche/Makefile +++ b/lang/gauche/Makefile @@ -72,9 +72,6 @@ .endif post-patch: -# required for sparc64, no-op elsewhere - @${REINPLACE_CMD} -e \ - '/^VPATH = /s,$$,/src,' ${WRKSRC}/gc/Makefile.in # unbreak "make test" by using the same workaround as for OSX (darwin), # apparently because we both use clang (XXX: what about gcc?) @${REINPLACE_CMD} -e \ diff --git a/lang/gcc10/Makefile b/lang/gcc10/Makefile --- a/lang/gcc10/Makefile +++ b/lang/gcc10/Makefile @@ -11,7 +11,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile --- a/lang/gcc11-devel/Makefile +++ b/lang/gcc11-devel/Makefile @@ -12,7 +12,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile --- a/lang/gcc11/Makefile +++ b/lang/gcc11/Makefile @@ -11,7 +11,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile --- a/lang/gcc12-devel/Makefile +++ b/lang/gcc12-devel/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc12/Makefile b/lang/gcc12/Makefile --- a/lang/gcc12/Makefile +++ b/lang/gcc12/Makefile @@ -12,7 +12,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile --- a/lang/gcc13-devel/Makefile +++ b/lang/gcc13-devel/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc13/Makefile b/lang/gcc13/Makefile --- a/lang/gcc13/Makefile +++ b/lang/gcc13/Makefile @@ -12,7 +12,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc14-devel/Makefile b/lang/gcc14-devel/Makefile --- a/lang/gcc14-devel/Makefile +++ b/lang/gcc14-devel/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gcc9/Makefile b/lang/gcc9/Makefile --- a/lang/gcc9/Makefile +++ b/lang/gcc9/Makefile @@ -15,7 +15,7 @@ DEPRECATED= Unsupported by upstream. Use GCC 10 or newer instead. EXPIRATION_DATE=2024-06-30 -ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ diff --git a/lang/gforth/Makefile b/lang/gforth/Makefile --- a/lang/gforth/Makefile +++ b/lang/gforth/Makefile @@ -47,7 +47,7 @@ WORDSIZE=64 .endif -.if ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == sparc64 +.if ${ARCH} == powerpc || ${ARCH} == powerpc64 BYTEORDER=b .else BYTEORDER=l diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -167,7 +167,7 @@ .endif # This version of ncurses is needed by bootstrap compiler -.if ${OSVERSION} > 1300078 && empty(PORT_OPTIONS:MBOOT) +.if empty(PORT_OPTIONS:MBOOT) BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libncursesw.so.8:misc/compat12x .endif diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile --- a/lang/gnustep-base/Makefile +++ b/lang/gnustep-base/Makefile @@ -14,8 +14,6 @@ LICENSE= GPLv3 LGPL3 LICENSE_COMB= multi -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 \ libcurl.so:ftp/curl \ libgcrypt.so:security/libgcrypt \ @@ -59,10 +57,6 @@ .include -.if ${OPSYS}_${OSREL:R} == FreeBSD_12 -LIB_DEPENDS+= libunwind.so:devel/libunwind -.endif - .if ${PORT_OPTIONS:MAVAHI} LIB_DEPENDS+= libavahi-client.so:net/avahi-app CONFIGURE_ARGS+= --with-zeroconf-api=avahi diff --git a/lang/go-devel/Makefile b/lang/go-devel/Makefile --- a/lang/go-devel/Makefile +++ b/lang/go-devel/Makefile @@ -77,10 +77,6 @@ .include -.if ${ARCH} == riscv64 && ${OSREL:R} < 13 -IGNORE= go/riscv64 requires FreeBSD 13 or later -.endif - post-extract: @[ -z "${GH_TAGNAME}" ] || \ ${ECHO_CMD} "devel ${DISTVERSION}-${GH_TAGNAME} ${OPSYS:tl}/${GOARCH_${ARCH}}" > ${WRKSRC}/VERSION diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile --- a/lang/lfortran/Makefile +++ b/lang/lfortran/Makefile @@ -32,9 +32,6 @@ WITH_LINKH WITH_LLVM WITH_STACKTRACE WITH_UNWIND USE_LDCONFIG= yes -CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}} -CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE - LLVM_VERSION= 15 # 16 is supported too OPTIONS_DEFINE= EXAMPLES # NB diff --git a/lang/libobjc2/Makefile b/lang/libobjc2/Makefile --- a/lang/libobjc2/Makefile +++ b/lang/libobjc2/Makefile @@ -9,8 +9,6 @@ LICENSE= MIT -BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly - USES= cmake compiler objc:compiler USE_GITHUB= yes diff --git a/lang/mecrisp-stellaris/Makefile b/lang/mecrisp-stellaris/Makefile --- a/lang/mecrisp-stellaris/Makefile +++ b/lang/mecrisp-stellaris/Makefile @@ -14,7 +14,6 @@ IGNORE_aarch64= fails to build with qemu-user-static: \ qemu-aarch64-static cannot execute armv7 binaries .endif -IGNORE_FreeBSD_12_aarch64= OS too old to run armv7 binaries on arm64, upgrade to FreeBSD 13 ONLY_FOR_ARCHS= aarch64 armv6 armv7 ONLY_FOR_ARCHS_REASON= written in ARM assembly diff --git a/lang/mlton/Makefile b/lang/mlton/Makefile --- a/lang/mlton/Makefile +++ b/lang/mlton/Makefile @@ -8,9 +8,7 @@ CATEGORIES= lang MASTER_SITES+= https://github.com/beyert/mlton-freebsd_bootstrap/raw/c7371c1/:bootstrap DISTFILES+= ${BOOTNAME}.i386-${OPSYS:tl}-13.txz:bootstrap \ - ${BOOTNAME}.amd64-${OPSYS:tl}-13.txz:bootstrap \ - ${BOOTNAME}.i386-${OPSYS:tl}-12.txz:bootstrap \ - ${BOOTNAME}.amd64-${OPSYS:tl}-12.txz:bootstrap + ${BOOTNAME}.amd64-${OPSYS:tl}-13.txz:bootstrap MAINTAINER= beyert@cs.ucr.edu COMMENT= Optimizing Standard ML compiler @@ -33,7 +31,7 @@ BOOTNAME= ${BOOTNAMEPREFIX}${PORTNAME}${BOOTNAMESUFFIX}-${BOOTVERSIONPREFIX}${BOOTVERSION}${BOOTVERSIONSUFFIX} BOOTVERSIONSUFFIX= BOOTVERSION= ${PORTVERSION} -BOOTOSMAJ= ${OSREL:R} +BOOTOSMAJ= 13 OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFAULT= MLTON NATIVE @@ -89,10 +87,6 @@ BOOT_WRKSRC= ${WRKSRC}/build BOOT_WRKTMP= ${WRKDIR}/mlton-bootstrap -.if ${PORT_OPTIONS:MNATIVE} && ${OSREL:R} >= 13 -BOOTOSMAJ= 13 -.endif - BOOT_DIST_NEW= ${PKGNAME}${DISTVERSIONSUFFIX}.${ARCH}-${OPSYS:tl}-${OSREL:R}-${HOST}${BOOT_SUFX} USE_GITHUB= yes @@ -103,7 +97,7 @@ BOOT_CMD= --xz BOOT_SUFX= .txz -RAM_SLOP_32= $$(${SYSCTL} "hw.physmem" | ${AWK} '{ values = values" "$$2 } END { print values; }' | ${AWK} '{ "freebsd-version -r" | getline ver; split(ver, xs, "\."); kernelOSMAJ = xs[1]; osj = ${BOOTOSMAJ}; physmem = $$1 / 1024 / 1024 / 1024; os = kernelOSMAJ; maxphysmem = physmem; if (physmem > 3.2) { maxphysmem = 3.2; }; ospcent = 0.70; if (osj < 13 && os != osj) { ospcent = 0.65; } else if (os >= 13) { if (physmem < 3.1) { ospcent = 0.83; } else { ospcent = 0.80; } }; targetmem = maxphysmem * ospcent; targetpcent = targetmem / physmem; print int((targetpcent + 0.005) * 100) / 100; }') +RAM_SLOP_32= $$(${SYSCTL} "hw.physmem" | ${AWK} '{ values = values" "$$2 } END { print values; }' | ${AWK} '{ physmem = $$1 / 1024 / 1024 / 1024; maxphysmem = physmem; if (physmem > 3.2) { maxphysmem = 3.2; }; ospcent = 0.70; if (physmem < 3.1) { ospcent = 0.83; } else { ospcent = 0.80; }; targetmem = maxphysmem * ospcent; targetpcent = targetmem / physmem; print int((targetpcent + 0.005) * 100) / 100; }') post-extract: @${MKDIR} ${BOOT_WRKSRC} diff --git a/lang/mlton/distinfo b/lang/mlton/distinfo --- a/lang/mlton/distinfo +++ b/lang/mlton/distinfo @@ -3,9 +3,5 @@ SIZE (mlton-20210816.i386-freebsd-13.txz) = 4417216 SHA256 (mlton-20210816.amd64-freebsd-13.txz) = 767ed2fe0e204cd59f9065c9ff96c885d50321f2004cff0a94e84db3e664dc8a SIZE (mlton-20210816.amd64-freebsd-13.txz) = 5530224 -SHA256 (mlton-20210816.i386-freebsd-12.txz) = a6d173463c36b2c79ba48c9d94c7857e842ca2c423a952623b7a251390f1d103 -SIZE (mlton-20210816.i386-freebsd-12.txz) = 4582828 -SHA256 (mlton-20210816.amd64-freebsd-12.txz) = d289134bd1371d0c4f090b2945a2fa87052d5e298b9612420dbbb6335440a763 -SIZE (mlton-20210816.amd64-freebsd-12.txz) = 5517216 SHA256 (MLton-mlton-20210816-b2fca3d_GH0.tar.gz) = 9809f100308c3330803d3d52052ecdc00774b74869f57ec20880c46ba796ea6d SIZE (MLton-mlton-20210816-b2fca3d_GH0.tar.gz) = 14307327 diff --git a/lang/mono6.8/Makefile b/lang/mono6.8/Makefile --- a/lang/mono6.8/Makefile +++ b/lang/mono6.8/Makefile @@ -13,7 +13,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= riscv64 riscv64sf sparc64 +NOT_FOR_ARCHS= riscv64 riscv64sf BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \ bash:shells/bash \ diff --git a/lang/newlisp/Makefile b/lang/newlisp/Makefile --- a/lang/newlisp/Makefile +++ b/lang/newlisp/Makefile @@ -40,7 +40,7 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" +.if ${ARCH} == "amd64" CFLAGS+= -DNEWLISP64 .endif diff --git a/lang/nim/Makefile b/lang/nim/Makefile --- a/lang/nim/Makefile +++ b/lang/nim/Makefile @@ -11,8 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/copying.txt -BROKEN_sparc64= fails to build: build.sh: clang: not found - LIB_DEPENDS= libpcre.so:devel/pcre TEST_DEPENDS= node18>=0:www/node diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -20,7 +20,6 @@ LICENSE_PERMS_QPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BROKEN_riscv64= fails to build: hasgot.c:3:12: use of undeclared identifier 'secure_getenv' -BROKEN_sparc64= No rule to make target 'none.o', needed by 'libasmrun.a' BROKEN_mips64= No ASM support BROKEN_mips= No ASM support diff --git a/lang/opencoarrays/Makefile b/lang/opencoarrays/Makefile --- a/lang/opencoarrays/Makefile +++ b/lang/opencoarrays/Makefile @@ -11,8 +11,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890 -BROKEN_FreeBSD_12_powerpc= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890 -BROKEN_FreeBSD_12_powerpc64= lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug #255890 BUILD_DEPENDS= bash:shells/bash RUN_DEPENDS= bash:shells/bash diff --git a/lang/perl5-devel/Makefile b/lang/perl5-devel/Makefile --- a/lang/perl5-devel/Makefile +++ b/lang/perl5-devel/Makefile @@ -157,9 +157,9 @@ .if !exists(/usr/sbin/dtrace) OPTIONS_EXCLUDE= DTRACE .endif -.for a in aarch64 arm armv6 armv7 \ +.for a in aarch64 armv6 armv7 \ mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \ - riscv64 riscv64sf sparc64 + riscv64 riscv64sf OPTIONS_EXCLUDE_${a}= DTRACE .endfor OPTIONS_SUB= yes diff --git a/lang/perl5.34/Makefile b/lang/perl5.34/Makefile --- a/lang/perl5.34/Makefile +++ b/lang/perl5.34/Makefile @@ -134,9 +134,9 @@ .if !exists(/usr/sbin/dtrace) OPTIONS_EXCLUDE= DTRACE .endif -.for a in aarch64 arm armv6 armv7 \ +.for a in aarch64 armv6 armv7 \ mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \ - riscv64 riscv64sf sparc64 + riscv64 riscv64sf OPTIONS_EXCLUDE_${a}= DTRACE .endfor OPTIONS_SUB= yes diff --git a/lang/perl5.36/Makefile b/lang/perl5.36/Makefile --- a/lang/perl5.36/Makefile +++ b/lang/perl5.36/Makefile @@ -134,9 +134,9 @@ .if !exists(/usr/sbin/dtrace) OPTIONS_EXCLUDE= DTRACE .endif -.for a in aarch64 arm armv6 armv7 \ +.for a in aarch64 armv6 armv7 \ mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \ - riscv64 riscv64sf sparc64 + riscv64 riscv64sf OPTIONS_EXCLUDE_${a}= DTRACE .endfor OPTIONS_SUB= yes diff --git a/lang/perl5.38/Makefile b/lang/perl5.38/Makefile --- a/lang/perl5.38/Makefile +++ b/lang/perl5.38/Makefile @@ -133,9 +133,9 @@ .if !exists(/usr/sbin/dtrace) OPTIONS_EXCLUDE= DTRACE .endif -.for a in aarch64 arm armv6 armv7 \ +.for a in aarch64 armv6 armv7 \ mips mips64 mips64el mips64elhf mips64hf mipsel mipselhf mipshf mipsn32 \ - riscv64 riscv64sf sparc64 + riscv64 riscv64sf OPTIONS_EXCLUDE_${a}= DTRACE .endfor OPTIONS_SUB= yes diff --git a/lang/php80/Makefile b/lang/php80/Makefile --- a/lang/php80/Makefile +++ b/lang/php80/Makefile @@ -56,7 +56,6 @@ OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} OPTIONS_EXCLUDE_powerpc64_12= DTRACE OPTIONS_EXCLUDE_riscv64= DTRACE -OPTIONS_EXCLUDE_sparc64= DTRACE NO_OPTIONS_SORT=yes OPTIONS_SUB= yes diff --git a/lang/php81/Makefile b/lang/php81/Makefile --- a/lang/php81/Makefile +++ b/lang/php81/Makefile @@ -49,10 +49,7 @@ # Bug 197128: No ASM code for MIPS/MIPS64, disable FPM OPTIONS_EXCLUDE_mips= DTRACE FPM OPTIONS_EXCLUDE_mips64= DTRACE FPM -OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_12= DTRACE OPTIONS_EXCLUDE_riscv64= DTRACE -OPTIONS_EXCLUDE_sparc64= DTRACE NO_OPTIONS_SORT= yes OPTIONS_SUB= yes diff --git a/lang/php82/Makefile b/lang/php82/Makefile --- a/lang/php82/Makefile +++ b/lang/php82/Makefile @@ -49,10 +49,7 @@ # Bug 197128: No ASM code for MIPS/MIPS64, disable FPM OPTIONS_EXCLUDE_mips= DTRACE FPM OPTIONS_EXCLUDE_mips64= DTRACE FPM -OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_12= DTRACE OPTIONS_EXCLUDE_riscv64= DTRACE -OPTIONS_EXCLUDE_sparc64= DTRACE NO_OPTIONS_SORT= yes OPTIONS_SUB= yes diff --git a/lang/php83/Makefile b/lang/php83/Makefile --- a/lang/php83/Makefile +++ b/lang/php83/Makefile @@ -50,10 +50,7 @@ # Bug 197128: No ASM code for MIPS/MIPS64, disable FPM OPTIONS_EXCLUDE_mips= DTRACE FPM OPTIONS_EXCLUDE_mips64= DTRACE FPM -OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_12= DTRACE OPTIONS_EXCLUDE_riscv64= DTRACE -OPTIONS_EXCLUDE_sparc64= DTRACE NO_OPTIONS_SORT= yes OPTIONS_SUB= yes diff --git a/lang/python27/Makefile b/lang/python27/Makefile --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -96,10 +96,6 @@ PLIST_SUB+= 32BIT_ONLY="" .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/python310/Makefile b/lang/python310/Makefile --- a/lang/python310/Makefile +++ b/lang/python310/Makefile @@ -94,10 +94,6 @@ libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/python311/Makefile b/lang/python311/Makefile --- a/lang/python311/Makefile +++ b/lang/python311/Makefile @@ -94,10 +94,6 @@ libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/python38/Makefile b/lang/python38/Makefile --- a/lang/python38/Makefile +++ b/lang/python38/Makefile @@ -94,10 +94,6 @@ libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/python39/Makefile b/lang/python39/Makefile --- a/lang/python39/Makefile +++ b/lang/python39/Makefile @@ -94,10 +94,6 @@ libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile --- a/lang/rust-bootstrap/Makefile +++ b/lang/rust-bootstrap/Makefile @@ -65,9 +65,6 @@ .if ${OPSYS} != FreeBSD IGNORE= is only for FreeBSD .endif -.if (${FLAVOR} == powerpc64le || ${FLAVOR} == riscv64) && ${OSVERSION} < 1300116 -IGNORE= will not build on 12.x due to old system -.endif .if exists(${PATCHDIR}/${FLAVOR:S/_/-/}) EXTRA_PATCHES+= ${PATCHDIR}/${FLAVOR:S/_/-/} diff --git a/lang/rust/Makefile b/lang/rust/Makefile --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -22,7 +22,6 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT -IGNORE_FreeBSD_12_powerpc= is missing a bootstrap for FreeBSD 12.x powerpc ONLY_FOR_ARCHS?= aarch64 amd64 armv7 i386 powerpc64 powerpc64le powerpc \ riscv64 ONLY_FOR_ARCHS_REASON?= requires prebuilt bootstrap compiler diff --git a/lang/scm/Makefile b/lang/scm/Makefile --- a/lang/scm/Makefile +++ b/lang/scm/Makefile @@ -16,6 +16,8 @@ BROKEN_aarch64= fails to link: missing sbrk BROKEN_riscv64= fails to link: missing sbrk +LIB_DEPENDS= libgnuregex.so.[6-9]:devel/libgnuregex + WRKSRC= ${WRKDIR}/${PORTNAME} USES= readline zip @@ -60,10 +62,6 @@ .include -.if ${OSVERSION} > 1300000 -LIB_DEPENDS+= libgnuregex.so.[6-9]:devel/libgnuregex -.endif - .if ${PORT_OPTIONS:MX11} SCM_MODULES+= ${SCM_MODULES_X11} SCM_DATA+= ${SCM_DATA_X11} diff --git a/lang/seed7/Makefile b/lang/seed7/Makefile --- a/lang/seed7/Makefile +++ b/lang/seed7/Makefile @@ -14,7 +14,7 @@ LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi -ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libodbc.so:databases/unixODBC diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile --- a/lang/smalltalk/Makefile +++ b/lang/smalltalk/Makefile @@ -11,6 +11,7 @@ LICENSE= GPLv2+ BROKEN_powerpc64= Fails to build: gst-package: did not understand #~ +BROKEN_riscv64= Fails to link: undefined reference to sbrk BUILD_DEPENDS= zip:archivers/zip \ gawk:lang/gawk diff --git a/lang/solidity/Makefile b/lang/solidity/Makefile --- a/lang/solidity/Makefile +++ b/lang/solidity/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv3 -NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= solidity currently does not support big endian systems BUILD_DEPENDS= boost-libs>=0:devel/boost-libs \ diff --git a/lang/tauthon/Makefile b/lang/tauthon/Makefile --- a/lang/tauthon/Makefile +++ b/lang/tauthon/Makefile @@ -136,10 +136,6 @@ PLIST_SUB+= 32BIT_ONLY="" .endif -.if ${ARCH} == sparc64 -CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 -.endif - # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) PLIST_SUB+= NO_NIS="@comment " diff --git a/lang/tcl87/Makefile b/lang/tcl87/Makefile --- a/lang/tcl87/Makefile +++ b/lang/tcl87/Makefile @@ -28,9 +28,6 @@ OPTIONS_DEFINE_powerpc64le= DTRACE OPTIONS_DEFAULT_powerpc64= DTRACE OPTIONS_DEFAULT_powerpc64le= DTRACE -OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} -OPTIONS_EXCLUDE_powerpc64_11= DTRACE -OPTIONS_EXCLUDE_powerpc64_12= DTRACE TCLMAN_DESC= Install Tcl function manpages TZDATA_DESC= Install Tcl timezone data OPTIONS_SUB= yes diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -105,10 +105,4 @@ CONFIGURE_ARGS+= --enable-opie .endif -.if ${OPSYS} == FreeBSD && (${ARCH:Mpowerpc*} && ${OSREL:R} < 13) -# as of 2019-10-02, powerpc's base compiler does not yield a working fetchmail. -# https://svnweb.freebsd.org/ports?view=revision&revision=513614 -- pkubaj@ -USE_GCC= yes -.endif - .include diff --git a/mail/filtermail/Makefile b/mail/filtermail/Makefile --- a/mail/filtermail/Makefile +++ b/mail/filtermail/Makefile @@ -10,12 +10,7 @@ LICENSE= GPLv3 -.include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex -.endif - -USES= bison gmake ssl +USES= bison gmake localbase:ldflags ssl # This port is filtermail, but the author called it mailfilter. To avoid a # clash with another port called mailfilter, we change all files @@ -31,13 +26,6 @@ GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes -CPPFLAGS+= -I${LOCALBASE}/include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -CPPFLAGS+= -I${LOCALBASE}/include/flex -FLEX=${LOCALBASE}/bin/flex -.endif -LDFLAGS+= -L${LOCALBASE}/lib - PLIST_FILES= bin/${PORTNAME} \ man/man1/${PORTNAME}.1.gz \ man/man5/${PORTNAME}ex.5.gz \ diff --git a/mail/rmilter/Makefile b/mail/rmilter/Makefile --- a/mail/rmilter/Makefile +++ b/mail/rmilter/Makefile @@ -10,7 +10,7 @@ LIB_DEPENDS= libpcre.so:devel/pcre -NOT_FOR_ARCHS= mips sparc64 +NOT_FOR_ARCHS= mips NOT_FOR_ARCHS_REASON= fails to compile: error: Unsupported word size USE_GITHUB= yes diff --git a/mail/spamilter/Makefile b/mail/spamilter/Makefile --- a/mail/spamilter/Makefile +++ b/mail/spamilter/Makefile @@ -47,7 +47,6 @@ .include .if ${PORT_OPTIONS:MIPFWMTAD} -BROKEN_FreeBSD_12= option IPFWMTAD needs old openssl BROKEN_FreeBSD_13= option IPFWMTAD needs old openssl .endif diff --git a/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc deleted file mode 100644 --- a/mail/thunderbird/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc +++ /dev/null @@ -1,23 +0,0 @@ -commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c -Author: Christoph Moench-Tegeder -Date: Wed Oct 12 19:57:20 2022 +0200 - - pull in sys/types.h for u_XXX typedefs on FreeBSD 12 - - In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20: - /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'? - u_char ip_hl:4, /* header length */ - -diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc -index d544b611e149..ef9b742dac5f 100644 ---- third_party/libwebrtc/rtc_base/ip_address.cc -+++ third_party/libwebrtc/rtc_base/ip_address.cc -@@ -11,6 +11,8 @@ - #if defined(WEBRTC_POSIX) - #include - #include -+/* for u_char/u_short etc on FreeBSD 12 */ -+#include - - #include "absl/strings/string_view.h" - #ifdef OPENBSD diff --git a/math/R-cran-igraph/Makefile b/math/R-cran-igraph/Makefile --- a/math/R-cran-igraph/Makefile +++ b/math/R-cran-igraph/Makefile @@ -9,8 +9,6 @@ LICENSE= GPLv2+ -BROKEN_sparc64= does not compile on sparc64: uses i386 assembler - LIB_DEPENDS= libglpk.so:math/glpk \ libgmp.so:math/gmp RUN_DEPENDS= R-cran-cli>0:devel/R-cran-cli \ diff --git a/math/acalc/Makefile b/math/acalc/Makefile --- a/math/acalc/Makefile +++ b/math/acalc/Makefile @@ -8,8 +8,6 @@ LICENSE= BSD4CLAUSE -BROKEN_FreeBSD_12_powerpc64= fails to compile: settings.cpp:8:136: error: no matching function for call to 'Setting::Setting()' - USES= compiler:c++14-lang qmake qt:5 tar:xz USE_GITHUB= yes diff --git a/math/asymptote/Makefile b/math/asymptote/Makefile --- a/math/asymptote/Makefile +++ b/math/asymptote/Makefile @@ -16,7 +16,6 @@ LICENSE_COMB= dual ONLY_FOR_ARCHS= amd64 i386 -BROKEN_FreeBSD_12_i386= ./base/plain_filldraw.asy: 21.5: runtime: gmake[2]: *** [Makefile:42: makepen.pdf] Floating point exception (core dumped) LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ libcurl.so:ftp/curl \ diff --git a/math/blacs/Makefile b/math/blacs/Makefile --- a/math/blacs/Makefile +++ b/math/blacs/Makefile @@ -43,7 +43,7 @@ DEBUG_LEVEL= 0 -.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" +.if ${ARCH} == "amd64" FPIC= -fPIC .else FPIC= -fpic diff --git a/math/cgal/Makefile b/math/cgal/Makefile --- a/math/cgal/Makefile +++ b/math/cgal/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3 LGPL3 LICENSE_COMB= multi -BROKEN_sparc64= does not build: fails to compile all_files.cpp - BUILD_DEPENDS= ${LOCALBASE}/lib/libntl.a:math/ntl LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libmpfr.so:math/mpfr \ diff --git a/math/clasp/Makefile b/math/clasp/Makefile --- a/math/clasp/Makefile +++ b/math/clasp/Makefile @@ -10,8 +10,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_sparc64= Fails to build: internal compiler error - USES= compiler:c++11-lang cmake USE_GITHUB= yes diff --git a/math/clblas/Makefile b/math/clblas/Makefile --- a/math/clblas/Makefile +++ b/math/clblas/Makefile @@ -11,8 +11,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -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 LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ libboost_program_options.so:devel/boost-libs diff --git a/math/dieharder/Makefile b/math/dieharder/Makefile --- a/math/dieharder/Makefile +++ b/math/dieharder/Makefile @@ -12,7 +12,6 @@ LIB_DEPENDS= libgsl.so:math/gsl -BROKEN_sparc64= fails to compile MAKE_JOBS_UNSAFE= yes USES= dos2unix libtool tar:tgz diff --git a/math/elemental/Makefile b/math/elemental/Makefile --- a/math/elemental/Makefile +++ b/math/elemental/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD2CLAUSE -BROKEN_FreeBSD_12_powerpc64= fails to compile: include/El/blas_like/level1/Copy.hpp:522:27: ambiguous template specialization 'Copy<>' for 'void El::Copy(const El::Matrix&, El::Matrix&)' BROKEN_i386= clang crashes: https://bugs.llvm.org/show_bug.cgi?id=46026 LIB_DEPENDS= libgmp.so:math/gmp \ diff --git a/math/fenics-basix/Makefile b/math/fenics-basix/Makefile --- a/math/fenics-basix/Makefile +++ b/math/fenics-basix/Makefile @@ -23,10 +23,4 @@ WRKSRC_SUBDIR= cpp -.include - -.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/c++/v1/concepts) # true only on FreeBSD_12 -BROKEN= system is missing a required C++ feature std::concepts -.endif - -.include +.include diff --git a/math/gambit/Makefile b/math/gambit/Makefile --- a/math/gambit/Makefile +++ b/math/gambit/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_12_powerpc64= fails to compile: ./library/include/gambit/shared_ptr.h:137:37: no matching function for call to 'swap(long int*&, long int* const&)' - USES= compiler:c++11-lib gnome GNU_CONFIGURE= yes USE_GNOME= gtk20 diff --git a/math/kktdirect/Makefile b/math/kktdirect/Makefile --- a/math/kktdirect/Makefile +++ b/math/kktdirect/Makefile @@ -19,13 +19,9 @@ OPTIONS_DEFINE= DOCS EXAMPLES -.include - -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else PICFLAG?= -fpic -.endif + +.include .if exists(${LOCALBASE}/lib/libgoto2.so) WITH_BLAS?= gotoblas diff --git a/math/lapack95/Makefile b/math/lapack95/Makefile --- a/math/lapack95/Makefile +++ b/math/lapack95/Makefile @@ -29,13 +29,9 @@ MAKE_JOBS_UNSAFE=yes -.include - -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else PICFLAG?= -fpic -.endif + +.include .if ${PORT_OPTIONS:MEXAMPLES} PORTEXAMPLES= make.inc EXAMPLES1 EXAMPLES2 diff --git a/math/ldouble/Makefile b/math/ldouble/Makefile --- a/math/ldouble/Makefile +++ b/math/ldouble/Makefile @@ -15,7 +15,7 @@ NO_WRKSUBDIR= yes MAKEFILE= makefile USE_LDCONFIG= yes -ONLY_FOR_ARCHS= i386 sparc64 +ONLY_FOR_ARCHS= i386 PLIST_FILES= lib/libml.a \ lib/libml.so \ @@ -37,10 +37,8 @@ .endif post-patch: -.if ${ARCH}!="sparc64" @${REINPLACE_CMD} -e 's|-msoft-quad-float||' \ ${WRKSRC}/${MAKEFILE} -.endif @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|' \ ${WRKSRC}/${MAKEFILE} diff --git a/math/libocas/Makefile b/math/libocas/Makefile --- a/math/libocas/Makefile +++ b/math/libocas/Makefile @@ -21,15 +21,7 @@ PLIST_FILES= bin/linclassif bin/msvmocas bin/svmocas lib/libocas.so \ lib/libocas.so.1 -.include - -.if ${ARCH} == sparc64 -PICFLAG= -fPIC -.else -PICFLAG= -fpic -.endif - -CFLAGS+= ${PICFLAG} +CFLAGS+= -fpic post-patch: @${REINPLACE_CMD} \ @@ -55,4 +47,4 @@ ${WRKSRC}/linclassif -e -v 1 -o ${WRKSRC}/data/riply_tst.pred \ ${WRKSRC}/data/riply_tst.light ${WRKSRC}/data/svmocas.model -.include +.include diff --git a/math/metis/Makefile b/math/metis/Makefile --- a/math/metis/Makefile +++ b/math/metis/Makefile @@ -40,13 +40,9 @@ WRKSRC_STATIC= ${WRKSRC} INSTALL_WRKSRC_STATIC= ${WRKSRC_STATIC}/libmetis -.include - -.if ${ARCH} == "sparc64" -CFLAGS+= -fPIC -.else CFLAGS+= -fpic -.endif + +.include pre-configure: @${REINPLACE_CMD} -e "/^# Add compiler flags/,/^$$/d" \ diff --git a/math/ndiff/Makefile b/math/ndiff/Makefile --- a/math/ndiff/Makefile +++ b/math/ndiff/Makefile @@ -29,12 +29,8 @@ .include .if ! ${PORT_OPTIONS:MGMP} -.if ${ARCH} == sparc64 -CONFIGURE_ARGS+= --with-long-double -.else CONFIGURE_ARGS+= --with-double .endif -.endif post-patch: ${REINPLACE_CMD} -e \ diff --git a/math/nfft/Makefile b/math/nfft/Makefile --- a/math/nfft/Makefile +++ b/math/nfft/Makefile @@ -39,16 +39,4 @@ OPENMP_CONFIGURE_ENABLE= openmp -.include - -# We don't have cexpl implemented in earlier versions -# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216862 - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300521 - -LIB_DEPENDS+= libopenlibm.so:math/openlibm -LDFLAGS+= -lopenlibm - -.endif - .include diff --git a/math/octave-forge-ltfat/Makefile b/math/octave-forge-ltfat/Makefile --- a/math/octave-forge-ltfat/Makefile +++ b/math/octave-forge-ltfat/Makefile @@ -13,8 +13,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKDIR}/${OCTAVE_SRC}/COPYING -BROKEN_FreeBSD_12_powerpc64= fails to compile: modules/libltfat/src/dgt_multi.c:47:31: 'cexpl' undeclared (first use in this function); did you mean 'cexpf'? - LIB_DEPENDS= libfftw3.so:math/fftw3 \ libportaudio.so:audio/portaudio \ libopenblas.so:math/openblas diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile --- a/math/parmetis/Makefile +++ b/math/parmetis/Makefile @@ -38,7 +38,7 @@ s|$$(MAKEFLAGS)||' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e \ 's|"-O3"|""|' ${WRKSRC}/metis/GKlib/GKlibSystem.cmake -.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="sparc64") || (${ARCH}=="ppc64")) +.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="ppc64")) @${REINPLACE_CMD} -e \ 's|IDXTYPEWIDTH 32|IDXTYPEWIDTH 64|' \ ${WRKSRC}/metis/include/metis.h diff --git a/math/qrupdate/Makefile b/math/qrupdate/Makefile --- a/math/qrupdate/Makefile +++ b/math/qrupdate/Makefile @@ -12,21 +12,13 @@ liblapack.so:math/lapack USES= fortran gmake +USE_LDCONFIG= yes -.include - -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -BROKEN= Does not compile on sparc64: assertions fail -.else PICFLAG?= -fpic -.endif - -USE_LDCONFIG= yes pre-build: @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g ; \ s+%%PICFLAG%%+${PICFLAG}+g ; ' \ ${WRKSRC}/Makeconf -.include +.include diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile --- a/math/scalapack/Makefile +++ b/math/scalapack/Makefile @@ -50,7 +50,7 @@ BLAS= ${BLASLIB} LAPACK= ${LAPACKLIB} -.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" +.if ${ARCH} == "amd64" FPIC= -fPIC .else FPIC= -fpic diff --git a/math/spooles/Makefile b/math/spooles/Makefile --- a/math/spooles/Makefile +++ b/math/spooles/Makefile @@ -36,18 +36,14 @@ Install.ps.gz LinSol.ps.gz Ordering.ps.gz \ PP99.ps.gz ReferenceManual.ps.gz +PICFLAG?= -fpic + .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=int-conversion .endif -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - .SILENT: pre-everything:: diff --git a/math/taucs/Makefile b/math/taucs/Makefile --- a/math/taucs/Makefile +++ b/math/taucs/Makefile @@ -25,6 +25,8 @@ OPTIONS_DEFINE= DOCS +PICFLAG?= -fpic + .include LDFLAGS+= -L${LOCALBASE}/lib @@ -34,12 +36,6 @@ BINS?= direct iter taucs_run TESTS?= complex stack timer linsolve memory -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - post-patch: @${REINPLACE_CMD} -e 's/succedd/succeed/' \ ${WRKSRC}/progs/taucs_blas_underscore_test.c diff --git a/math/trlan/Makefile b/math/trlan/Makefile --- a/math/trlan/Makefile +++ b/math/trlan/Makefile @@ -21,17 +21,13 @@ OPTIONS_DEFINE= DOCS EXAMPLES +PICFLAG= -fpic + .include PORTDOCS= trlan-ug.pdf PORTEXAMPLES= Makefile README dense.f90 simple.f90 simple77.f simplec.c -.if ${ARCH} == sparc64 -PICFLAG= -fPIC -.else -PICFLAG= -fpic -.endif - post-patch: @${REINPLACE_CMD} -E \ -e '/^(FC|FFLAGS)=/s/^/#/' \ diff --git a/math/xblas/Makefile b/math/xblas/Makefile --- a/math/xblas/Makefile +++ b/math/xblas/Makefile @@ -26,6 +26,8 @@ SHLIB_MAJOR= 0 WRKSRC= ${WRKDIR}/xblas-${PORTVERSION} +PICFLAG= -fpic + .include M4?= m4 @@ -36,12 +38,6 @@ CFLAGS+= -Dx86 .endif -.if ${ARCH} == "sparc64" -PICFLAG= -fPIC -.else -PICFLAG= -fpic -.endif - PORTDOCS= report.ps .if ${PORT_OPTIONS:MSHARED} diff --git a/misc/compat5x/Makefile b/misc/compat5x/Makefile --- a/misc/compat5x/Makefile +++ b/misc/compat5x/Makefile @@ -19,7 +19,7 @@ USES= tar:bzip2 NO_BUILD= yes -ONLY_FOR_ARCHS= amd64 i386 sparc64 +ONLY_FOR_ARCHS= amd64 i386 TARGET_DIR= ${PREFIX}/lib/compat TARGET32_DIR= ${PREFIX}/lib32/compat USE_LDCONFIG= ${TARGET_DIR} @@ -39,12 +39,6 @@ PLIST_SUB+= I386="@comment " .endif -.if ${ARCH} == sparc64 -PLIST_SUB+= SPARC64="" -.else -PLIST_SUB+= SPARC64="@comment " -.endif - do-install: @${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR} ${RM} ${WRKSRC}/libpthread.so.1 diff --git a/misc/compat5x/distinfo b/misc/compat5x/distinfo --- a/misc/compat5x/distinfo +++ b/misc/compat5x/distinfo @@ -1,7 +1,5 @@ -TIMESTAMP = 1703070263 +TIMESTAMP = 1703070264 SHA256 (compat5x-amd64-5.4.0.8.1.tar.bz2) = 58dc8fcd2764bec4cb109f54e34d543aa90fe3e94123463de745c76ba9839b13 SIZE (compat5x-amd64-5.4.0.8.1.tar.bz2) = 5854551 SHA256 (compat5x-i386-5.4.0.8.1.tar.bz2) = 1aa980a48586e38e03936f51631c665b62e252d13dc23ac8e82b9669844b798e SIZE (compat5x-i386-5.4.0.8.1.tar.bz2) = 2712692 -SHA256 (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2adea66847df4aa24571b7d314bfd29cf682c7f8d61ba1c95c602f13b55f4aec -SIZE (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2782405 diff --git a/misc/compat5x/pkg-plist b/misc/compat5x/pkg-plist --- a/misc/compat5x/pkg-plist +++ b/misc/compat5x/pkg-plist @@ -38,8 +38,6 @@ lib/compat/libkafs5.so.7 lib/compat/libkiconv.so.1 lib/compat/libkrb5.so.7 -%%SPARC64%%@preunexec chflags noschg %D/lib/compat/libkse.so.1 -%%SPARC64%%lib/compat/libkse.so.1 lib/compat/libkvm.so.2 lib/compat/libm.so.3 lib/compat/libmagic.so.1 @@ -61,8 +59,6 @@ %%AMD64%%lib/compat/libpthread.so.1 %%I386%%@preunexec chflags noschg %D/lib/compat/libpthread.so.1 %%I386%%lib/compat/libpthread.so.1 -%%SPARC64%%@preunexec chflags noschg %D/lib/compat/libpthread.so.1 -%%SPARC64%%lib/compat/libpthread.so.1 lib/compat/libradius.so.1 lib/compat/libreadline.so.5 lib/compat/libroken.so.7 diff --git a/misc/compat6x/Makefile b/misc/compat6x/Makefile --- a/misc/compat6x/Makefile +++ b/misc/compat6x/Makefile @@ -10,7 +10,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Convenience package to install the compat6x libraries -ONLY_FOR_ARCHS= amd64 i386 sparc64 +ONLY_FOR_ARCHS= amd64 i386 USES= tar:bzip2 NO_BUILD= yes diff --git a/misc/compat6x/distinfo b/misc/compat6x/distinfo --- a/misc/compat6x/distinfo +++ b/misc/compat6x/distinfo @@ -1,6 +1,5 @@ +TIMESTAMP = 1703070263 SHA256 (compat6x-i386-6.4.604000.200810.tar.bz2) = f63e66f8bb1e0ebb897cbb4ba9cce3ad536595671d7040b68aad74d09a2e4709 SIZE (compat6x-i386-6.4.604000.200810.tar.bz2) = 3133715 SHA256 (compat6x-amd64-6.4.604000.200810.tar.bz2) = 1fc72de76586f97fb62975f3af168b8a8b1c6c9ed86f9e37ec054a3ab5c8b842 SIZE (compat6x-amd64-6.4.604000.200810.tar.bz2) = 6445228 -SHA256 (compat6x-sparc64-6.4.604000.200810.tar.bz2) = 6076471b01136202506d4c0b4c23b9968400aef7b25ea34a1765ac6bcbf7fa0e -SIZE (compat6x-sparc64-6.4.604000.200810.tar.bz2) = 3313585 diff --git a/misc/compat6x/pkg-plist.sparc64 b/misc/compat6x/pkg-plist.sparc64 deleted file mode 100644 --- a/misc/compat6x/pkg-plist.sparc64 +++ /dev/null @@ -1,109 +0,0 @@ -lib/compat/libalias.so.5 -lib/compat/libarchive.so.2 -lib/compat/libasn1.so.8 -lib/compat/libatm.so.3 -lib/compat/libbegemot.so.2 -lib/compat/libbluetooth.so.2 -lib/compat/libbsdxml.so.2 -lib/compat/libbsm.so.1 -lib/compat/libbsnmp.so.3 -lib/compat/libbz2.so.2 -lib/compat/libc.so.6 -lib/compat/libcalendar.so.3 -lib/compat/libcam.so.3 -lib/compat/libcom_err.so.3 -lib/compat/libcrypt.so.3 -lib/compat/libcrypto.so.4 -lib/compat/libdevinfo.so.3 -lib/compat/libdevstat.so.5 -lib/compat/libdialog.so.5 -lib/compat/libedit.so.5 -lib/compat/libfetch.so.4 -lib/compat/libform.so.3 -lib/compat/libformw.so.3 -lib/compat/libftpio.so.6 -lib/compat/libg2c.so.2 -lib/compat/libgeom.so.3 -lib/compat/libgnuregex.so.3 -lib/compat/libgpib.so.1 -lib/compat/libgssapi.so.8 -lib/compat/libhdb.so.8 -lib/compat/libhistory.so.6 -lib/compat/libipsec.so.2 -lib/compat/libipx.so.3 -lib/compat/libkadm5clnt.so.8 -lib/compat/libkadm5srv.so.8 -lib/compat/libkafs5.so.8 -lib/compat/libkiconv.so.2 -lib/compat/libkrb5.so.8 -lib/compat/libkse.so.2 -lib/compat/libkvm.so.3 -lib/compat/libm.so.4 -lib/compat/libmagic.so.2 -lib/compat/libmd.so.3 -lib/compat/libmemstat.so.1 -lib/compat/libmenu.so.3 -lib/compat/libmenuw.so.3 -lib/compat/libmilter.so.3 -lib/compat/libmp.so.5 -lib/compat/libncurses.so.6 -lib/compat/libncursesw.so.6 -lib/compat/libnetgraph.so.2 -lib/compat/libngatm.so.2 -lib/compat/libobjc.so.2 -lib/compat/libopie.so.4 -lib/compat/libpam.so.3 -lib/compat/libpanel.so.3 -lib/compat/libpanelw.so.3 -lib/compat/libpcap.so.4 -lib/compat/libpmc.so.3 -lib/compat/libpthread.so.2 -lib/compat/libradius.so.2 -lib/compat/libreadline.so.6 -lib/compat/libroken.so.8 -lib/compat/librpcsvc.so.3 -lib/compat/libsbuf.so.3 -lib/compat/libsdp.so.2 -lib/compat/libssh.so.3 -lib/compat/libssl.so.4 -lib/compat/libstdc++.so.5 -lib/compat/libtacplus.so.2 -lib/compat/libthr.so.2 -lib/compat/libthread_db.so.2 -lib/compat/libufs.so.3 -lib/compat/libugidfw.so.2 -lib/compat/libusbhid.so.2 -lib/compat/libutil.so.5 -lib/compat/libwrap.so.4 -lib/compat/libypclnt.so.2 -lib/compat/libz.so.3 -lib/compat/pam_chroot.so.3 -lib/compat/pam_deny.so.3 -lib/compat/pam_echo.so.3 -lib/compat/pam_exec.so.3 -lib/compat/pam_ftpusers.so.3 -lib/compat/pam_group.so.3 -lib/compat/pam_guest.so.3 -lib/compat/pam_krb5.so.3 -lib/compat/pam_ksu.so.3 -lib/compat/pam_lastlog.so.3 -lib/compat/pam_login_access.so.3 -lib/compat/pam_nologin.so.3 -lib/compat/pam_opie.so.3 -lib/compat/pam_opieaccess.so.3 -lib/compat/pam_passwdqc.so.3 -lib/compat/pam_permit.so.3 -lib/compat/pam_radius.so.3 -lib/compat/pam_rhosts.so.3 -lib/compat/pam_rootok.so.3 -lib/compat/pam_securetty.so.3 -lib/compat/pam_self.so.3 -lib/compat/pam_ssh.so.3 -lib/compat/pam_tacplus.so.3 -lib/compat/pam_unix.so.3 -lib/compat/snmp_atm.so.4 -lib/compat/snmp_bridge.so.4 -lib/compat/snmp_hostres.so.4 -lib/compat/snmp_mibII.so.4 -lib/compat/snmp_netgraph.so.4 -lib/compat/snmp_pf.so.4 diff --git a/misc/dahdi-kmod26/Makefile b/misc/dahdi-kmod26/Makefile --- a/misc/dahdi-kmod26/Makefile +++ b/misc/dahdi-kmod26/Makefile @@ -16,7 +16,7 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/dahdi_cfg:misc/dahdi -ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le DAHDI_VERSION= 2.6.1-r10747 DAHDI_TOOLS_VERSION= 2.4.0-rc1 diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile --- a/misc/dnetc/Makefile +++ b/misc/dnetc/Makefile @@ -16,7 +16,7 @@ WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/:S/powerpc64/powerpc/}-elf DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH:S/powerpc64/powerpc/} -ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64 +ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 USE_RC_SUBR= dnetc NO_BUILD= yes @@ -41,12 +41,6 @@ DISTNAME= dnetc${PORTVERSION:E}-freebsd10-${ARCH} WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd10-${ARCH} -.elif ${ARCH} == sparc64 -VERSION= 2.9109.518 -REVISION= 1 -DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH} -WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH} - .elif ${ARCH} == powerpc || ${ARCH} == powerpc64 VERSION= 2.9109.518 REVISION= 1 diff --git a/misc/dnetc/distinfo.sparc64 b/misc/dnetc/distinfo.sparc64 deleted file mode 100644 --- a/misc/dnetc/distinfo.sparc64 +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (dnetc518-freebsd8-sparc64.tar.gz) = c048f0599590aee57e4b1a19b7d759625aa18f51dc4d86bae1072d412678ab58 -SIZE (dnetc518-freebsd8-sparc64.tar.gz) = 948215 diff --git a/misc/libpri/Makefile b/misc/libpri/Makefile --- a/misc/libpri/Makefile +++ b/misc/libpri/Makefile @@ -14,7 +14,7 @@ PLIST_FILES= include/libpri.h lib/libpri.a lib/libpri.so lib/libpri.so.1 MAKE_ARGS= INSTALL_PREFIX=${STAGEDIR}${PREFIX} -ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc powerpc64 powerpc64le post-patch: ${REINPLACE_CMD} -e '/^all:/s/$$(UTILITIES)//' ${WRKSRC}/Makefile diff --git a/misc/localedata/Makefile b/misc/localedata/Makefile --- a/misc/localedata/Makefile +++ b/misc/localedata/Makefile @@ -10,7 +10,7 @@ USES= tar:bzip2 NO_BUILD= yes -ONLY_FOR_ARCHS= amd64 i386 sparc64 +ONLY_FOR_ARCHS= amd64 i386 TARGET_DIR= ${PREFIX}/share/compat diff --git a/multimedia/dav1d/files/patch-freebsd12 b/multimedia/dav1d/files/patch-freebsd12 deleted file mode 100644 --- a/multimedia/dav1d/files/patch-freebsd12 +++ /dev/null @@ -1,19 +0,0 @@ -Drop after FreeBSD 12.4 EOL around 2023-12-31 -FreeBSD >= 13.1 pulls cpu_set_t from via - -https://cgit.freebsd.org/src/commit/?id=379bfb2aa9e9 - ---- tests/checkasm/checkasm.c.orig 2023-02-14 16:39:08 UTC -+++ tests/checkasm/checkasm.c -@@ -620,7 +620,11 @@ int main(int argc, char *argv[]) { - fprintf(stderr, "checkasm: running on cpu %lu\n", affinity); - } - #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(CPU_SET) -+#if defined(__FreeBSD__) && __FreeBSD__ < 13 -+ cpuset_t set; -+#else - cpu_set_t set; -+#endif - CPU_ZERO(&set); - CPU_SET(affinity, &set); - if (pthread_setaffinity_np(pthread_self(), sizeof(set), &set)) { diff --git a/multimedia/helvum/Makefile b/multimedia/helvum/Makefile --- a/multimedia/helvum/Makefile +++ b/multimedia/helvum/Makefile @@ -43,11 +43,4 @@ post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} -# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31 -# https://cgit.freebsd.org/src/commit/?id=7a202823aa54 -.if !exists(/usr/include/sys/eventfd.h) -LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim -LDFLAGS+= -lepoll-shim -.endif - .include diff --git a/multimedia/makemkv/Makefile b/multimedia/makemkv/Makefile --- a/multimedia/makemkv/Makefile +++ b/multimedia/makemkv/Makefile @@ -64,8 +64,7 @@ CC= ${LINUXBASE}/bin/gcc CXX= ${LINUXBASE}/bin/g++ -CPPFLAGS+= -D_linux_ -DFORCE_OPENSSL_NO_EC \ - ${${OSVERSION}<1300000:?-Dcaddr_t=void\* -D__daddr_t_defined:} +CPPFLAGS+= -D_linux_ -DFORCE_OPENSSL_NO_EC PATCHELF_CMD?= ${LOCALBASE}/bin/patchelf LINUXSYSROOT= ${WRKDIR}/gnuroot HAS_CONFIGURE= yes diff --git a/multimedia/mkclean/Makefile b/multimedia/mkclean/Makefile --- a/multimedia/mkclean/Makefile +++ b/multimedia/mkclean/Makefile @@ -15,7 +15,6 @@ BROKEN_armv7= does not install: arm-none-linux-gnueabi-gcc: Command not found BROKEN_mips64= does not install: mipsel-linux-gcc: Command not found BROKEN_riscv64= does not compile: cc: invalid arch name 'i486', string must begin with rv32{i,e,g} or rv64{i,g} -BROKEN_sparc64= does not install: gmake: GNUmakefile: No such file or directory USES= cmake compiler:c++11-lang cpe iconv localbase:ldflags diff --git a/multimedia/mkvalidator/Makefile b/multimedia/mkvalidator/Makefile --- a/multimedia/mkvalidator/Makefile +++ b/multimedia/mkvalidator/Makefile @@ -13,7 +13,6 @@ BROKEN_mips= fails to build: gmake[3]: mipsel-linux-gcc: Command not found BROKEN_mips64= fails to build: gmake[3]: mipsel-linux-gcc: Command not found BROKEN_powerpc64= does not compile: mkvtree.c: error: dereferencing pointer to incomplete type -BROKEN_sparc64= build broken on big endian architectures BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} diff --git a/multimedia/mkvtoolnix/Makefile b/multimedia/mkvtoolnix/Makefile --- a/multimedia/mkvtoolnix/Makefile +++ b/multimedia/mkvtoolnix/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= does not install - BUILD_DEPENDS= rake:devel/rubygem-rake \ docbook-xsl>=0:textproc/docbook-xsl \ xsltproc:textproc/libxslt diff --git a/multimedia/mlt7/Makefile b/multimedia/mlt7/Makefile --- a/multimedia/mlt7/Makefile +++ b/multimedia/mlt7/Makefile @@ -22,8 +22,6 @@ DATADIR= ${PREFIX}/share/mlt-7 .ifndef(SLAVEPORT) # Master port. -BROKEN_sparc64= does not compile on sparc64 (invokes i386 asm) - USES+= gnome mlt:7,nodepend USE_GNOME= libxml2 diff --git a/multimedia/musikcube/Makefile b/multimedia/musikcube/Makefile --- a/multimedia/musikcube/Makefile +++ b/multimedia/musikcube/Makefile @@ -29,10 +29,12 @@ libtag.so:audio/taglib \ libvorbis.so:audio/libvorbis -USES= cmake:noninja compiler:c++17-lang pkgconfig ssl +USES= cmake:noninja compiler:c++17-lang ncurses pkgconfig ssl USES+= localbase # workaround for https://github.com/clangen/musikcube/issues/600 USE_LDCONFIG= yes CMAKE_ON= USE_BASU +CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=false +CMAKE_ON+= FREEBSD_USE_BASE_NCURSES USE_GITHUB= yes GH_ACCOUNT= clangen @@ -44,17 +46,4 @@ share/musikcube/musikcubed \ share/musikcube/plugins/*.so -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses -CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=false -CMAKE_ON+= FREEBSD_USE_BASE_NCURSES -.else -USES+= ncurses:port -CFLAGS+= -I${LOCALBASE}/include/ncurses -CMAKE_ARGS+= -DNCURSES_DISABLE_LIB_SUFFIXES=true -CMAKE_OFF+= FREEBSD_USE_BASE_NCURSES -.endif - .include diff --git a/multimedia/obs-studio/Makefile b/multimedia/obs-studio/Makefile --- a/multimedia/obs-studio/Makefile +++ b/multimedia/obs-studio/Makefile @@ -9,8 +9,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_12= fatal error: 'sys/eventfd.h' file not found - BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat \ swig:devel/swig LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ diff --git a/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c b/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c deleted file mode 100644 --- a/multimedia/pipewire/files/patch-src_modules_module-netjack2_peer.c +++ /dev/null @@ -1,23 +0,0 @@ -Drop after FreeBSD 12.4 EOL around 2023-12-31. -https://cgit.freebsd.org/src/commit/?id=1dd126163b94 - -In file included from ../src/modules/module-netjack2-manager.c:38: -../src/modules/module-netjack2/peer.c:2:10: fatal error: 'byteswap.h' file not found -#include - ^~~~~~~~~~~~ - ---- src/modules/module-netjack2/peer.c.orig 2023-10-06 09:37:06 UTC -+++ src/modules/module-netjack2/peer.c -@@ -1,5 +1,12 @@ - -+#if __has_include() - #include -+#else -+#include -+#define bswap_16(x) bswap16(x) -+#define bswap_32(x) bswap32(x) -+#define bswap_64(x) bswap64(x) -+#endif - - #ifdef HAVE_OPUS_CUSTOM - #include diff --git a/multimedia/xawtv/Makefile b/multimedia/xawtv/Makefile --- a/multimedia/xawtv/Makefile +++ b/multimedia/xawtv/Makefile @@ -21,19 +21,13 @@ CPE_VENDOR= linuxtv -OPTIONS_DEFINE= AALIB BKTR DV ZVBI +OPTIONS_DEFINE= AALIB DV ZVBI OPTIONS_DEFINE_i386= MMX -OPTIONS_DEFAULT= AALIB BKTR -.if !exists(/usr/include/dev/bktr/ioctl_bt848.h) -OPTIONS_EXCLUDE= BKTR -.endif +OPTIONS_DEFAULT= AALIB OPTIONS_SUB= yes -BKTR_DESC= bktr(4) support ZVBI_DESC= Enable libzvbi support -BKTR_MAKE_ARGS= HAVE_BKTR=yes - GNU_CONFIGURE= yes USE_XORG= x11 xaw CPPFLAGS+= -I${WRKSRC}/common diff --git a/multimedia/xawtv/files/patch-Makefile.in b/multimedia/xawtv/files/patch-Makefile.in --- a/multimedia/xawtv/files/patch-Makefile.in +++ b/multimedia/xawtv/files/patch-Makefile.in @@ -1,6 +1,6 @@ ---- Makefile.in.orig 2013-04-02 15:19:10.000000000 +0200 -+++ Makefile.in 2013-05-15 11:20:52.000000000 +0200 -@@ -68,25 +68,12 @@ +--- Makefile.in.orig 2020-05-15 23:32:25 UTC ++++ Makefile.in +@@ -69,24 +69,11 @@ LIBV4L := @LIBV4L@ FOUND_EXPLAIN := @FOUND_EXPLAIN@ # build final cflags @@ -19,11 +19,10 @@ # for gcc3 #CFLAGS += -std-gnu99 - +- -# shared objects need -fPIC -%.so : CFLAGS += -fPIC -%.so : CXXFLAGS += -fPIC -- + # libraries LDLIBS := @LDLIBS@ - diff --git a/multimedia/xawtv/files/patch-common__vbi-data.c b/multimedia/xawtv/files/patch-common__vbi-data.c --- a/multimedia/xawtv/files/patch-common__vbi-data.c +++ b/multimedia/xawtv/files/patch-common__vbi-data.c @@ -1,6 +1,6 @@ ---- common/vbi-data.c.orig Tue Feb 10 22:07:49 2004 -+++ common/vbi-data.c Tue Feb 10 22:09:03 2004 -@@ -71,8 +71,11 @@ +--- common/vbi-data.c.orig 2020-05-15 23:32:25 UTC ++++ common/vbi-data.c +@@ -86,8 +86,11 @@ vbi_open(char *dev, int debug, int sim) vbi->cap = vbi_capture_v4l2_new(dev,16,&services,-1,&vbi->err,debug); if (NULL == vbi->cap) { vbi->cap = vbi_capture_v4l_new(dev,16,&services,-1,&vbi->err,debug); diff --git a/multimedia/xawtv/files/patch-configure b/multimedia/xawtv/files/patch-configure --- a/multimedia/xawtv/files/patch-configure +++ b/multimedia/xawtv/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2013-04-02 15:20:33.000000000 +0200 -+++ configure 2013-05-15 11:26:05.000000000 +0200 -@@ -5244,7 +5244,7 @@ +--- configure.orig 2020-05-15 23:35:58 UTC ++++ configure +@@ -5296,7 +5296,7 @@ if ${ac_cv_lib_zvbi_vbi_capture_fd+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -9,7 +9,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -@@ -5277,7 +5277,7 @@ +@@ -5329,7 +5329,7 @@ $as_echo "$ac_cv_lib_zvbi_vbi_capture_fd" >&6; } if test "x$ac_cv_lib_zvbi_vbi_capture_fd" = xyes; then : $as_echo "#define HAVE_ZVBI 1" >>confdefs.h @@ -18,7 +18,7 @@ fi else -@@ -5379,7 +5379,7 @@ +@@ -5431,7 +5431,7 @@ $as_echo "$ac_cv_lib_dv_dv_decoder_new" >&6; } if test "x$ac_cv_lib_dv_dv_decoder_new" = xyes; then : $as_echo "#define HAVE_DV 1" >>confdefs.h @@ -27,8 +27,8 @@ fi else -@@ -5914,23 +5914,14 @@ - +@@ -5966,23 +5966,14 @@ VERSION="`head -1 $srcdir/Changes`" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 config directory" >&5 $as_echo_n "checking for X11 config directory... " >&6; } -x11conf=/usr/lib/X11 @@ -38,8 +38,8 @@ +x11conf=/etc/X11 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x11conf" >&5 $as_echo "$x11conf" >&6; } - - + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 app-defaults directory" >&5 $as_echo_n "checking for X11 app-defaults directory... " >&6; } -resdir=/usr/lib/X11 @@ -52,5 +52,4 @@ +resdir=/usr/X11R6/lib/X11 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resdir/app-defaults" >&5 $as_echo "$resdir/app-defaults" >&6; } - - + diff --git a/multimedia/xawtv/files/patch-console__fbtools.c b/multimedia/xawtv/files/patch-console__fbtools.c --- a/multimedia/xawtv/files/patch-console__fbtools.c +++ b/multimedia/xawtv/files/patch-console__fbtools.c @@ -1,5 +1,5 @@ ---- console/fbtools.c.orig Tue Feb 10 22:40:55 2004 -+++ console/fbtools.c Tue Feb 10 22:42:03 2004 +--- console/fbtools.c.orig 2020-05-15 23:32:25 UTC ++++ console/fbtools.c @@ -2,6 +2,7 @@ * some generic framebuffer device stuff * @@ -8,7 +8,7 @@ #include #include -@@ -521,3 +522,4 @@ +@@ -523,3 +524,4 @@ fb_catch_exit_signals(void) fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]); exit(42); } diff --git a/multimedia/xawtv/files/patch-console__scantv.c b/multimedia/xawtv/files/patch-console__scantv.c --- a/multimedia/xawtv/files/patch-console__scantv.c +++ b/multimedia/xawtv/files/patch-console__scantv.c @@ -1,6 +1,6 @@ ---- console/scantv.c.orig Wed Feb 11 23:14:16 2004 -+++ console/scantv.c Wed Feb 11 23:15:04 2004 -@@ -245,7 +245,11 @@ +--- console/scantv.c.orig 2020-05-15 23:32:25 UTC ++++ console/scantv.c +@@ -261,7 +261,11 @@ main(int argc, char **argv) fprintf(stderr,"no station\n"); continue; } diff --git a/multimedia/xawtv/files/patch-console__showqt.c b/multimedia/xawtv/files/patch-console__showqt.c --- a/multimedia/xawtv/files/patch-console__showqt.c +++ b/multimedia/xawtv/files/patch-console__showqt.c @@ -1,8 +1,8 @@ ---- console/showqt.c.orig Tue Nov 19 23:49:53 2002 -+++ console/showqt.c Tue Nov 19 23:57:26 2002 -@@ -11,6 +11,15 @@ - #include - #include +--- console/showqt.c.orig 2020-05-15 23:32:25 UTC ++++ console/showqt.c +@@ -16,6 +16,15 @@ + # define PRIx64 "llx" + #endif +#if !defined(PRId64) +#define PRId64 "lld" @@ -14,5 +14,5 @@ + + #if BYTE_ORDER == LITTLE_ENDIAN - # define SWAP2(x) (((x>>8) & 0x00ff) |\ - ((x<<8) & 0xff00)) + # define SWAP2(x) ((((uint16_t)x>>8) & (uint16_t)0x00ff) |\ + (((uint16_t)x<<8) & (uint16_t)0xff00)) diff --git a/multimedia/xawtv/files/patch-console__vbi-tty.c b/multimedia/xawtv/files/patch-console__vbi-tty.c --- a/multimedia/xawtv/files/patch-console__vbi-tty.c +++ b/multimedia/xawtv/files/patch-console__vbi-tty.c @@ -1,5 +1,5 @@ ---- console/vbi-tty.c.orig Tue Feb 10 22:41:06 2004 -+++ console/vbi-tty.c Tue Feb 10 22:42:03 2004 +--- console/vbi-tty.c.orig 2020-05-15 23:32:25 UTC ++++ console/vbi-tty.c @@ -19,7 +19,7 @@ #include #include @@ -9,7 +9,7 @@ #include "vbi-data.h" #include "vbi-tty.h" -@@ -65,7 +65,7 @@ +@@ -65,7 +65,7 @@ static void tty_goto(int x, int y) } /* --------------------------------------------------------------------- */ @@ -18,7 +18,7 @@ static int have_fb = 0; static int fb_fmt = VBI_PIXFMT_RGBA32_LE; static int switch_last; -@@ -74,7 +74,7 @@ +@@ -74,7 +74,7 @@ static void fb_clear(void) { fb_memset(fb_mem+fb_mem_offset,0,fb_fix.smem_len); } @@ -27,7 +27,7 @@ /* --------------------------------------------------------------------- */ struct vbi_tty { -@@ -133,6 +133,7 @@ +@@ -133,6 +133,7 @@ vbi_render_page(struct vbi_tty *tty) vbi_fetch_vt_page(tty->vbi->dec,&tty->pg,tty->pgno,tty->subno, VBI_WST_LEVEL_1p5,25,1); vbi_fix_head(tty,tty->pg.text); @@ -35,9 +35,9 @@ if (have_fb) { vbi_draw_vt_page_region(&tty->pg, fb_fmt, fb_mem + fb_mem_offset, -@@ -142,13 +143,16 @@ +@@ -142,13 +143,16 @@ vbi_render_page(struct vbi_tty *tty) 0,1); - + } else { +#endif len = vbi_export_txt(data,nl_langinfo(CODESET),25*41*8, @@ -52,7 +52,7 @@ } static void -@@ -166,6 +170,7 @@ +@@ -169,6 +173,7 @@ vbi_render_head(struct vbi_tty *tty, int pgno, int sub vbi_fetch_vt_page(tty->vbi->dec,&pg,pgno,subno, VBI_WST_LEVEL_1p5,1,1); vbi_fix_head(tty,pg.text); @@ -60,9 +60,9 @@ if (have_fb) { vbi_draw_vt_page_region(&pg, fb_fmt, fb_mem + fb_mem_offset, -@@ -175,13 +180,16 @@ +@@ -177,13 +182,16 @@ vbi_render_head(struct vbi_tty *tty, int pgno, int sub + pg.columns, 1, 0,1); - } else { +#endif len = vbi_export_txt(data,nl_langinfo(CODESET),41*8, @@ -77,7 +77,7 @@ } static void -@@ -232,7 +240,7 @@ +@@ -234,7 +242,7 @@ void vbi_tty(char *device, int debug, int sim) vbi = vbi_open(device,debug,sim); if (NULL == vbi) exit(1); @@ -86,7 +86,7 @@ if (0 /* 0 == fb_probe() */ ) { have_fb = 1; fb_init(NULL,NULL,0); -@@ -240,14 +248,21 @@ +@@ -242,14 +250,21 @@ void vbi_tty(char *device, int debug, int sim) fb_switch_init(); switch_last = fb_switch_state; } else { @@ -108,7 +108,7 @@ tty = malloc(sizeof(*tty)); memset(tty,0,sizeof(*tty)); -@@ -264,14 +279,18 @@ +@@ -266,14 +281,18 @@ void vbi_tty(char *device, int debug, int sim) rc = select(vbi->fd+1,&set,NULL,NULL,&tv); if (-1 == rc) { tty_restore(); @@ -127,7 +127,7 @@ tty_restore(); fprintf(stderr,"oops: timeout\n"); exit(1); -@@ -289,7 +308,11 @@ +@@ -291,7 +310,11 @@ void vbi_tty(char *device, int debug, int sim) break; case 'L' & 0x1f: /* refresh */ @@ -139,7 +139,7 @@ vbi_render_page(tty); break; case 'i': -@@ -339,8 +362,10 @@ +@@ -341,8 +364,10 @@ void vbi_tty(char *device, int debug, int sim) vbi_hasdata(vbi); } } diff --git a/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk b/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk --- a/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk +++ b/multimedia/xawtv/files/patch-libng__contrib-plugins__Subdir.mk @@ -1,6 +1,6 @@ ---- libng/contrib-plugins/Subdir.mk.orig Thu Feb 13 15:15:28 2003 -+++ libng/contrib-plugins/Subdir.mk Thu Feb 13 15:15:34 2003 -@@ -18,7 +18,7 @@ +--- libng/contrib-plugins/Subdir.mk.orig 2020-05-15 23:32:25 UTC ++++ libng/contrib-plugins/Subdir.mk +@@ -18,7 +18,7 @@ libng/contrib-plugins/snd-alsa.so : LDLIBS := $(ALSA_L # linear-blend has mmx support ... ifeq ($(USE_MMX),yes) diff --git a/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c b/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c --- a/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c +++ b/multimedia/xawtv/files/patch-libng__plugins__drv0-bsd.c @@ -1,5 +1,5 @@ ---- libng/plugins/drv0-bsd.c.orig Wed Mar 12 17:45:56 2003 -+++ libng/plugins/drv0-bsd.c Tue May 24 11:32:55 2005 +--- libng/plugins/drv0-bsd.c.orig 2020-05-15 23:32:25 UTC ++++ libng/plugins/drv0-bsd.c @@ -23,10 +23,12 @@ #ifdef HAVE_DEV_IC_BT8XX_H @@ -15,7 +15,7 @@ #endif #include "grab-ng.h" -@@ -127,7 +129,7 @@ +@@ -129,7 +131,7 @@ static struct STRTAB inputs[] = { { 3, "CSVIDEO" }, { -1, NULL } }; @@ -24,7 +24,7 @@ METEOR_INPUT_DEV1, METEOR_INPUT_DEV0, METEOR_INPUT_DEV_SVIDEO, -@@ -144,7 +146,7 @@ +@@ -146,7 +148,7 @@ static struct STRTAB norms[] = { { 6, "RSVD" }, { -1, NULL } }; @@ -33,7 +33,7 @@ BT848_IFORM_F_NTSCM, BT848_IFORM_F_NTSCJ, BT848_IFORM_F_PALBDGHI, -@@ -160,7 +162,7 @@ +@@ -162,7 +164,7 @@ static struct STRTAB audio[] = { { 2, "Intern" }, { -1, NULL } }; @@ -42,7 +42,7 @@ AUDIO_TUNER, AUDIO_EXTERN, AUDIO_INTERN, -@@ -242,7 +244,7 @@ +@@ -244,7 +246,7 @@ static int signal_off = METEOR_SIG_MODE_MASK; #define PREFIX "bktr: ioctl: " static int @@ -51,7 +51,7 @@ { int rc; -@@ -296,7 +298,7 @@ +@@ -298,7 +300,7 @@ xioctl(int fd, int cmd, void *arg) break; } default: @@ -60,7 +60,7 @@ break; } fprintf(stderr,": %s\n",(rc == 0) ? "ok" : strerror(errno)); -@@ -474,7 +476,7 @@ +@@ -482,7 +484,7 @@ static void bsd_get_min_size(void *handle, int *min_wi /* ---------------------------------------------------------------------- */ static int @@ -69,7 +69,7 @@ { switch (id) { case ATTR_ID_HUE: -@@ -502,19 +504,20 @@ +@@ -510,19 +512,20 @@ bsd_get_range(int id, int *get, int *set) static int bsd_read_attr(struct ng_attribute *attr) { struct bsd_handle *h = attr->handle; @@ -93,7 +93,7 @@ if (arg == inputs_map[i]) value = i; break; -@@ -532,7 +535,7 @@ +@@ -540,7 +543,7 @@ static int bsd_read_attr(struct ng_attribute *attr) break; case ATTR_ID_COUNT+1: /* AUDIO */ if (-1 != xioctl(h->tfd, BT848_GAUDIO, &arg)) @@ -102,7 +102,7 @@ if (arg == audio_map[i]) value = i; break; -@@ -545,7 +548,8 @@ +@@ -553,7 +556,8 @@ static int bsd_read_attr(struct ng_attribute *attr) static void bsd_write_attr(struct ng_attribute *attr, int value) { struct bsd_handle *h = attr->handle; @@ -112,7 +112,7 @@ switch (attr->id) { case ATTR_ID_NORM: -@@ -599,7 +603,15 @@ +@@ -607,7 +611,15 @@ static void bsd_setfreq(void *handle, unsigned long fr static int bsd_tuned(void *handle) { diff --git a/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk b/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk --- a/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk +++ b/multimedia/xawtv/files/patch-libng_plugins_Subdir.mk @@ -1,15 +1,12 @@ ---- libng/plugins/Subdir.mk.orig 2020-03-18 04:43:15 UTC +--- libng/plugins/Subdir.mk.orig 2020-05-15 23:32:25 UTC +++ libng/plugins/Subdir.mk -@@ -28,9 +28,11 @@ TARGETS-plugins += \ +@@ -28,9 +28,7 @@ TARGETS-plugins += \ libng/plugins/drv0-libv4l.so endif ifeq ($(FOUND_OS),bsd) -+ifeq ($(HAVE_BKTR),yes) - TARGETS-plugins += \ +-TARGETS-plugins += \ - libng/plugins/drv0-bsd.so \ - libng/plugins/snd-oss.so -+ libng/plugins/drv0-bsd.so -+endif +TARGETS-plugins += libng/plugins/snd-oss.so endif diff --git a/multimedia/xawtv/files/patch-scripts-subtitles b/multimedia/xawtv/files/patch-scripts-subtitles --- a/multimedia/xawtv/files/patch-scripts-subtitles +++ b/multimedia/xawtv/files/patch-scripts-subtitles @@ -1,12 +1,12 @@ ---- scripts/subtitles.orig 2014-06-13 07:05:00.434754238 +0200 -+++ scripts/subtitles 2014-06-13 07:06:45.175747077 +0200 +--- scripts/subtitles.orig 2020-05-15 23:32:25 UTC ++++ scripts/subtitles @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh # # display teletext subtitles (PAL) in xawtv # required: alevt-cap, xawtv-remote -@@ -12,7 +12,7 @@ +@@ -12,7 +12,7 @@ device="/dev/vbi0" ########################################################################## # helpers diff --git a/multimedia/xawtv/files/patch-x11__Subdir.mk b/multimedia/xawtv/files/patch-x11__Subdir.mk --- a/multimedia/xawtv/files/patch-x11__Subdir.mk +++ b/multimedia/xawtv/files/patch-x11__Subdir.mk @@ -1,6 +1,6 @@ ---- x11/Subdir.mk.orig Mon Jan 12 18:56:17 2004 -+++ x11/Subdir.mk Mon Feb 9 18:49:10 2004 -@@ -116,8 +116,8 @@ +--- x11/Subdir.mk.orig 2020-05-15 23:32:25 UTC ++++ x11/Subdir.mk +@@ -117,8 +117,8 @@ x11/v4lctl : LDFLAGS := $(DLFLAGS) x11/pia : LDFLAGS := $(DLFLAGS) # compile flags @@ -11,7 +11,7 @@ # i18n -@@ -128,12 +128,12 @@ +@@ -129,12 +129,12 @@ MOTV-app := $(patsubst %,x11/MoTV.%.ad,$(LANGUAGES)) # local targets x11/complete-xaw.o: x11/complete.c @$(echo_compile_c) diff --git a/multimedia/xawtv/pkg-plist b/multimedia/xawtv/pkg-plist --- a/multimedia/xawtv/pkg-plist +++ b/multimedia/xawtv/pkg-plist @@ -20,7 +20,6 @@ lib/xawtv/bilinear.so lib/xawtv/conv-mjpeg.so lib/xawtv/cubic.so -%%BKTR%%lib/xawtv/drv0-bsd.so lib/xawtv/flt-disor.so lib/xawtv/flt-gamma.so lib/xawtv/flt-invert.so diff --git a/net-im/libquotient/files/patch-Quotient_qt__connection__util.h b/net-im/libquotient/files/patch-Quotient_qt__connection__util.h deleted file mode 100644 --- a/net-im/libquotient/files/patch-Quotient_qt__connection__util.h +++ /dev/null @@ -1,52 +0,0 @@ -The call std::bind_front() below only works from LLVM 14 on because libc++ -needs https://reviews.llvm.org/D107199 to work correctly, otherwise uses of -connectSingleShot() fail. See net-im/neochat for example [1]: - -In file included from /wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.cpp:5: -In file included from /wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.h:6: -In file included from /usr/local/include/qt5/QtCore/QObject:1: -In file included from /usr/local/include/qt5/QtCore/qobject.h:46: -In file included from /usr/local/include/qt5/QtCore/qobjectdefs.h:48: -In file included from /usr/local/include/qt5/QtCore/qnamespace.h:43: -In file included from /usr/local/include/qt5/QtCore/qglobal.h:142: -In file included from /usr/include/c++/v1/algorithm:653: -In file included from /usr/include/c++/v1/functional:495: -In file included from /usr/include/c++/v1/__functional/bind_front.h:14: -/usr/include/c++/v1/__functional/perfect_forward.h:77:9: error: no matching constructor for initialization of 'tuple' - __bound_(_VSTD::forward<_BoundArgs>(__bound)...) { } - ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/local/include/Quotient/qt_connection_util.h:22:14: note: in instantiation of function template specialization 'std::__perfect_forward_impl, std::__tuple_indices<0, 1>>::__perfect_forward_impl, std::__tuple_indices<0, 1>> &>' requested here - [slotLike, pConn = std::move(pConn)](const auto&... args) - ^ -/usr/local/include/Quotient/qt_connection_util.h:93:23: note: in instantiation of function template specialization 'Quotient::_impl::connect, std::__tuple_indices<0, 1>>>' requested here - return _impl::connect<_impl::SingleShot>( - ^ -/wrkdirs/usr/ports/net-im/neochat/work/neochat-23.04.2/src/controller.cpp:372:25: note: in instantiation of function template specialization 'Quotient::connectSingleShot' requested here - connectSingleShot(connection, &Connection::syncDone, this, &Controller::initiated); - ^ - -[1] https://pkg-status.freebsd.org/beefy2/data/124amd64-quarterly/8898bf465b47/logs/neochat-23.04.2.log - ---- Quotient/qt_connection_util.h -+++ Quotient/qt_connection_util.h -@@ -3,6 +3,8 @@ - - #pragma once - -+#include // For __FreeBSD_version -+ - #include "function_traits.h" - - #include -@@ -81,7 +83,10 @@ inline auto connectSingleShot(auto* sender, auto signal, ContextT* context, - // object has to be pre-bound to the slot to make it self-contained - if constexpr (_impl::PmfSlot) { - auto&& boundSlot = --# if __cpp_lib_bind_front // Needs Apple Clang 13 (other platforms are fine) -+# if __cpp_lib_bind_front && \ -+ (!defined(__FreeBSD_version) || __FreeBSD_version >= 1301504) -+ // This requires LLVM >= 14, this only works with libc++ commit -+ // https://reviews.llvm.org/D107199. - std::bind_front(slot, context); - # else - [context, slot](const auto&... args) diff --git a/net-im/telegram-purple/Makefile b/net-im/telegram-purple/Makefile --- a/net-im/telegram-purple/Makefile +++ b/net-im/telegram-purple/Makefile @@ -16,7 +16,6 @@ BROKEN_armv6= fails to link: undefined reference to 'backtrace' BROKEN_powerpc64= fails to compile: Assertion failed: (get_int () == TLS_SCHEMA_V2), function parse_tlo_file, file generate.c, line 2832. -BROKEN_sparc64= fails to compile: assertion fails LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ libwebp.so:graphics/webp \ diff --git a/net-mgmt/monitoring-plugins/Makefile b/net-mgmt/monitoring-plugins/Makefile --- a/net-mgmt/monitoring-plugins/Makefile +++ b/net-mgmt/monitoring-plugins/Makefile @@ -122,11 +122,7 @@ .include -.if ${OSVERSION} < 1300041 -_PING6_CMD= /sbin/ping6 -n -X %d -c %d %s -.else _PING6_CMD= /sbin/ping6 -n -t %d -c %d %s -.endif .if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) PLIST_SUB+= SSH="@comment " diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile --- a/net-mgmt/nagios-plugins/Makefile +++ b/net-mgmt/nagios-plugins/Makefile @@ -31,7 +31,7 @@ # Also, force some commands with their expected paths so that they don't get # disabled. CONFIGURE_ARGS+= --with-ping-command="/sbin/ping -n -t %d -c %d %s" \ - --with-ping6-command="${_PING6_CMD}" \ + --with-ping6-command="/sbin/ping6 -n -t %d -c %d %s" \ ac_cv_path_PATH_TO_PING6=/sbin/ping6 \ ac_cv_path_PATH_TO_PING=/sbin/ping \ ac_cv_path_PATH_TO_QMAIL_QSTAT=/var/qmail/bin/qmail-qstat \ @@ -126,12 +126,6 @@ .include -.if ${OSVERSION} < 1300041 -_PING6_CMD= /sbin/ping6 -n -X %d -c %d %s -.else -_PING6_CMD= /sbin/ping6 -n -t %d -c %d %s -.endif - .if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) PLIST_SUB+= SSH="@comment " .else diff --git a/net-mgmt/nfs-exporter/Makefile b/net-mgmt/nfs-exporter/Makefile --- a/net-mgmt/nfs-exporter/Makefile +++ b/net-mgmt/nfs-exporter/Makefile @@ -25,13 +25,7 @@ USES= cargo USE_RC_SUBR= nfs_exporter -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1302000 SUB_LIST= USER=nobody -.else -SUB_LIST= USER=root -.endif PLIST_FILES= bin/${PORTNAME} \ man/man8/${PORTNAME}.8.gz diff --git a/net-p2p/qbittorrent/Makefile b/net-p2p/qbittorrent/Makefile --- a/net-p2p/qbittorrent/Makefile +++ b/net-p2p/qbittorrent/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_12_powerpc64= fails to build: ./base/tristatebool.h:44:5: 'constexpr' constructor does not have empty body - CXXFLAGS+= -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED # error: "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`." FLAVORS= default nox diff --git a/net/asterisk16/Makefile b/net/asterisk16/Makefile --- a/net/asterisk16/Makefile +++ b/net/asterisk16/Makefile @@ -70,7 +70,6 @@ OPTIONS_DEFINE_powerpc= DAHDI OPTIONS_DEFINE_powerpc64= DAHDI OPTIONS_DEFINE_powerpc64le= DAHDI -OPTIONS_DEFINE_sparc64= DAHDI OPTIONS_DEFAULT= CURL FREETDS GSM LUA MACRO MP3PLAYER NEWT ODBC OPUS MYSQL PGSQL \ PJSIP PORTAUDIO RADIUS SNMP SPANDSP SPEEX SRTP URIPARSER \ VORBIS XMLDOC @@ -79,7 +78,6 @@ OPTIONS_DEFAULT_powerpc= DAHDI XMPP OPTIONS_DEFAULT_powerpc64= DAHDI XMPP OPTIONS_DEFAULT_powerpc64le= DAHDI XMPP -OPTIONS_DEFAULT_sparc64= DAHDI XMPP OPTIONS_GROUP= CODECS DATABASE OPTIONS_GROUP_CODECS= GSM NEWG711 OPUS SPEEX VORBIS OPTIONS_GROUP_DATABASE= MYSQL ODBC PGSQL diff --git a/net/asterisk18/Makefile b/net/asterisk18/Makefile --- a/net/asterisk18/Makefile +++ b/net/asterisk18/Makefile @@ -67,7 +67,6 @@ OPTIONS_DEFINE_powerpc= DAHDI OPTIONS_DEFINE_powerpc64= DAHDI OPTIONS_DEFINE_powerpc64le= DAHDI -OPTIONS_DEFINE_sparc64= DAHDI OPTIONS_DEFAULT= CURL FREETDS GSM LUA MACRO MP3PLAYER NEWT ODBC OPUS MYSQL PGSQL \ PJSIP PORTAUDIO RADIUS SNMP SPANDSP SPEEX SRTP URIPARSER \ VORBIS XMLDOC @@ -76,7 +75,6 @@ OPTIONS_DEFAULT_powerpc= DAHDI XMPP OPTIONS_DEFAULT_powerpc64= DAHDI XMPP OPTIONS_DEFAULT_powerpc64le= DAHDI XMPP -OPTIONS_DEFAULT_sparc64= DAHDI XMPP OPTIONS_GROUP= CODECS DATABASE OPTIONS_GROUP_CODECS= GSM NEWG711 OPUS SPEEX VORBIS diff --git a/net/bird2/Makefile b/net/bird2/Makefile --- a/net/bird2/Makefile +++ b/net/bird2/Makefile @@ -64,9 +64,6 @@ .if ${FLAVOR:U} == netlink CONFIGURE_ARGS+=--with-sysconfig=bsd-netlink -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302000 -IGNORE= No netlink support -.endif .endif .include diff --git a/net/bsdrcmds/Makefile b/net/bsdrcmds/Makefile --- a/net/bsdrcmds/Makefile +++ b/net/bsdrcmds/Makefile @@ -13,6 +13,7 @@ USES= uidfix MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE} +MAKE_ENV+= MK_WERROR=no OPTIONS_DEFINE= IPV6 LIBBLACKLIST OPTIONS_DEFAULT= LIBBLACKLIST @@ -22,12 +23,4 @@ LIBBLACKLIST_DESC= libblacklist(3) support for rlogind(8) and rshd(8) LIBBLACKLIST_MAKE_ARGS= USE_LIBBLACKLIST=yes -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134 -MAKE_ENV+= MK_WERROR=no -.else -MAKE_ENV+= NO_WERROR=1 -.endif - .include diff --git a/net/freebsd-telnetd/Makefile b/net/freebsd-telnetd/Makefile --- a/net/freebsd-telnetd/Makefile +++ b/net/freebsd-telnetd/Makefile @@ -19,21 +19,14 @@ MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \ BINDIR=${PREFIX}/libexec \ MANDIR=${PREFIX}/man/man \ - TELNETDIR=${WRKSRC}/contrib/telnet + TELNETDIR=${WRKSRC}/contrib/telnet \ + MK_WERROR=no OPTIONS_DEFINE= IPV6 OPTIONS_DEFAULT= IPV6 # WRKSRC_SUBDIR= libexec/telnetd -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134 -MAKE_ENV+= MK_WERROR=no -.else -MAKE_ENV+= NO_WERROR=1 -.endif - post-patch: @${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile diff --git a/net/libcmis/Makefile b/net/libcmis/Makefile --- a/net/libcmis/Makefile +++ b/net/libcmis/Makefile @@ -11,8 +11,6 @@ LICENSE= LGPL20 MPL11 GPLv2 LICENSE_COMB= dual -BROKEN_sparc64= cannot link with boost - BUILD_DEPENDS= cppunit-config:devel/cppunit \ ${LOCALBASE}/lib/libboost_regex.a:devel/boost-libs LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \ diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile --- a/net/libpcap/Makefile +++ b/net/libpcap/Makefile @@ -21,7 +21,6 @@ --with-pcap=bpf CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex CFLAGS_amd64= -fPIC -CFLAGS_sparc64= -fPIC PLIST_SUB+= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= IPV6 REMOTE diff --git a/net/libpfctl/Makefile b/net/libpfctl/Makefile --- a/net/libpfctl/Makefile +++ b/net/libpfctl/Makefile @@ -38,7 +38,7 @@ .if defined(MAINTAINER_MODE) upload: - for version in 12.4 13.2 14.0; \ + for version in 13.2 14.0; \ do \ cd /usr/src/lib && \ git archive --format=tar.gz \ diff --git a/net/liveMedia/Makefile b/net/liveMedia/Makefile --- a/net/liveMedia/Makefile +++ b/net/liveMedia/Makefile @@ -16,8 +16,6 @@ LICENSE_TEXT_MAT= dated material LICENSE_PERMS_MAT= pkg-mirror dist-mirror auto-accept -BROKEN_sparc64= Fails to compile - WRKSRC= ${WRKDIR}/live HAS_CONFIGURE= yes diff --git a/net/samba413/Makefile b/net/samba413/Makefile --- a/net/samba413/Makefile +++ b/net/samba413/Makefile @@ -709,9 +709,6 @@ -${FIND} ${STAGEDIR}${PREFIX}/lib -name '*.so*' \ -type f -print0 | ${XARGS} -0 -n 1 -t ${STRIP_CMD} .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 # Work around bug 255626. Remove after 12.4 is EOL. - ${RM} ${STAGEDIR}${LOCALBASE}/bin/ecp.* ${STAGEDIR}${LOCALBASE}/sbin/ecp.* -.endif post-install-FRUIT-off: ${RM} ${STAGEDIR}${SAMBA4_MODULEDIR}/vfs/fruit.so diff --git a/net/samba416/Makefile b/net/samba416/Makefile --- a/net/samba416/Makefile +++ b/net/samba416/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -IGNORE_FreeBSD_12= only runs on FreeBSD 13.1 and above due use of O_EMPTY_PATH - USES= cpe CONFLICTS_INSTALL?= samba4* diff --git a/net/sflowtool/Makefile b/net/sflowtool/Makefile --- a/net/sflowtool/Makefile +++ b/net/sflowtool/Makefile @@ -22,13 +22,6 @@ OPTIONS_DEFINE= DOCS EXAMPLES -.include - -# Patch byteswap.h where not available -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301511 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_sflowtool.c -.endif - post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} diff --git a/net/sflowtool/files/extra-patch-src_sflowtool.c b/net/sflowtool/files/extra-patch-src_sflowtool.c deleted file mode 100644 --- a/net/sflowtool/files/extra-patch-src_sflowtool.c +++ /dev/null @@ -1,25 +0,0 @@ ---- src/sflowtool.c.orig 2023-03-23 17:36:24 UTC -+++ src/sflowtool.c -@@ -29,13 +29,21 @@ extern "C" { - #include - #include - #include --#include -+#include - #include - - #include "sflow.h" /* sFlow v5 */ - #include "sflow_v2v4.h" /* sFlow v2/4 */ - #include "assert.h" - #include "sflow_xdr.h" /* sFlow encode */ -+ -+#define __bswap_16(x) __bswap16(x) -+#define __bswap_32(x) __bswap32(x) -+#define __bswap_64(x) __bswap64(x) -+ -+#define bswap_16(x) __bswap16(x) -+#define bswap_32(x) __bswap32(x) -+#define bswap_64(x) __bswap64(x) - - #define SPOOFSOURCE 1 - #define YES 1 diff --git a/net/sniffnet/Makefile b/net/sniffnet/Makefile --- a/net/sniffnet/Makefile +++ b/net/sniffnet/Makefile @@ -13,8 +13,6 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT -BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create - LIB_DEPENDS= libasound.so:audio/alsa-lib \ libfreetype.so:print/freetype2 \ libfontconfig.so:x11-fonts/fontconfig diff --git a/net/tcplog_dumper/Makefile b/net/tcplog_dumper/Makefile --- a/net/tcplog_dumper/Makefile +++ b/net/tcplog_dumper/Makefile @@ -13,7 +13,6 @@ ONLY_FOR_ARCHS= aarch64 amd64 mips64 mips64el mips64elhf mips64hf powerpc64 powerpc64le riscv64 riscv64sf ONLY_FOR_ARCHS_REASON= only 64-bit platforms are supported -IGNORE_FreeBSD_12=does not build USE_GITHUB= yes GH_ACCOUNT= Netflix diff --git a/net/tcprtt/Makefile b/net/tcprtt/Makefile --- a/net/tcprtt/Makefile +++ b/net/tcprtt/Makefile @@ -7,7 +7,6 @@ LICENSE= BSD2CLAUSE -IGNORE_FreeBSD_12=requires kernel OSVERSION 1300062 or above USE_GITHUB= yes GH_ACCOUNT= KlaraSystems GH_TAGNAME= 1c857b8bd6e071290d118c96c051fbdf7db40129 diff --git a/net/widentd/Makefile b/net/widentd/Makefile --- a/net/widentd/Makefile +++ b/net/widentd/Makefile @@ -12,14 +12,8 @@ USES= ncurses uidfix tar:xz USE_RC_SUBR= widentd -MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man" +MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/man/man" MK_WERROR=no PLIST_FILES= sbin/widentd man/man8/widentd.8.gz .include - -.if ${OSREL:R} < 13 -MAKE_ENV+=NO_WERROR=1 -.else -MAKE_ENV+=MK_WERROR=no -.endif diff --git a/net/wifibox-core/Makefile b/net/wifibox-core/Makefile --- a/net/wifibox-core/Makefile +++ b/net/wifibox-core/Makefile @@ -22,7 +22,6 @@ RECOVER_NONE OPTIONS_DEFAULT= RECOVER_RESTART_VMM -OPTIONS_EXCLUDE_FreeBSD_12= BHYVE_PLUS RECOVER_RESTART_VMM_DESC= Restart the vmm(4) kernel module on resume RECOVER_SUSPEND_GUEST_DESC= Stop the guest on suspend, start on resume @@ -33,7 +32,7 @@ .include -.if ${PORT_OPTIONS:MBHYVE_PLUS} || (${OSVERSION} < 1300000) +.if ${PORT_OPTIONS:MBHYVE_PLUS} RUN_DEPENDS+= bhyve+>0:sysutils/bhyve+ _BHYVE_PLUS= yes .endif diff --git a/net/yate/Makefile b/net/yate/Makefile --- a/net/yate/Makefile +++ b/net/yate/Makefile @@ -11,7 +11,7 @@ LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libasound.so:audio/alsa-lib \ libspeex.so:audio/speex \ diff --git a/net/zerotier/Makefile b/net/zerotier/Makefile --- a/net/zerotier/Makefile +++ b/net/zerotier/Makefile @@ -35,13 +35,8 @@ .if ${OPSYS} == "FreeBSD" # log output via syslog SUB_LIST+= ZEROTIER_SYSLOG="-s debug -T zerotier" -# after r347241 tun(4) and tap(4) have been merged to tuntap(4) -.if (${OSVERSION} >= 1300028) SUB_LIST+= ZEROTIER_IF_TAP="if_tuntap" .else -SUB_LIST+= ZEROTIER_IF_TAP="if_tap" -.endif -.else # we are not on FreeBSD SUB_LIST+= ZEROTIER_IF_TAP="if_tap" \ ZEROTIER_SYSLOG="" diff --git a/ports-mgmt/synth/Makefile b/ports-mgmt/synth/Makefile --- a/ports-mgmt/synth/Makefile +++ b/ports-mgmt/synth/Makefile @@ -28,14 +28,6 @@ WATCHDOG_EXTRA_PATCHES_OFF= ${FILESDIR}/extrapatch-nowatchdog-portscan-buildcycle.adb -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses:base -.else -USES+= ncurses:port -.endif - .include post-extract: diff --git a/print/pdf-tools/Makefile b/print/pdf-tools/Makefile --- a/print/pdf-tools/Makefile +++ b/print/pdf-tools/Makefile @@ -12,8 +12,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -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} \ tablist${EMACS_PKGNAMESUFFIX}>=0.70.4:devel/tablist@${EMACS_FLAVOR} LIB_DEPENDS= libpng.so:graphics/png \ diff --git a/science/agrum/Makefile b/science/agrum/Makefile --- a/science/agrum/Makefile +++ b/science/agrum/Makefile @@ -9,8 +9,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= requires modern C++ compiler: error: invalid value 'c++2b' - USES= cmake compiler:c++20-lang shebangfix # the 'act' executable uses 'python' and is broken, when act is broken CMakeLists.txt builds with default configuration which is fine USE_LDCONFIG= yes diff --git a/science/cantera/Makefile b/science/cantera/Makefile --- a/science/cantera/Makefile +++ b/science/cantera/Makefile @@ -27,8 +27,6 @@ GH_ACCOUNT= Cantera GH_TUPLE= LLNL:sundials:887af43:sundials/ext/sundials # bundled sundials is only needed for the Octave option -CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}} -CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE MAKE_ARGS= system_eigen='y' \ system_sundials='n' \ system_fmt='y' \ diff --git a/science/cdo/Makefile b/science/cdo/Makefile --- a/science/cdo/Makefile +++ b/science/cdo/Makefile @@ -40,6 +40,7 @@ TEST_TARGET= check USE_CXXSTD= c++17 USE_LDCONFIG= yes +CFLAGS+= -DPTHREAD_MUTEXATTR CGRIBEX_CONFIGURE_WITH= cgribex CGRIBEX_LIB_DEPENDS= libcgribex.so:science/cgribex @@ -60,12 +61,6 @@ UUID_CONFIGURE_OFF= ac_cv_func_uuid_create=no ac_cv_have_decl_uuid_create=no ac_cv_have_decl_uuid_generate=no ac_cv_lib_uuid_uuid_generate=no UUID_LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid -.include - -.if ${ARCH} != "sparc64" -CFLAGS+= -DPTHREAD_MUTEXATTR -.endif - post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS = / s| contrib||' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|$$(libdir)/\($$$$pkgconfigfile\)|${PREFIX}/libdata/\1|' ${WRKSRC}/libcdi/src/Makefile.in @@ -77,4 +72,4 @@ test-NETCDF-on: @cd ${WRKSRC}/ && ${SETENV} CDO_PATH=src/cdo src/cdotest -.include +.include diff --git a/science/dftbplus/Makefile b/science/dftbplus/Makefile --- a/science/dftbplus/Makefile +++ b/science/dftbplus/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility) BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890 -BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890 -BROKEN_FreeBSD_12_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890 LIB_DEPENDS= libblas.so:math/blas \ liblapack.so:math/lapack \ diff --git a/science/libctl/Makefile b/science/libctl/Makefile --- a/science/libctl/Makefile +++ b/science/libctl/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv2 -BROKEN_sparc64= does not build - USES= fortran guile:2.2 libtool pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-shared diff --git a/science/libtensorflow1/Makefile b/science/libtensorflow1/Makefile --- a/science/libtensorflow1/Makefile +++ b/science/libtensorflow1/Makefile @@ -119,11 +119,6 @@ BAZEL_OPTS= --output_user_root=${WRKDIR}/bazel_out -.include -.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200000 && ${OSVERSION} < 1300000 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-third_party_repo.bzl -.endif - post-extract: # THIRD_PARTY_TF_C_LICENSES is generated as a Bazel build target (see # //tensorflow/tools/lib_package:clicenses) and the empty file written diff --git a/science/libtensorflow1/files/extra-patch-third_party_repo.bzl b/science/libtensorflow1/files/extra-patch-third_party_repo.bzl deleted file mode 100644 --- a/science/libtensorflow1/files/extra-patch-third_party_repo.bzl +++ /dev/null @@ -1,25 +0,0 @@ ---- third_party/repo.bzl.orig -+++ third_party/repo.bzl -@@ -62,13 +62,15 @@ def _repos_are_siblings(): - return Label("@foo//bar").workspace_root.startswith("../") - - # Apply a patch_file to the repository root directory --# Runs 'git apply' on Unix, 'patch -p1' on Windows. -+# Runs 'patch -p1' - def _apply_patch(ctx, patch_file): -- if _is_windows(ctx): -- patch_command = ["patch", "-p1", "-d", ctx.path("."), "-i", ctx.path(patch_file)] -- else: -- patch_command = ["git", "apply", "-v", ctx.path(patch_file)] -- cmd = _wrap_bash_cmd(ctx, patch_command) -+ # Don't check patch on Windows, because patch is only available under bash. -+ if not _is_windows(ctx) and not ctx.which("patch"): -+ fail("patch command is not found, please install it") -+ cmd = _wrap_bash_cmd( -+ ctx, -+ ["patch", "-p1", "-d", ctx.path("."), "-i", ctx.path(patch_file)], -+ ) - _execute_and_check_ret_code(ctx, cmd) - - def _apply_delete(ctx, paths): - diff --git a/science/siesta/Makefile b/science/siesta/Makefile --- a/science/siesta/Makefile +++ b/science/siesta/Makefile @@ -12,8 +12,6 @@ LICENSE_FILE= ${WRKSRC}/../COPYING BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890 -BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890 -BROKEN_FreeBSD_12_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890 LIB_DEPENDS= libblas.so:math/blas \ liblapack.so:math/lapack diff --git a/science/simlib/Makefile b/science/simlib/Makefile --- a/science/simlib/Makefile +++ b/science/simlib/Makefile @@ -11,7 +11,7 @@ LICENSE= LGPL20 BROKEN_riscv64= fails to compile: process.cc:53:3: module process.cc is not ported to this processor architecture -NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64 sparc64 +NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 powerpc powerpc64 NOT_FOR_ARCHS_REASON= contains not working ${ARCH}-dependent assembly code USES= gmake diff --git a/science/step/Makefile b/science/step/Makefile --- a/science/step/Makefile +++ b/science/step/Makefile @@ -23,7 +23,6 @@ widgets xml \ buildtools:build qmake:build USE_XORG= x11 -CXXFLAGS_sparc64= -Wno-error=return-type SHEBANG_FILES= step/data/extractxml diff --git a/science/zotero/Makefile b/science/zotero/Makefile --- a/science/zotero/Makefile +++ b/science/zotero/Makefile @@ -14,7 +14,6 @@ ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= uses FreeBSD 13.x precompiled binaries -BROKEN_FreeBSD_12= uses FreeBSD 13.x precompiled binaries LIB_DEPENDS= libasound.so:audio/alsa-lib \ libatk-bridge-2.0.so:accessibility/at-spi2-core \ diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile --- a/security/hashcat/Makefile +++ b/security/hashcat/Makefile @@ -11,7 +11,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/docs/license.txt -NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= fails to compile: compiling for big-endian architecture not supported BUILD_DEPENDS= minizip:archivers/minizip diff --git a/security/isal-kmod/Makefile b/security/isal-kmod/Makefile --- a/security/isal-kmod/Makefile +++ b/security/isal-kmod/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/isa-l_crypto/LICENSE -IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later ONLY_FOR_ARCHS= amd64 BUILD_DEPENDS= yasm:devel/yasm diff --git a/security/libfido2/Makefile b/security/libfido2/Makefile --- a/security/libfido2/Makefile +++ b/security/libfido2/Makefile @@ -23,11 +23,4 @@ OPTIONS_DEFINE= DOCS -.include - -# Skip libcrypto.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file -.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/libcrypto.pc) -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl -.endif - -.include +.include diff --git a/security/libfido2/files/extra-patch-openssl b/security/libfido2/files/extra-patch-openssl deleted file mode 100644 --- a/security/libfido2/files/extra-patch-openssl +++ /dev/null @@ -1,26 +0,0 @@ ---- CMakeLists.txt.orig 2022-01-17 12:42:03 UTC -+++ CMakeLists.txt -@@ -196,14 +196,10 @@ if(MSVC) - else() - include(FindPkgConfig) - pkg_search_module(CBOR libcbor) -- pkg_search_module(CRYPTO libcrypto) - pkg_search_module(ZLIB zlib) - - if(NOT CBOR_FOUND AND NOT HAVE_CBOR_H) - message(FATAL_ERROR "could not find libcbor") -- endif() -- if(NOT CRYPTO_FOUND AND NOT HAVE_OPENSSLV_H) -- message(FATAL_ERROR "could not find libcrypto") - endif() - if(NOT ZLIB_FOUND) - message(FATAL_ERROR "could not find zlib") ---- src/libfido2.pc.in.orig 2022-01-17 12:42:03 UTC -+++ src/libfido2.pc.in -@@ -7,6 +7,5 @@ Name: @PROJECT_NAME@ - Description: A FIDO2 library - URL: https://github.com/yubico/libfido2 - Version: @FIDO_VERSION@ --Requires: libcrypto - Libs: -L${libdir} -lfido2 - Cflags: -I${includedir} diff --git a/security/nettle/Makefile b/security/nettle/Makefile --- a/security/nettle/Makefile +++ b/security/nettle/Makefile @@ -36,10 +36,6 @@ .include -.if ${ARCH} == "sparc64" -CONFIGURE_ENV+= CCPIC=-fPIC -.endif - .if ${ARCH} == "mips64" post-patch: @${REINPLACE_CMD} -e 's|__sgi|__unix__|' ${WRKSRC}/configure diff --git a/security/openssl-quictls/Makefile b/security/openssl-quictls/Makefile --- a/security/openssl-quictls/Makefile +++ b/security/openssl-quictls/Makefile @@ -47,8 +47,7 @@ OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \ RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2 -OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \ - ${${OSVERSION} > 1300000:?CRYPTODEV:} +OPTIONS_EXCLUDE= CRYPTODEV OPTIONS_EXCLUDE_i386= FIPS OPTIONS_GROUP_OPTIMIZE_amd64= EC @@ -143,19 +142,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ -e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \ diff --git a/security/openssl/Makefile b/security/openssl/Makefile --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -45,8 +45,7 @@ OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \ RFC3779 RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2 -OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \ - ${${OSVERSION} > 1300000:?CRYPTODEV:} +OPTIONS_EXCLUDE=CRYPTODEV .if ${MACHINE_ARCH} == "amd64" OPTIONS_GROUP_OPTIMIZE+= EC @@ -149,19 +148,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ -e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \ diff --git a/security/openssl111/Makefile b/security/openssl111/Makefile --- a/security/openssl111/Makefile +++ b/security/openssl111/Makefile @@ -45,8 +45,7 @@ OPTIONS_DEFAULT=ASM ASYNC CT GOST DES EC KTLS MAN3 MD4 NEXTPROTONEG RC2 \ RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2 -OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \ - ${${OSVERSION} > 1300000:?CRYPTODEV:} +OPTIONS_EXCLUDE=CRYPTODEV .if ${MACHINE_ARCH} == "amd64" OPTIONS_GROUP_OPTIMIZE+= EC @@ -125,19 +124,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} \ -e 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ diff --git a/security/openssl31-quictls/Makefile b/security/openssl31-quictls/Makefile --- a/security/openssl31-quictls/Makefile +++ b/security/openssl31-quictls/Makefile @@ -143,19 +143,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ -e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \ diff --git a/security/openssl31/Makefile b/security/openssl31/Makefile --- a/security/openssl31/Makefile +++ b/security/openssl31/Makefile @@ -45,8 +45,7 @@ OPTIONS_DEFAULT=ASM ASYNC CT DES EC FIPS GOST KTLS MAN3 MD4 NEXTPROTONEG \ RFC3779 RC2 RC4 RMD160 SCTP SHARED SSE2 THREADS TLS1 TLS1_1 TLS1_2 -OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \ - ${${OSVERSION} > 1300000:?CRYPTODEV:} +OPTIONS_EXCLUDE=CRYPTODEV OPTIONS_GROUP_OPTIMIZE_amd64= EC @@ -151,19 +150,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ -e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \ diff --git a/security/openssl32/Makefile b/security/openssl32/Makefile --- a/security/openssl32/Makefile +++ b/security/openssl32/Makefile @@ -45,8 +45,7 @@ THREADPOOL THREADS TLS1 TLS1_1 TLS1_2 #OPTIONS_DEFAULT+= KTLS pending updated KTLS patch -OPTIONS_EXCLUDE=${${OSVERSION} < 1300042:?KTLS:} \ - ${${OSVERSION} > 1300000:?CRYPTODEV:} +OPTIONS_EXCLUDE=CRYPTODEV OPTIONS_GROUP_OPTIMIZE_amd64= EC @@ -162,19 +161,11 @@ IGNORE= the OpenSSL port can not be installed over the base version .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 && !${PORT_OPTIONS:MCRYPTODEV} -CONFIGURE_ARGS+= no-devcryptoeng -.endif - OPENSSLDIR?= ${PREFIX}/openssl PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==} .include "version.mk" -.if ${PORT_OPTIONS:MASM} -BROKEN_sparc64= option ASM generates illegal instructions -.endif - post-patch: ${REINPLACE_CMD} -Ee 's|^MANDIR=.*$$|MANDIR=$$(INSTALLTOP)/man|' \ -e 's|^(build\|install)_docs: .*|\1_docs: \1_man_docs|' \ diff --git a/security/openvpn-devel/Makefile b/security/openvpn-devel/Makefile --- a/security/openvpn-devel/Makefile +++ b/security/openvpn-devel/Makefile @@ -54,7 +54,6 @@ OPTIONS_DEFINE= DOCS EASYRSA EXAMPLES LZ4 PKCS11 SMALL DCO TEST \ X509ALTUSERNAME OPTIONS_DEFAULT= EASYRSA LZ4 OPENSSL TEST DCO -OPTIONS_EXCLUDE_FreeBSD_12= DCO # FreeBSD 14 only OPTIONS_EXCLUDE_FreeBSD_13= DCO # FreeBSD 14 only OPTIONS_SINGLE= SSL OPTIONS_SINGLE_SSL= MBEDTLS OPENSSL diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -42,7 +42,6 @@ OPTIONS_DEFINE= ASYNC_PUSH DCO DOCS EASYRSA EXAMPLES LZ4 LZO PKCS11 SMALL \ TEST UNITTESTS X509ALTUSERNAME OPTIONS_DEFAULT= DCO EASYRSA LZ4 LZO PKCS11 TEST -OPTIONS_EXCLUDE_FreeBSD_12= DCO # FreeBSD 14 only OPTIONS_EXCLUDE_FreeBSD_13= DCO # FreeBSD 14 only ASYNC_PUSH_DESC= Enable async-push support diff --git a/security/opie/Makefile b/security/opie/Makefile --- a/security/opie/Makefile +++ b/security/opie/Makefile @@ -22,7 +22,6 @@ LIBDIR=${PREFIX}/lib \ MANDIR=${MANPREFIX}/man/man -IGNORE_FreeBSD_12= FreeBSD 12 has OPIE in base IGNORE_FreeBSD_13= FreeBSD 13 has OPIE in base .include diff --git a/security/p5-Crypt-Curve25519/Makefile b/security/p5-Crypt-Curve25519/Makefile --- a/security/p5-Crypt-Curve25519/Makefile +++ b/security/p5-Crypt-Curve25519/Makefile @@ -13,7 +13,6 @@ BROKEN_mips= fails to build: -m32 flag is not supported by this configuration BROKEN_mips64= fails to build: -m32 flag is not supported by this configuration -BROKEN_sparc64= fails to build: -m32 flag is not supported by this configuration USES= perl5 ssl USE_PERL5= configure diff --git a/security/p5-PGP/Makefile b/security/p5-PGP/Makefile --- a/security/p5-PGP/Makefile +++ b/security/p5-PGP/Makefile @@ -9,7 +9,7 @@ COMMENT= Perl5 module to work with PGP messages WWW= https://metacpan.org/release/PGP -ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le RUN_DEPENDS= pgpin:security/pgpin diff --git a/security/pam_ssh_agent_auth/Makefile b/security/pam_ssh_agent_auth/Makefile --- a/security/pam_ssh_agent_auth/Makefile +++ b/security/pam_ssh_agent_auth/Makefile @@ -16,7 +16,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_12_powerpc64= fails to compile on powerpc64 elfv1: ed25519-donna-portable.h: warning: ALIGN redefined USES= perl5 ssl tar:bzip2 USE_PERL5= build diff --git a/security/pam_u2f/Makefile b/security/pam_u2f/Makefile --- a/security/pam_u2f/Makefile +++ b/security/pam_u2f/Makefile @@ -25,8 +25,4 @@ man/man1/pamu2fcfg.1.gz \ man/man8/pam_u2f.8.gz -.if !exists(/usr/libdata/pkgconfig/libcrypto.pc) -CONFIGURE_ENV= LIBCRYPTO_CFLAGS="-I${OPENSSLINC}" LIBCRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" -.endif - .include diff --git a/security/picocrypt/Makefile b/security/picocrypt/Makefile --- a/security/picocrypt/Makefile +++ b/security/picocrypt/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../LICENSE -ONLY_FOR_ARCHS= aarch64 amd64 mips64 powerpc64 powerpc64le riscv64 sparc64 +ONLY_FOR_ARCHS= aarch64 amd64 mips64 powerpc64 powerpc64le riscv64 ONLY_FOR_ARCHS_REASON= upstream only supports 64-bit # https://github.com/HACKERALERT/Picocrypt/issues/127 diff --git a/security/pkcs11-tools/Makefile b/security/pkcs11-tools/Makefile --- a/security/pkcs11-tools/Makefile +++ b/security/pkcs11-tools/Makefile @@ -38,8 +38,6 @@ INSTALL_TARGET= install-strip -.include - post-extract: @${RMDIR} ${WRKSRC}/.gnulib ${WRKSRC}/include/oasis-pkcs11 @${MV} ${WRKSRC_gnulib} ${WRKSRC}/.gnulib @@ -48,17 +46,6 @@ pre-configure: @cd ${WRKSRC} && BUILD_PORT=1 ${WRKSRC}/bootstrap.sh -# FreeBSD<13 does not have system-deployed openssl information through PKGCONFIG -# We need to provide a hint at configure time - -.if ${OPSYS} == FreeBSD && ( ${OSVERSION} <= 1300000 ) -LIBCRYPTO_CFLAGS+= -pthread -LIBCRYPTO_LIBS+= -lcrypto - -do-configure: - @cd ${WRKSRC} && ./configure LIBCRYPTO_CFLAGS=${LIBCRYPTO_CFLAGS} LIBCRYPTO_LIBS=${LIBCRYPTO_LIBS} -.endif - post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} \ diff --git a/security/rcracki_mt/Makefile b/security/rcracki_mt/Makefile --- a/security/rcracki_mt/Makefile +++ b/security/rcracki_mt/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv2 -NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64 sparc64 +NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64 NOT_FOR_ARCHS_REASON= cannot detect endianness WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME} diff --git a/security/snort3/Makefile b/security/snort3/Makefile --- a/security/snort3/Makefile +++ b/security/snort3/Makefile @@ -62,12 +62,6 @@ THREADSANITIZER_CMAKE_BOOL= ENABLE_THREAD_SANITIZER TSC_CMAKE_BOOL= ENABLE_TSC_CLOCK -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -BUILD_DEPENDS= flex>0:textproc/flex -.endif - post-patch: ${REINPLACE_CMD} -e 's|_LIBDIR}/pkgconfig|_PREFIX}/libdata/pkgconfig|g' \ ${WRKSRC}/cmake/create_pkg_config.cmake diff --git a/security/sssd-devel/Makefile b/security/sssd-devel/Makefile --- a/security/sssd-devel/Makefile +++ b/security/sssd-devel/Makefile @@ -56,13 +56,8 @@ RUN_DEPENDS= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi \ sudo>0:security/sudo -.include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300076 -IGNORE=SSSD is only supported on FreeBSD 13.1 and above -.endif - USES= autoreconf cpe gettext gmake gssapi:bootstrap,flags,mit iconv ldap \ - libtool pathfix pkgconfig python:3.9+ shebangfix ssl + libtool localbase:ldflags pathfix pkgconfig python:3.9+ shebangfix ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -127,7 +122,7 @@ --with-unicode-lib=libunistring CFLAGS+= -fstack-protector-all -CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/samba4 +CFLAGS+= -I${LOCALBASE}/include/samba4 LIBS+= -L${LOCALBASE}/lib \ -L${LOCALBASE}/lib/samba4/private \ @@ -142,7 +137,6 @@ LDFLAGS+= -lgssapi LDFLAGS_SL+= -lgssapi -LDFLAGS+= -L${LOCALBASE}/lib INCLUDES+= -I${LOCALBASE}/include CONFIGURE_ENV+= INCLUDES="${INCLUDES}" \ LDFLAGS_SL="${LDFLAGS_SL}" diff --git a/security/tor/Makefile b/security/tor/Makefile --- a/security/tor/Makefile +++ b/security/tor/Makefile @@ -25,7 +25,6 @@ OPTIONS_GROUP_COMPRESSION= ZSTD LZMA OPTIONS_GROUP_TRACING= LTTNG USDT LOG_DEBUG OPTIONS_DEFAULT=MANPAGES ZSTD LZMA -OPTIONS_EXCLUDE_FreeBSD_12=DOCS MANPAGES # XXX(rene) a2x somehow broken there OPTIONS_SUB= yes STATIC_TOR_DESC= Build a static tor COMPRESSION_DESC= Supported compression libraries diff --git a/security/wazuh-manager/Makefile b/security/wazuh-manager/Makefile --- a/security/wazuh-manager/Makefile +++ b/security/wazuh-manager/Makefile @@ -140,10 +140,8 @@ .include -.if ${OSVERSION} >= 1200500 && ${OSVERSION} < 1300000 -IGNORE= FreeBSD 12.x (EoL) is not supported on ${ARCH} -.elif ${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000 -FBSD_VERSION_BASE=freebsd_13_2_release_p8 +.if ${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000 +FBSD_VERSION_BASE=freebsd_13_2_release_p4 WAZUH_CACHENAME=${PORTNAME}-cache-fbsd13-${ARCH}-${DISTVERSION} DISTFILES+= ${WAZUH_CACHENAME}${EXTRACT_SUFX}:wazuh_cache .elif ${OSVERSION} >= 1400000 && ${OSVERSION} < 1500000 diff --git a/security/zeek/Makefile b/security/zeek/Makefile --- a/security/zeek/Makefile +++ b/security/zeek/Makefile @@ -10,8 +10,6 @@ LICENSE= CC-BY-4.0 -BROKEN_FreeBSD_12_powerpc64= does not build: error: zero-size array 'names' - BUILD_DEPENDS= bison>=3.3:devel/bison \ flex>=2.6:textproc/flex \ swig>=4.0.2:devel/swig diff --git a/shells/ksh-devel/Makefile b/shells/ksh-devel/Makefile --- a/shells/ksh-devel/Makefile +++ b/shells/ksh-devel/Makefile @@ -19,8 +19,6 @@ LICENSE= EPL -BROKEN_FreeBSD_12= exit code 139 making lib/libcmd - HASH= e9182bd6 AST_COMMIT_DATE= 2023.09.24 diff --git a/shells/v7sh/files/Makefile b/shells/v7sh/files/Makefile --- a/shells/v7sh/files/Makefile +++ b/shells/v7sh/files/Makefile @@ -13,11 +13,7 @@ CWARNFLAGS?= -ansi -Wbad-function-cast WARNS?= 6 -.if ${OSREL:R} < 13 -NO_WERROR=1 -.else MK_WERROR=no -.endif WFORMAT=0 .include diff --git a/sysutils/Makefile b/sysutils/Makefile --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -22,7 +22,6 @@ SUBDIR += acpica-tools SUBDIR += acts SUBDIR += adtool - SUBDIR += afbinit SUBDIR += afflib SUBDIR += afio SUBDIR += agedu diff --git a/sysutils/acpica-tools/Makefile b/sysutils/acpica-tools/Makefile --- a/sysutils/acpica-tools/Makefile +++ b/sysutils/acpica-tools/Makefile @@ -13,8 +13,6 @@ LICENSE= BSD3CLAUSE GPLv2 LICENSE_COMB= dual -BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: comparison is always true due to limited range of data type - USES= gmake BUILD_WRKSRC= ${WRKSRC}/generate/unix diff --git a/sysutils/afbinit/Makefile b/sysutils/afbinit/Makefile deleted file mode 100644 --- a/sysutils/afbinit/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -PORTNAME= afbinit -PORTVERSION= 1.0 -PORTREVISION= 4 -CATEGORIES= sysutils graphics -MASTER_SITES= DEBIAN/pool/contrib/a/afbinit/:afbinit,patch \ - http://dlc.sun.com/osol/sparc-gfx/downloads/:microcode -DISTFILES= ${PORTNAME}_${PORTVERSION}.orig.tar.gz:afbinit \ - afb-ucode.tar.bz2:microcode -DIST_SUBDIR= ${PORTNAME} - -PATCH_SITES= ${MASTER_SITES} -PATCHFILES= ${PORTNAME}_${PORTVERSION}-4.diff.gz:patch -PATCH_DIST_STRIP= -p1 - -MAINTAINER= ports@FreeBSD.org -COMMENT= Sun AFB aka Sun Elite 3D microcode firmware loader - -DEPRECATED= sparc64 architecture is deprecated in FreeBSD -EXPIRATION_DATE= 2023-12-31 - -OPTIONS_DEFINE= DOCS - -ONLY_FOR_ARCHS= sparc64 -USE_RC_SUBR= afbinit -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig -PKGMESSAGE= ${WRKDIR}/pkg-message - -post-patch: -.for i in afbinit.c debian/afbinit.8 - @${REINPLACE_CMD} -E -e 's|\/usr\/lib|${DATADIR}|g; \ - s|(\/dev\/fb\[)[0-3]+(\])|\10-7\2|g; \ - s|\/etc\/init.d\/afbinit|${PREFIX}/etc/rc.d/afbinit\{,.sh\}|g' \ - ${WRKSRC}/${i} -.endfor - @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${PKGDIR}/pkg-message > \ - ${WRKDIR}/pkg-message - -do-build: - @cd ${WRKSRC} && ${CC} ${CFLAGS} -o afbinit afbinit.c - -do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${STAGEDIR}${PREFIX}/sbin - @${INSTALL_MAN} ${WRKSRC}/debian/afbinit.8 ${STAGEDIR}${PREFIX}/man/man8 - @${INSTALL} -d ${STAGEDIR}${DATADIR} - @${INSTALL_DATA} ${WRKDIR}/afb-ucode/afb.ucode ${STAGEDIR}${DATADIR} - @${INSTALL} -d ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${WRKDIR}/afb-ucode/README ${STAGEDIR}${DOCSDIR} - -.include diff --git a/sysutils/afbinit/distinfo b/sysutils/afbinit/distinfo deleted file mode 100644 --- a/sysutils/afbinit/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -SHA256 (afbinit/afbinit_1.0.orig.tar.gz) = cc0e316ed911955042186f5e1ccc43f9413fa369e4ddb8de8aaad293ad56a206 -SIZE (afbinit/afbinit_1.0.orig.tar.gz) = 2979 -SHA256 (afbinit/afb-ucode.tar.bz2) = 6ef1da6c6ff7a6ba07d7cf8c5b3677e353d59b8baea40af05ae0ee56d2befc84 -SIZE (afbinit/afb-ucode.tar.bz2) = 36421 -SHA256 (afbinit/afbinit_1.0-4.diff.gz) = ca6a321f6e85dd63ac0b12c88468e8104f22014f0533ff416a9215d8f200c971 -SIZE (afbinit/afbinit_1.0-4.diff.gz) = 3815 diff --git a/sysutils/afbinit/files/afbinit.in b/sysutils/afbinit/files/afbinit.in deleted file mode 100644 --- a/sysutils/afbinit/files/afbinit.in +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# PROVIDE: afbinit -# REQUIRE: devfs -# -# Available configuration variables for afbinit are: -# -# afbinit_enable (bool): Set to "YES" to enable afbinit. -# Defaults to "NO". -# -# Add at least the following line to /etc/rc.conf or /etc/rc.conf.local to -# enable afbinit: -# -# afbinit="YES" -# - -. /etc/rc.subr - -name="afbinit" -rcvar=afbinit_enable - -start_cmd="afbinit_startcmd" - -afbinit_startcmd() -{ - if [ ! -r %%DATADIR%%/afb.ucode ]; then - err 1 '%%DATADIR%%/afb.ucode is not readable.' - fi - - for fb in /dev/fb[0-7]; do - %%PREFIX%%/sbin/afbinit ${fb} %%DATADIR%%/afb.ucode - done -} - -load_rc_config $name - -: ${afbinit_enable="NO"} - -run_rc_command "$1" diff --git a/sysutils/afbinit/files/patch-afbinit.c b/sysutils/afbinit/files/patch-afbinit.c deleted file mode 100644 --- a/sysutils/afbinit/files/patch-afbinit.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Creator, Creator3D and Elite3D framebuffer driver. - * - * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com) - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ -/* XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/ffb_driver.c,v 1.11 2002/12/06 02:44:04 tsi Exp */ - ---- afbinit.c.orig Fri Nov 30 03:04:21 2001 -+++ afbinit.c Mon Sep 15 17:33:19 2003 -@@ -186,7 +186,7 @@ - - static void usage(char *me) - { -- printf("Usage: %s /dev/fb[0123] [ucode_file]\n", me); -+ printf("Usage: %s /dev/fb[0-7] [ucode_file]\n", me); - exit(1); - } - -@@ -195,13 +195,14 @@ - struct afb_ucode_header { - char ident[8]; - unsigned int ucode_words; -- unsigned int __unused[2]; -+ unsigned int unused[2]; - } ucheader; - unsigned int *ucode; - int afb_fd, ucode_fd, ucode_version; - void *uregs, *kregs; - char *afb_fname; - char *ucode_fname = UCODE_FILE; -+ unsigned int fem; - - if(argc != 2 && argc != 3) - usage(argp[0]); -@@ -224,7 +225,7 @@ - perror("Read UCODE header"); - exit(1); - } -- ucode = (unsigned int *)malloc(ucheader.ucode_words << 2); -+ ucode = (unsigned int *)(uintptr_t)malloc(ucheader.ucode_words << 2); - if(ucode == NULL) { - fprintf(stderr, "Cannot malloc %d bytes for UCODE.\n", - ucheader.ucode_words << 2); -@@ -256,15 +257,27 @@ - exit(1); - } - -- /* Say what UCODE version we are loading. */ -+ fem = *AFB_UREG_FEM(uregs) & 0x7f; -+ if (fem == 0x07 || fem == 0x3f) { -+ fprintf(stderr, "%s: Elite3D/M%s microcode already loaded.\n", -+ afb_fname, fem == 0x07 ? "3" : "6"); -+ exit(1); -+ } -+ if (fem != 0x01) { -+ fprintf(stderr, "%s: Not an AFB board.\n", afb_fname); -+ exit(1); -+ } -+ -+ afb_ucode_upload((char *)ucode, ucheader.ucode_words / 16, uregs, -+ kregs); - ucode_version = *(ucode + (0x404 / sizeof(unsigned int))); -- printf("Revision-%d.%d.%d ", -+ fem = *AFB_UREG_FEM(uregs) & 0x7f; -+ printf("%s: Elite3D/M%s microcode revision %d.%d.%d loaded.\n", -+ afb_fname, fem == 0x07 ? "3" : "6", - (ucode_version >> 16) & 0xff, - (ucode_version >> 8) & 0xff, - (ucode_version >> 0) & 0xff); - -- afb_ucode_upload((char *)ucode, ucheader.ucode_words / 16, uregs, kregs); -- - munmap(kregs, 0x2000); - munmap(uregs, 0x2000); - diff --git a/sysutils/afbinit/pkg-descr b/sysutils/afbinit/pkg-descr deleted file mode 100644 --- a/sysutils/afbinit/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -This port provides a program that loads the microcode firmware onto Sun -Microsystems AFB Graphics Accelerators aka Sun Microsystems Elite 3D -found in many UltraSPARC systems. The microcode is necessary if you want -to run X.Org with acceleration on these cards and is also included in this -port. diff --git a/sysutils/afbinit/pkg-message b/sysutils/afbinit/pkg-message deleted file mode 100644 --- a/sysutils/afbinit/pkg-message +++ /dev/null @@ -1,10 +0,0 @@ -[ -{ type: install - message: < - -.if ${OSREL:R} == 12 -DIST_TYPE= 12_x86_64 -.else DIST_TYPE= 13_x86_64 -.endif NO_BUILD= yes NO_WRKSUBDIR= yes @@ -45,4 +39,4 @@ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} ${STAGEDIR}${PREFIX}/etc/periodic/daily -.include +.include diff --git a/sysutils/bhyve+/Makefile b/sysutils/bhyve+/Makefile --- a/sysutils/bhyve+/Makefile +++ b/sysutils/bhyve+/Makefile @@ -42,9 +42,7 @@ PLIST_SUB= 9P_SHLIB_MAJOR=${LIB9P_VERSION} \ VMMAPI_SHLIB_MAJOR=${LIBVMMAPI_VERSION} -.if 1200000 <= ${OSVERSION} && ${OSVERSION} < 1300000 -EXTRA_PATCHES= ${PATCHDIR}/freebsd-12 ${PATCHDIR}/freebsd-12/3 -.elif 1301000 <= ${OSVERSION} && ${OSVERSION} < 1400000 +.if 1302000 <= ${OSVERSION} && ${OSVERSION} < 1400000 EXTRA_PATCHES= ${PATCHDIR}/freebsd-13/1 .elif 1400000 <= ${OSVERSION} && ${OSVERSION} < 1500000 EXTRA_PATCHES= ${PATCHDIR}/freebsd-14 diff --git a/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p b/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p deleted file mode 100644 --- a/sysutils/bhyve+/files/freebsd-12/3/patch-virtio-9p +++ /dev/null @@ -1,31 +0,0 @@ ---- usr.sbin/bhyve/bhyve.8.orig 2021-12-17 02:14:53.986085000 +0100 -+++ usr.sbin/bhyve/bhyve.8 2021-12-17 02:21:03.716235000 +0100 -@@ -299,6 +299,8 @@ - Virtio block storage interface. - .It Cm virtio-scsi - Virtio SCSI interface. -+.It Cm virtio-9p -+Virtio 9p (VirtFS) interface. - .It Cm virtio-rnd - Virtio RNG interface. - .It Cm virtio-console -@@ -404,6 +406,19 @@ - .It Cm iid= Ns Ar IID - Initiator ID to use when sending requests to specified CTL port. - The default value is 0. -+.El -+.Pp -+9P devices: -+.Bl -tag -width 10n -+.It Pa sharename=/path/to/share[,9p-device-options] -+.El -+.Pp -+The -+.Ar 9p-device-options -+are: -+.Bl -tag -width 10n -+.It Li ro -+Expose the share in read-only mode. - .El - .Pp - TTY device backends: diff --git a/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi b/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi deleted file mode 100644 --- a/sysutils/bhyve+/files/freebsd-12/patch-libvmmapi +++ /dev/null @@ -1,33 +0,0 @@ ---- lib/libvmmapi/Makefile.orig -+++ lib/libvmmapi/Makefile -@@ -6,6 +6,7 @@ - INCS= vmmapi.h - - WARNS?= 2 -+SHLIB_MAJOR= %%VMMAPI_SHLIB_MAJOR%% - - LIBADD= util - ---- usr.sbin/bhyvectl/Makefile.orig -+++ usr.sbin/bhyvectl/Makefile -@@ -8,7 +8,8 @@ - - MAN= bhyvectl.8 - --LIBADD= vmmapi util -+LIBADD= util -+LDADD= ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%% - - WARNS?= 3 - ---- usr.sbin/bhyveload/Makefile.orig -+++ usr.sbin/bhyveload/Makefile -@@ -5,7 +5,7 @@ - MAN= bhyveload.8 - PACKAGE= bhyve - --LIBADD= vmmapi -+LDADD= ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%% - - WARNS?= 3 - diff --git a/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings b/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings deleted file mode 100644 --- a/sysutils/bhyve+/files/freebsd-12/patch-msi-x-mappings +++ /dev/null @@ -1,132 +0,0 @@ ---- usr.sbin/bhyve/pci_emul.h.orig -+++ usr.sbin/bhyve/pci_emul.h -@@ -146,6 +146,7 @@ struct pci_devinst { - struct msix_table_entry *table; /* allocated at runtime */ - void *pba_page; - int pba_page_offset; -+ void *table_page; - } pi_msix; - - void *pi_arg; /* devemu-private data */ ---- usr.sbin/bhyve/pci_passthru.c.orig -+++ usr.sbin/bhyve/pci_passthru.c -@@ -324,13 +324,14 @@ msix_table_read(struct passthru_softc *sc, uint64_t of - return (data); - } - -+ /* Should make this an assert. */ - if (offset < pi->pi_msix.table_offset) - return (-1); - - offset -= pi->pi_msix.table_offset; - index = offset / MSIX_TABLE_ENTRY_SIZE; - if (index >= pi->pi_msix.table_count) -- return (-1); -+ goto readbar; - - entry = &pi->pi_msix.table[index]; - entry_offset = offset % MSIX_TABLE_ENTRY_SIZE; -@@ -357,6 +358,33 @@ msix_table_read(struct passthru_softc *sc, uint64_t of - } - - return (data); -+ -+readbar: -+ if (pi->pi_msix.table_page != NULL && offset < 4096) { -+ switch(size) { -+ case 1: -+ src8 = (uint8_t *)(pi->pi_msix.table_page + offset); -+ data = *src8; -+ break; -+ case 2: -+ src16 = (uint16_t *)(pi->pi_msix.table_page + offset); -+ data = *src16; -+ break; -+ case 4: -+ src32 = (uint32_t *)(pi->pi_msix.table_page + offset); -+ data = *src32; -+ break; -+ case 8: -+ src64 = (uint64_t *)(pi->pi_msix.table_page + offset); -+ data = *src64; -+ break; -+ default: -+ return (-1); -+ } -+ return (data); -+ } -+ -+ return (-1); - } - - static void -@@ -403,13 +431,14 @@ msix_table_write(struct vmctx *ctx, int vcpu, struct p - return; - } - -+ /* Should make this an assert. */ - if (offset < pi->pi_msix.table_offset) - return; - - offset -= pi->pi_msix.table_offset; - index = offset / MSIX_TABLE_ENTRY_SIZE; - if (index >= pi->pi_msix.table_count) -- return; -+ goto writebar; - - entry = &pi->pi_msix.table[index]; - entry_offset = offset % MSIX_TABLE_ENTRY_SIZE; -@@ -432,6 +461,31 @@ msix_table_write(struct vmctx *ctx, int vcpu, struct p - entry->msg_data, entry->vector_control); - } - } -+ -+writebar: -+ if (pi->pi_msix.table_page != NULL && offset < 4096) { -+ switch(size) { -+ case 1: -+ dest8 = (uint8_t *)(pi->pi_msix.table_page + offset); -+ *dest8 = data; -+ break; -+ case 2: -+ dest16 = (uint16_t *)(pi->pi_msix.table_page + offset); -+ *dest16 = data; -+ break; -+ case 4: -+ dest32 = (uint32_t *)(pi->pi_msix.table_page + offset); -+ *dest32 = data; -+ break; -+ case 8: -+ dest64 = (uint64_t *)(pi->pi_msix.table_page + offset); -+ *dest64 = data; -+ break; -+ default: -+ break; -+ } -+ return; -+ } - } - - static int -@@ -466,6 +520,21 @@ init_msix_table(struct vmctx *ctx, struct passthru_sof - idx = pi->pi_msix.table_bar; - start = pi->pi_bar[idx].addr; - remaining = pi->pi_bar[idx].size; -+ -+ /* -+ * Some device (against better documentation of the spec) -+ * are mapping other usable address space into the same page -+ * as the end of the MSI-X tables. -+ * At least Intel AX200 being one of them apparently. -+ * Map the page and fall back to it for any reads/writes outside -+ * the MSI-X table in msix_table_{read,write}. -+ */ -+ pi->pi_msix.table_page = mmap(NULL, 4096, PROT_READ | PROT_WRITE, -+ MAP_SHARED, memfd, sc->psc_bar[idx].addr + table_offset); -+ if (pi->pi_msix.table_page == MAP_FAILED) { -+ warn("Failed to map table page for MSI-X on %d/%d/%d", b, s, f); -+ return (-1); -+ } - - if (pi->pi_msix.pba_bar == pi->pi_msix.table_bar) { - pba_offset = pi->pi_msix.pba_offset; diff --git a/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p b/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p deleted file mode 100644 --- a/sysutils/bhyve+/files/freebsd-12/patch-virtio-9p +++ /dev/null @@ -1,385 +0,0 @@ ---- usr.sbin/bhyve/Makefile.orig -+++ usr.sbin/bhyve/Makefile -@@ -3,6 +3,7 @@ - # - - .include -+CFLAGS+=-I${SRCTOP}/contrib/lib9p - CFLAGS+=-I${SRCTOP}/sys - .PATH: ${SRCTOP}/sys/cam/ctl - -@@ -43,6 +44,7 @@ SRCS= \ - pci_lpc.c \ - pci_nvme.c \ - pci_passthru.c \ -+ pci_virtio_9p.c \ - pci_virtio_block.c \ - pci_virtio_console.c \ - pci_virtio_net.c \ -@@ -71,7 +73,8 @@ SRCS= \ - .PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm - SRCS+= vmm_instruction_emul.c - --LIBADD= vmmapi md pthread z util sbuf cam -+LIBADD= md pthread z util sbuf cam casper cap_pwd cap_grp -+LDADD= ../../contrib/lib9p/lib9p.so.%%9P_SHLIB_MAJOR%% ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%% - - .if ${MK_INET_SUPPORT} != "no" - CFLAGS+=-DINET ---- usr.sbin/bhyve/pci_virtio_9p.c.orig -+++ 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-19 22:41:21 UTC -+++ usr.sbin/bhyve/virtio.h -@@ -216,6 +216,7 @@ struct vring_used { - #define VIRTIO_DEV_CONSOLE 0x1003 - #define VIRTIO_DEV_RANDOM 0x1005 - #define VIRTIO_DEV_SCSI 0x1008 -+#define VIRTIO_DEV_9P 0x1009 - - /* - * PCI config space constants. diff --git a/sysutils/dynamic_motd/Makefile b/sysutils/dynamic_motd/Makefile --- a/sysutils/dynamic_motd/Makefile +++ b/sysutils/dynamic_motd/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later - NO_ARCH= yes USE_GITHUB= yes GH_ACCOUNT= sstallion diff --git a/sysutils/egress-monitor/Makefile b/sysutils/egress-monitor/Makefile --- a/sysutils/egress-monitor/Makefile +++ b/sysutils/egress-monitor/Makefile @@ -9,8 +9,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= casper sysctl service works only in 13.0 and onward - USES= uidfix USE_RC_SUBR= egress-monitor SUB_FILES= pkg-message diff --git a/sysutils/gnome-control-center/Makefile b/sysutils/gnome-control-center/Makefile --- a/sysutils/gnome-control-center/Makefile +++ b/sysutils/gnome-control-center/Makefile @@ -59,17 +59,4 @@ WAYLAND_MESON_TRUE= wayland WAYLAND_LIB_DEPENDS= libgudev-1.0.so:devel/libgudev -.include - -# FreeBSD base gained an os-release in r354922, but that does not exist -# always (see Synth bug 191, or PR 255354). Be a little more forgiving: -# assume sufficiently recent base "will have it", and check otherwise -# because 12.2 does, others like 12.1 do not have it. -.if !exists(/etc/rc.d/os-release) && (${OSVERSION} < 1300060) -RUN_DEPENDS+= etc_os-release>0:sysutils/etc_os-release -post-patch: - @${REINPLACE_CMD} -e 's|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ - ${WRKSRC}/panels/common/cc-os-release.c -.endif - -.include +.include diff --git a/sysutils/hammer2/Makefile b/sysutils/hammer2/Makefile --- a/sysutils/hammer2/Makefile +++ b/sysutils/hammer2/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT -IGNORE_FreeBSD_12= Not supported on FreeBSD 12 - USES= kmod uidfix USE_GITHUB= yes diff --git a/sysutils/hid-tools/Makefile b/sysutils/hid-tools/Makefile --- a/sysutils/hid-tools/Makefile +++ b/sysutils/hid-tools/Makefile @@ -8,7 +8,6 @@ LICENSE= GPLv2 -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} \ ${PYTHON_PKGNAMEPREFIX}pyudev>=0:devel/py-pyudev@${PY_FLAVOR} \ diff --git a/sysutils/mbgtools/Makefile b/sysutils/mbgtools/Makefile --- a/sysutils/mbgtools/Makefile +++ b/sysutils/mbgtools/Makefile @@ -10,7 +10,6 @@ LICENSE= BSD2CLAUSE BROKEN_mips64= fails to compile: unused variables -BROKEN_sparc64= fails to compile: error in structure definitions USES= kmod uidfix USE_RC_SUBR= mbgsvcd diff --git a/sysutils/mtm/Makefile b/sysutils/mtm/Makefile --- a/sysutils/mtm/Makefile +++ b/sysutils/mtm/Makefile @@ -10,7 +10,7 @@ LICENSE_FILE= ${WRKSRC}/README.rst # NB: ncurses 6.1 is required. -USES= localbase +USES= localbase ncurses:base USE_CSTD= gnu99 USE_GITHUB= yes @@ -33,15 +33,4 @@ @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/mtm.ti ${STAGEDIR}${DATADIR}/mtm.ti -.include - -.if make(makesum) || make(fetch) && "${NO_CHECKSUM}" == yes -.else -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079 -USES+= ncurses:base -.else -USES+= ncurses:port -.endif -.endif - .include diff --git a/sysutils/ocijail/Makefile b/sysutils/ocijail/Makefile --- a/sysutils/ocijail/Makefile +++ b/sysutils/ocijail/Makefile @@ -9,8 +9,6 @@ LICENSE= BSD3CLAUSE -IGNORE_FreeBSD_12= Not supported on FreeBSD 12 (uses c++20) - BUILD_DEPENDS= bazel:devel/bazel5 bash:shells/bash USE_GITHUB= yes diff --git a/sysutils/openzfs-kmod/Makefile b/sysutils/openzfs-kmod/Makefile --- a/sysutils/openzfs-kmod/Makefile +++ b/sysutils/openzfs-kmod/Makefile @@ -21,6 +21,7 @@ PLIST_FILES= ${KMODDIR}/${KMODTARGET} OPTIONS_DEFINE= DEBUG INVARIANTS GCOV +OPTIONS_DEFAULT= DEBUG INVARIANTS OPTIONS_SUB= yes GCOV_DESC= Build kernel module with GCOV support (Requires gcc) @@ -30,10 +31,6 @@ .include -.if ${OSVERSION} >= 1300000 -OPTIONS_DEFAULT= DEBUG INVARIANTS -.endif - MAKE_OPTS+= SYSDIR=${SRC_BASE}/sys .if ${PORT_OPTIONS:MDEBUG} diff --git a/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp b/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp deleted file mode 100644 --- a/sysutils/plasma5-powerdevil/files/patch-daemon_backends_upower_freebsdbacklighthelper.cpp +++ /dev/null @@ -1,17 +0,0 @@ -Fix build on FreeBSD 12.x. - -/usr/include/sys/sysctl.h:1117:25: error: unknown type name 'u_int'; did you mean 'uint'? -int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); - ^ ---- daemon/backends/upower/freebsdbacklighthelper.cpp.orig 2023-12-11 05:59:31 UTC -+++ daemon/backends/upower/freebsdbacklighthelper.cpp -@@ -31,8 +31,8 @@ - - #include - #include --#include - #include -+#include - #include - - #define BACKLIGHT_PATH "/dev/backlight/" diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile --- a/sysutils/syslog-ng/Makefile +++ b/sysutils/syslog-ng/Makefile @@ -14,8 +14,6 @@ LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= fails to link: Internal error: Segmentation fault (program ld) - LIB_DEPENDS= libpcre2-8.so:devel/pcre2 \ libuuid.so:misc/e2fsprogs-libuuid \ libivykis.so:devel/ivykis diff --git a/sysutils/vector/Makefile b/sysutils/vector/Makefile --- a/sysutils/vector/Makefile +++ b/sysutils/vector/Makefile @@ -12,7 +12,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_FreeBSD_13= error: could not compile `num-bigint` (lib) due to 4 previous errors -BROKEN_FreeBSD_12_powerpc64= fails to link: /usr/local/bin/ld: cannot find -lc++ BUILD_DEPENDS= protoc:devel/protobuf LIB_DEPENDS= libonig.so:devel/oniguruma \ diff --git a/sysutils/xen-tools/Makefile b/sysutils/xen-tools/Makefile --- a/sysutils/xen-tools/Makefile +++ b/sysutils/xen-tools/Makefile @@ -75,10 +75,6 @@ IGNORE= only supported on FreeBSD .endif -.if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008 -BROKEN= SPICE support requires FreeBSD version 13.0 or higher -.endif - post-extract: ${MV} ${WRKSRC_qemu} ${WRKSRC}/tools/qemu-xen ${RM} -rf ${WRKSRC}/tools/qemu-xen/dtc diff --git a/sysutils/xnvme/Makefile b/sysutils/xnvme/Makefile --- a/sysutils/xnvme/Makefile +++ b/sysutils/xnvme/Makefile @@ -11,7 +11,6 @@ NOT_FOR_ARCHS= armv7 i386 NOT_FOR_ARCHS_REASON= use of types with platform-specific length -BROKEN_FreeBSD_12= no member named 'aio_iov' in 'struct aiocb' USES= meson USE_LDCONFIG= yes diff --git a/sysutils/zidrav/Makefile b/sysutils/zidrav/Makefile --- a/sysutils/zidrav/Makefile +++ b/sysutils/zidrav/Makefile @@ -28,7 +28,7 @@ CFLAGS+= -Dcrc32_type=int .endif -.if ! empty(ARCH:Mmips*) || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == "sparc64" +.if ! empty(ARCH:Mmips*) || ${ARCH} == powerpc || ${ARCH} == powerpc64 CFLAGS+= -DCPU_BIGENDIAN .endif diff --git a/textproc/apertium/Makefile b/textproc/apertium/Makefile --- a/textproc/apertium/Makefile +++ b/textproc/apertium/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library *** - BUILD_DEPENDS= bash:shells/bash \ utf8cpp3>0:devel/utf8cpp3 LIB_DEPENDS= libicudata.so:devel/icu \ diff --git a/textproc/p5-CSS-Sass/Makefile b/textproc/p5-CSS-Sass/Makefile --- a/textproc/p5-CSS-Sass/Makefile +++ b/textproc/p5-CSS-Sass/Makefile @@ -11,8 +11,6 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/local/bin/ld: cannot find -lc++ - BUILD_DEPENDS= p5-ExtUtils-CppGuess>=0.14:devel/p5-ExtUtils-CppGuess \ ${RUN_DEPENDS} RUN_DEPENDS= p5-Encode-Locale>=0.01:converters/p5-Encode-Locale \ diff --git a/textproc/py-ufal.udpipe/Makefile b/textproc/py-ufal.udpipe/Makefile --- a/textproc/py-ufal.udpipe/Makefile +++ b/textproc/py-ufal.udpipe/Makefile @@ -11,7 +11,7 @@ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= Only little endian systems are supported! USES= compiler:c++11-lang python diff --git a/textproc/senna/Makefile b/textproc/senna/Makefile --- a/textproc/senna/Makefile +++ b/textproc/senna/Makefile @@ -12,7 +12,6 @@ BROKEN_aarch64= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX BROKEN_armv6= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX BROKEN_armv7= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX -BROKEN_sparc64= does not build: libsenna.so: undefined reference to SEN_ATOMIC_ADD_EX USES= compiler:c11 gmake libtool pathfix GNU_CONFIGURE= yes diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile --- a/textproc/source-highlight/Makefile +++ b/textproc/source-highlight/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= fails to compile with GCC 4.2 - BUILD_DEPENDS= exctags:devel/ctags LIB_DEPENDS= libboost_regex.so:devel/boost-libs diff --git a/textproc/turboxsl/Makefile b/textproc/turboxsl/Makefile --- a/textproc/turboxsl/Makefile +++ b/textproc/turboxsl/Makefile @@ -10,7 +10,7 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le sparc64 +ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le LIB_DEPENDS= libck.so:devel/concurrencykit \ libmemcached.so:databases/libmemcached diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile --- a/textproc/uim/Makefile +++ b/textproc/uim/Makefile @@ -76,7 +76,7 @@ .include -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" +.if ${ARCH} == "amd64" CONFIGURE_ARGS+= --enable-storage=fatty .endif diff --git a/textproc/xmlwrapp/Makefile b/textproc/xmlwrapp/Makefile --- a/textproc/xmlwrapp/Makefile +++ b/textproc/xmlwrapp/Makefile @@ -11,8 +11,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12_powerpc64= fails to configure: invalid value: boost_major_version= - LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs OPTIONS_DEFINE= XSLT DOCS diff --git a/www/chromium/files/patch-third__party_wayland_include_config.h b/www/chromium/files/patch-third__party_wayland_include_config.h --- a/www/chromium/files/patch-third__party_wayland_include_config.h +++ b/www/chromium/files/patch-third__party_wayland_include_config.h @@ -1,21 +1,6 @@ ---- third_party/wayland/include/config.h.orig 2023-03-01 05:42:12 UTC +--- third_party/wayland/include/config.h.orig 2023-12-06 23:00:58 UTC +++ third_party/wayland/include/config.h -@@ -9,7 +9,14 @@ - - #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0 - -+#if defined(__FreeBSD__) -+#include -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+#undef HAVE_MEMFD_CREATE -+#else - #define HAVE_MEMFD_CREATE -+#endif -+#endif - - #define HAVE_MKOSTEMP - -@@ -25,7 +32,11 @@ +@@ -25,11 +25,14 @@ #undef HAVE_SYS_PROCCTL_H @@ -27,3 +12,7 @@ #define HAVE_XUCRED_CR_PID 0 + #define PACKAGE "wayland" + + #define PACKAGE_VERSION "1.21.0" +- diff --git a/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc deleted file mode 100644 --- a/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-11 18:22:24 UTC -+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc -@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - // so if it exceeds 16 bits, it may be broken. - static constexpr size_t kSizeLimit = 60000; - if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+ PLOG(ERROR) << "memfd is not supported"; -+ return; -+#else - base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); - if (!memfd.get()) { - PLOG(ERROR) << "Failed to create memfd"; -@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - zcr_extended_text_input_v1_set_large_surrounding_text( - extended_obj_.get(), memfd.get(), text.length(), - selection_range.start(), selection_range.end()); -+#endif - } else { - zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), - selection_range.start(), diff --git a/www/edbrowse/Makefile b/www/edbrowse/Makefile --- a/www/edbrowse/Makefile +++ b/www/edbrowse/Makefile @@ -31,13 +31,6 @@ OPTIONS_DEFINE= DOCS -.include - -# Skip openssl.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file -.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/openssl.pc) -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl -.endif - do-install: ${INSTALL_MAN} ${WRKSRC}/doc/man-edbrowse-freebsd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1 ${INSTALL_PROGRAM} ${WRKSRC}/src/edbrowse ${STAGEDIR}${PREFIX}/bin diff --git a/www/edbrowse/files/extra-patch-openssl b/www/edbrowse/files/extra-patch-openssl deleted file mode 100644 --- a/www/edbrowse/files/extra-patch-openssl +++ /dev/null @@ -1,11 +0,0 @@ ---- src/makefile.orig 2023-11-17 18:00:41.589174000 +0100 -+++ src/makefile 2023-11-17 18:01:13.273125000 +0100 -@@ -9,7 +9,7 @@ - CFLAGS += $(PLATFORM_CFLAGS) - - # determine includes and linker flags --DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline openssl -+DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline - INCLUDES = $(shell ./make-helper.sh pkg-config-includes $(DEPENDENCIES)) - LINKER_LIBS = $(shell ./make-helper.sh pkg-config-libs $(DEPENDENCIES)) - CFLAGS += $(INCLUDES) diff --git a/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc deleted file mode 100644 --- a/www/firefox-esr/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc +++ /dev/null @@ -1,23 +0,0 @@ -commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c -Author: Christoph Moench-Tegeder -Date: Wed Oct 12 19:57:20 2022 +0200 - - pull in sys/types.h for u_XXX typedefs on FreeBSD 12 - - In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20: - /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'? - u_char ip_hl:4, /* header length */ - -diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc -index d544b611e149..ef9b742dac5f 100644 ---- third_party/libwebrtc/rtc_base/ip_address.cc -+++ third_party/libwebrtc/rtc_base/ip_address.cc -@@ -11,6 +11,8 @@ - #if defined(WEBRTC_POSIX) - #include - #include -+/* for u_char/u_short etc on FreeBSD 12 */ -+#include - - #include "absl/strings/string_view.h" - #ifdef OPENBSD diff --git a/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc deleted file mode 100644 --- a/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc +++ /dev/null @@ -1,23 +0,0 @@ -commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c -Author: Christoph Moench-Tegeder -Date: Wed Oct 12 19:57:20 2022 +0200 - - pull in sys/types.h for u_XXX typedefs on FreeBSD 12 - - In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20: - /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'? - u_char ip_hl:4, /* header length */ - -diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc -index d544b611e149..ef9b742dac5f 100644 ---- third_party/libwebrtc/rtc_base/ip_address.cc -+++ third_party/libwebrtc/rtc_base/ip_address.cc -@@ -11,6 +11,8 @@ - #if defined(WEBRTC_POSIX) - #include - #include -+/* for u_char/u_short etc on FreeBSD 12 */ -+#include - - #include "absl/strings/string_view.h" - #ifdef OPENBSD diff --git a/www/h2o-devel/Makefile b/www/h2o-devel/Makefile --- a/www/h2o-devel/Makefile +++ b/www/h2o-devel/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_12_powerpc64= fails to link on powerpc64 elfv1: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' BUILD_DEPENDS= rubygem-rake>=0:devel/rubygem-rake LIB_DEPENDS= libuv.so:devel/libuv diff --git a/www/h2o/Makefile b/www/h2o/Makefile --- a/www/h2o/Makefile +++ b/www/h2o/Makefile @@ -17,7 +17,6 @@ DEPRECATED= Upstream EOL confirmed on 2023-10-10, removal planned for 2023-12-30 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_12_powerpc64= fails to link: unrecognized option '-Wl,-rpath=/usr/local/lib/gcc6' LIB_DEPENDS= libuv.so:devel/libuv diff --git a/www/iridium/files/patch-third__party_wayland_include_config.h b/www/iridium/files/patch-third__party_wayland_include_config.h --- a/www/iridium/files/patch-third__party_wayland_include_config.h +++ b/www/iridium/files/patch-third__party_wayland_include_config.h @@ -1,21 +1,6 @@ ---- third_party/wayland/include/config.h.orig 2023-03-13 07:33:08 UTC +--- third_party/wayland/include/config.h.orig 2023-11-15 11:07:48 UTC +++ third_party/wayland/include/config.h -@@ -9,7 +9,14 @@ - - #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0 - -+#if defined(__FreeBSD__) -+#include -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+#undef HAVE_MEMFD_CREATE -+#else - #define HAVE_MEMFD_CREATE -+#endif -+#endif - - #define HAVE_MKOSTEMP - -@@ -25,7 +32,11 @@ +@@ -25,11 +25,14 @@ #undef HAVE_SYS_PROCCTL_H @@ -27,3 +12,7 @@ #define HAVE_XUCRED_CR_PID 0 + #define PACKAGE "wayland" + + #define PACKAGE_VERSION "1.21.0" +- diff --git a/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc deleted file mode 100644 --- a/www/iridium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-21 11:51:27 UTC -+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc -@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - // so if it exceeds 16 bits, it may be broken. - static constexpr size_t kSizeLimit = 60000; - if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+ PLOG(ERROR) << "memfd is not supported"; -+ return; -+#else - base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); - if (!memfd.get()) { - PLOG(ERROR) << "Failed to create memfd"; -@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - zcr_extended_text_input_v1_set_large_surrounding_text( - extended_obj_.get(), memfd.get(), text.length(), - selection_range.start(), selection_range.end()); -+#endif - } else { - zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), - selection_range.start(), diff --git a/www/ladybird/Makefile b/www/ladybird/Makefile --- a/www/ladybird/Makefile +++ b/www/ladybird/Makefile @@ -24,7 +24,6 @@ # see Userland/Libraries/LibWeb/Loader/ResourceLoader.h ONLY_FOR_ARCHS= aarch64 amd64 i386 riscv64 ONLY_FOR_ARCHS_REASON= other architectures not recognised by build system -BROKEN_FreeBSD_12= C++ template issues BROKEN_i386= Userland/Libraries/LibJIT/GDBElf.cpp:29:24: bit cast source size does not equal destination size BUILD_DEPENDS= ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat:dns/public_suffix_list diff --git a/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc deleted file mode 100644 --- a/www/librewolf/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc +++ /dev/null @@ -1,23 +0,0 @@ -commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c -Author: Christoph Moench-Tegeder -Date: Wed Oct 12 19:57:20 2022 +0200 - - pull in sys/types.h for u_XXX typedefs on FreeBSD 12 - - In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20: - /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'? - u_char ip_hl:4, /* header length */ - -diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc -index d544b611e149..ef9b742dac5f 100644 ---- third_party/libwebrtc/rtc_base/ip_address.cc -+++ third_party/libwebrtc/rtc_base/ip_address.cc -@@ -11,6 +11,8 @@ - #if defined(WEBRTC_POSIX) - #include - #include -+/* for u_char/u_short etc on FreeBSD 12 */ -+#include - - #include "absl/strings/string_view.h" - #ifdef OPENBSD diff --git a/www/luakit-devel/Makefile b/www/luakit-devel/Makefile --- a/www/luakit-devel/Makefile +++ b/www/luakit-devel/Makefile @@ -13,9 +13,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING.GPLv3 -NOT_FOR_ARCHS= sparc64 -NOT_FOR_ARCHS_REASON_sparc64= Does not install on sparc64 - BUILD_DEPENDS= help2man:misc/help2man \ ${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ diff --git a/www/luakit/Makefile b/www/luakit/Makefile --- a/www/luakit/Makefile +++ b/www/luakit/Makefile @@ -11,9 +11,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING.GPLv3 -NOT_FOR_ARCHS= sparc64 -NOT_FOR_ARCHS_REASON_sparc64= Does not install on sparc64 - BUILD_DEPENDS= help2man:misc/help2man \ ${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile --- a/www/nginx-devel/Makefile +++ b/www/nginx-devel/Makefile @@ -151,6 +151,8 @@ HTTP_MP4_CONFIGURE_ON= --with-http_mp4_module HTTP_PERL_CATEGORIES= perl5 HTTP_PERL_USES= perl5 +# Fix build failure on clang >= 12 +HTTP_PERL_CFLAGS= -Wno-compound-token-split-by-macro HTTP_PERL_VARS= DSO_BASEMODS+=http_perl_module HTTP_RANDOM_INDEX_CONFIGURE_ON= --with-http_random_index_module HTTP_REALIP_CONFIGURE_ON= --with-http_realip_module @@ -241,11 +243,6 @@ CONFIGURE_ENV+= EXTRA_PRE_CXXFLAGS="-std=c++14" .endif -# Fix build failure on clang >= 12 -.if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000 -CFLAGS+= -Wno-compound-token-split-by-macro -.endif - .if empty(PORT_OPTIONS:MLUA) && empty(PORT_OPTIONS:MMODSECURITY3) && \ empty(PORT_OPTIONS:MPASSENGER) CONFIGURE_ARGS+= --with-ld-opt="-L ${LOCALBASE}/lib" diff --git a/www/nginx/Makefile b/www/nginx/Makefile --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -151,6 +151,8 @@ HTTP_MP4_CONFIGURE_ON= --with-http_mp4_module HTTP_PERL_CATEGORIES= perl5 HTTP_PERL_USES= perl5 +# Fix build failure on clang >= 12 +HTTP_PERL_CFLAGS= -Wno-compound-token-split-by-macro HTTP_PERL_VARS= DSO_BASEMODS+=http_perl_module HTTP_RANDOM_INDEX_CONFIGURE_ON= --with-http_random_index_module HTTP_REALIP_CONFIGURE_ON= --with-http_realip_module @@ -244,11 +246,6 @@ CONFIGURE_ENV+= EXTRA_PRE_CXXFLAGS="-std=c++14" .endif -# Fix build failure on clang >= 12 -.if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000 -CFLAGS+= -Wno-compound-token-split-by-macro -.endif - .if empty(PORT_OPTIONS:MLUA) && empty(PORT_OPTIONS:MMODSECURITY3) && \ empty(PORT_OPTIONS:MPASSENGER) CONFIGURE_ARGS+= --with-ld-opt="-L ${LOCALBASE}/lib" diff --git a/www/osrm-backend/Makefile b/www/osrm-backend/Makefile --- a/www/osrm-backend/Makefile +++ b/www/osrm-backend/Makefile @@ -31,17 +31,13 @@ USE_RC_SUBR= osrm +CXXFLAGS+= -Wno-range-loop-construct + USERS= osrm GROUPS= osrm CMAKE_ON= BUILD_STATIC_LIBS -.include - -.if ${OSVERSION} >= 1300084 -CXXFLAGS+= -Wno-range-loop-construct -.endif - post-patch: @${REINPLACE_CMD} -e 's|-Werror=all -Werror=extra|-Werror=extra|g' \ ${PATCH_WRKSRC}/CMakeLists.txt @@ -49,4 +45,4 @@ pre-install: @${MKDIR} ${STAGEDIR}/var/db/osrm-backend -.include +.include diff --git a/www/qt5-webengine/Makefile b/www/qt5-webengine/Makefile --- a/www/qt5-webengine/Makefile +++ b/www/qt5-webengine/Makefile @@ -123,7 +123,7 @@ .include -.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 +.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} PLIST_SUB+= BE="" LE="@comment " .else PLIST_SUB+= BE="@comment " LE="" @@ -151,7 +151,7 @@ @${REINPLACE_CMD} -E -e 's|^(MODULE_VERSION = ).*|\1${QT5_VERSION}|' \ ${WRKSRC}/.qmake.conf -.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 +.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} @${REINPLACE_CMD} -e 's/icudtl.dat/icudtb.dat/' \ ${WRKSRC}/src/core/core_module.pro .endif diff --git a/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc deleted file mode 100644 --- a/www/tor-browser/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc +++ /dev/null @@ -1,23 +0,0 @@ -commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c -Author: Christoph Moench-Tegeder -Date: Wed Oct 12 19:57:20 2022 +0200 - - pull in sys/types.h for u_XXX typedefs on FreeBSD 12 - - In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20: - /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'? - u_char ip_hl:4, /* header length */ - -diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc -index d544b611e149..ef9b742dac5f 100644 ---- third_party/libwebrtc/rtc_base/ip_address.cc -+++ third_party/libwebrtc/rtc_base/ip_address.cc -@@ -11,6 +11,8 @@ - #if defined(WEBRTC_POSIX) - #include - #include -+/* for u_char/u_short etc on FreeBSD 12 */ -+#include - - #include "absl/strings/string_view.h" - #ifdef OPENBSD diff --git a/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h b/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h --- a/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h +++ b/www/ungoogled-chromium/files/patch-third__party_wayland_include_config.h @@ -1,21 +1,6 @@ ---- third_party/wayland/include/config.h.orig 2023-03-01 05:42:12 UTC +--- third_party/wayland/include/config.h.orig 2023-11-28 23:10:47 UTC +++ third_party/wayland/include/config.h -@@ -9,7 +9,14 @@ - - #define HAVE_BROKEN_MSG_CMSG_CLOEXEC 0 - -+#if defined(__FreeBSD__) -+#include -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+#undef HAVE_MEMFD_CREATE -+#else - #define HAVE_MEMFD_CREATE -+#endif -+#endif - - #define HAVE_MKOSTEMP - -@@ -25,7 +32,11 @@ +@@ -25,11 +25,14 @@ #undef HAVE_SYS_PROCCTL_H @@ -27,3 +12,7 @@ #define HAVE_XUCRED_CR_PID 0 + #define PACKAGE "wayland" + + #define PACKAGE_VERSION "1.21.0" +- diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc deleted file mode 100644 --- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-10-13 13:20:35 UTC -+++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc -@@ -226,6 +226,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - // so if it exceeds 16 bits, it may be broken. - static constexpr size_t kSizeLimit = 60000; - if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { -+#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 -+ PLOG(ERROR) << "memfd is not supported"; -+ return; -+#else - base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); - if (!memfd.get()) { - PLOG(ERROR) << "Failed to create memfd"; -@@ -238,6 +242,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( - zcr_extended_text_input_v1_set_large_surrounding_text( - extended_obj_.get(), memfd.get(), text.length(), - selection_range.start(), selection_range.end()); -+#endif - } else { - zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), - selection_range.start(), diff --git a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h deleted file mode 100644 --- a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_PlatformCPU.h +++ /dev/null @@ -1,28 +0,0 @@ -https://bugs.webkit.org/show_bug.cgi?id=129963 - -Index: Source/WTF/wtf/PlatformCPU.h ---- Source/WTF/wtf/PlatformCPU.h.orig -+++ Source/WTF/wtf/PlatformCPU.h -@@ -95,6 +95,13 @@ - #define WTF_CPU_KNOWN 1 - #endif - -+/* CPU(SPARC64) - SPARC V9 */ -+#if defined(__sparc64__) -+#define WTF_CPU_KNOWN 1 -+#define WTF_CPU_SPARC64 1 -+#define WTF_CPU_BIG_ENDIAN 1 -+#endif -+ - /* CPU(X86) - i386 / x86 32-bit */ - #if defined(__i386__) \ - || defined(i386) \ -@@ -295,7 +302,7 @@ - #define WTF_CPU_UNKNOWN 1 - #endif - --#if CPU(ARM) || CPU(MIPS) || CPU(RISCV64) || CPU(UNKNOWN) -+#if CPU(ARM) || CPU(MIPS) || CPU(RISCV64) || CPU(SPARC64) || CPU(UNKNOWN) - #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1 - #endif - diff --git a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h deleted file mode 100644 --- a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_dtoa_utils.h +++ /dev/null @@ -1,12 +0,0 @@ -Index: Source/WTF/wtf/dtoa/utils.h ---- Source/WTF/wtf/dtoa/utils.h.orig -+++ Source/WTF/wtf/dtoa/utils.h -@@ -87,7 +87,7 @@ int main(int argc, char** argv) { - defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ - defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ - defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ -- defined(__SH4__) || defined(__alpha__) || \ -+ defined(__SH4__) || defined(__alpha__) || defined(__sparc64__) || \ - defined(_MIPS_ARCH_MIPS32R2) || \ - defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ - defined(__riscv) || \ diff --git a/x11-drivers/Makefile b/x11-drivers/Makefile --- a/x11-drivers/Makefile +++ b/x11-drivers/Makefile @@ -35,7 +35,6 @@ SUBDIR += xf86-video-scfb SUBDIR += xf86-video-siliconmotion SUBDIR += xf86-video-sis - SUBDIR += xf86-video-sunffb SUBDIR += xf86-video-tdfx SUBDIR += xf86-video-vesa SUBDIR += xf86-video-vmware diff --git a/x11-drivers/xf86-video-sunffb/Makefile b/x11-drivers/xf86-video-sunffb/Makefile deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -PORTNAME= xf86-video-sunffb -PORTVERSION= 1.2.2 -PORTREVISION= 13 -CATEGORIES= x11-drivers - -MAINTAINER= x11@FreeBSD.org -COMMENT= X.Org sunffb display driver -WWW= https://www.x.org/ - -USES= gl xorg-cat:driver -USE_GL= gl - -ONLY_FOR_ARCHS= sparc64 - -.include diff --git a/x11-drivers/xf86-video-sunffb/distinfo b/x11-drivers/xf86-video-sunffb/distinfo deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (xorg/driver/xf86-video-sunffb-1.2.2.tar.bz2) = fa545f2c10732c2b7b37e8891315b05e645aec21ba5e849f244d3ceee2b3e31f -SIZE (xorg/driver/xf86-video-sunffb-1.2.2.tar.bz2) = 334827 diff --git a/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s b/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s +++ /dev/null @@ -1,26 +0,0 @@ ---- src/VISmoveImage.s.orig 2008-08-15 19:49:00.000000000 +0000 -+++ src/VISmoveImage.s 2009-03-29 14:08:42.000000000 +0000 -@@ -779,7 +779,11 @@ - sub %tmp3, %rightw, %curw - - return: return %i7+8 -+#if defined(__FreeBSD__) -+ nop -+#else - wr %g0, 0, %fprs -+#endif - - narrowst: - and %leftw, 0x38, %tmp1 -@@ -2174,7 +2178,11 @@ - sub %curw, %rightw, %curw - - rreturn:return %i7+8 -+#if defined(__FreeBSD__) -+ nop -+#else - wr %g0, 0, %fprs -+#endif - - narrowstr: - cmp %rightw, 64 diff --git a/x11-drivers/xf86-video-sunffb/files/patch-src_ffb__driver.c b/x11-drivers/xf86-video-sunffb/files/patch-src_ffb__driver.c deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/files/patch-src_ffb__driver.c +++ /dev/null @@ -1,33 +0,0 @@ -From 181b60190c1f81fc9b9b5deb07d536b78f2536ab Mon Sep 17 00:00:00 2001 -From: Matthieu Herrb -Date: Mon, 10 Jun 2013 21:51:08 +0200 -Subject: Unbreak when XAA is not present. - -Turn accel off if loading XAA fails. - -Signed-off-by: Matthieu Herrb -Reviewed-by: Alex Deucher - -diff --git a/src/ffb_driver.c b/src/ffb_driver.c -index af13484..7f17d64 100644 ---- src/ffb_driver.c -+++ src/ffb_driver.c -@@ -413,9 +413,12 @@ FFBPreInit(ScrnInfoPtr pScrn, int flags) - return FALSE; - } - -- if (xf86LoadSubModule(pScrn, "xaa") == NULL) { -- FFBFreeRec(pScrn); -- return FALSE; -+ if (!pFfb->NoAccel) { -+ if (xf86LoadSubModule(pScrn, "xaa") == NULL) { -+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, -+ "Loading XAA failed, acceleration disabled\n"); -+ pFfb->NoAccel = TRUE; -+ } - } - - if (pFfb->HWCursor && xf86LoadSubModule(pScrn, "ramdac") == NULL) { --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-video-sunffb/pkg-descr b/x11-drivers/xf86-video-sunffb/pkg-descr deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/pkg-descr +++ /dev/null @@ -1 +0,0 @@ -This package contains the X.Org xf86-video-sunffb driver. diff --git a/x11-drivers/xf86-video-sunffb/pkg-plist b/x11-drivers/xf86-video-sunffb/pkg-plist deleted file mode 100644 --- a/x11-drivers/xf86-video-sunffb/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -lib/xorg/modules/drivers/sunffb_drv.so -man/man4/sunffb.4x.gz diff --git a/x11-drivers/xorg-drivers/Makefile b/x11-drivers/xorg-drivers/Makefile --- a/x11-drivers/xorg-drivers/Makefile +++ b/x11-drivers/xorg-drivers/Makefile @@ -66,14 +66,10 @@ OPTIONS_DEFINE_i386:= ${OPTIONS_DEFINE_amd64} GEODE OPTIONS_DEFAULT_i386:= ${OPTIONS_DEFAULT_amd64} -OPTIONS_DEFINE_sparc64= SUNFFB -OPTIONS_DEFAULT_sparc64=SUNFFB - AMDGPU_DESC= Install amdgpu video driver ATI_DESC= Install ati (radeon) video driver GEODE_DESC= Install geode video driver INTEL_DESC= Install intel video driver -SUNFFB_DESC= Install sunffb video driver VMMOUSE_DESC= Install vmmouse input driver VMWARE_DESC= Install vmware video driver @@ -92,10 +88,6 @@ VIDEO_DRIVERS+= geode .endif -.if ${ARCH}==sparc64 -VIDEO_DRIVERS+= sunffb -.endif - .for type in input video . for i in ${${type:tu}_DRIVERS} . if ${PORT_OPTIONS:M${i:tu}} != "" diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile --- a/x11-servers/xorg-server/Makefile +++ b/x11-servers/xorg-server/Makefile @@ -119,12 +119,6 @@ LIB_DEPENDS+= libunwind.so:devel/libunwind .endif -.if ${ARCH} == "sparc64" -PLIST_SUB+= SPARC64="" -.else -PLIST_SUB+= SPARC64="@comment " -.endif - .if ${FLAVOR} == xorg post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d diff --git a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c --- a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c +++ b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c @@ -1,4 +1,4 @@ ---- hw/xfree86/os-support/bsd/bsd_init.c.orig 2023-03-29 12:55:03 UTC +--- hw/xfree86/os-support/bsd/bsd_init.c.orig 2023-10-25 01:40:28 UTC +++ hw/xfree86/os-support/bsd/bsd_init.c @@ -48,6 +48,8 @@ static int initialVT = -1; #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) @@ -9,17 +9,7 @@ #endif #ifdef PCCONS_SUPPORT -@@ -230,6 +232,9 @@ xf86OpenConsole() - * Add cases for other *BSD that behave the same. - */ - #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#if defined(__sparc64__) -+ pci_system_init_dev_mem(fd); -+#endif - uname(&uts); - i = atof(uts.release) * 100; - if (i >= 310) -@@ -253,6 +258,7 @@ xf86OpenConsole() +@@ -253,6 +255,7 @@ xf86OpenConsole() #endif acquire_vt: if (!xf86Info.ShareVTs) { @@ -27,7 +17,7 @@ /* * now get the VT */ -@@ -287,6 +293,26 @@ xf86OpenConsole() +@@ -287,6 +290,26 @@ xf86OpenConsole() if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0) { FatalError("xf86OpenConsole: KDSETMODE KD_GRAPHICS failed"); } @@ -54,7 +44,7 @@ } else { /* xf86Info.ShareVTs */ close(xf86Info.consoleFd); -@@ -303,7 +329,7 @@ xf86OpenConsole() +@@ -303,7 +326,7 @@ xf86OpenConsole() else { /* serverGeneration != 1 */ #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) @@ -63,7 +53,7 @@ (xf86Info.consType == SYSCONS || xf86Info.consType == PCVT)) { if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) { xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n"); -@@ -594,6 +620,8 @@ xf86CloseConsole() +@@ -594,6 +617,8 @@ xf86CloseConsole() case SYSCONS: case PCVT: ioctl(xf86Info.consoleFd, KDSETMODE, KD_TEXT); /* Back to text mode */ @@ -72,7 +62,7 @@ if (ioctl(xf86Info.consoleFd, VT_GETMODE, &VT) != -1) { VT.mode = VT_AUTO; ioctl(xf86Info.consoleFd, VT_SETMODE, &VT); /* dflt vt handling */ -@@ -604,7 +632,7 @@ xf86CloseConsole() +@@ -604,7 +629,7 @@ xf86CloseConsole() strerror(errno)); } #endif diff --git a/x11-servers/xorg-server/pkg-plist b/x11-servers/xorg-server/pkg-plist --- a/x11-servers/xorg-server/pkg-plist +++ b/x11-servers/xorg-server/pkg-plist @@ -132,7 +132,6 @@ include/xorg/xf86Priv.h include/xorg/xf86Privstr.h include/xorg/xf86RandR12.h -%%SPARC64%%include/xorg/xf86Sbus.h include/xorg/xf86VGAarbiter.h include/xorg/xf86Xinput.h include/xorg/xf86_OSlib.h diff --git a/x11-toolkits/kf5-kirigami2/Makefile b/x11-toolkits/kf5-kirigami2/Makefile --- a/x11-toolkits/kf5-kirigami2/Makefile +++ b/x11-toolkits/kf5-kirigami2/Makefile @@ -11,12 +11,4 @@ linguisttools network quickcontrols2 svg widgets \ buildtools:build qmake:build testlib:build -.include - -.if ${OSVERSION} < 1300016 -# src/imagecolors.cpp:317:9: error: statement after '#pragma omp parallel for' -# must be a for loop -CFLAGS+= -fopenmp-version=50 -.endif - -.include +.include diff --git a/x11-toolkits/movingmotif/Makefile b/x11-toolkits/movingmotif/Makefile --- a/x11-toolkits/movingmotif/Makefile +++ b/x11-toolkits/movingmotif/Makefile @@ -15,8 +15,6 @@ GNU_CONFIGURE= yes USE_LDCONFIG= yes -CFLAGS_sparc64= -O0 - post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so diff --git a/x11-toolkits/scintilla/Makefile b/x11-toolkits/scintilla/Makefile --- a/x11-toolkits/scintilla/Makefile +++ b/x11-toolkits/scintilla/Makefile @@ -22,7 +22,7 @@ USE_LDCONFIG= yes USE_GNOME= cairo gdkpixbuf2 gtk30 MAKE_ENV= LDFLAGS="${LDFLAGS}" -CFLAGS+= -DPIC ${PICFLAG} +CFLAGS+= -DPIC -fpic MAKE_ARGS= GTK3=1 .if defined(WITH_DEBUG) @@ -35,12 +35,6 @@ MAKE_ARGS+= CLANG=1 .endif -.if ${ARCH} == "sparc64" -PICFLAG?= -fPIC -.else -PICFLAG?= -fpic -.endif - do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/scintilla ${INSTALL_DATA} ${WRKSRC}/../include/*.h \ diff --git a/x11-toolkits/vte3/Makefile b/x11-toolkits/vte3/Makefile --- a/x11-toolkits/vte3/Makefile +++ b/x11-toolkits/vte3/Makefile @@ -51,18 +51,4 @@ GTK4_USE= GNOME=gtk40 GTK4_MESON_ON= -Dgtk4=true -.include - -.if ${CHOSEN_COMPILER_TYPE} == clang && ${OPSYS} == FreeBSD && ${OSVERSION} < 1300109 -CPP= ${LOCALBASE}/bin/clang-cpp${_LLVM_VERSION} -CC= ${LOCALBASE}/bin/clang${_LLVM_VERSION} -CXX= ${LOCALBASE}/bin/clang++${_LLVM_VERSION} -BUILD_DEPENDS+= llvm${_LLVM_VERSION}>=0:devel/llvm${_LLVM_VERSION} -.if ${LLVM_DEFAULT} == 10 -_LLVM_VERSION= 11 -.else -_LLVM_VERSION= ${LLVM_DEFAULT} -.endif -.endif - -.include +.include diff --git a/x11-toolkits/wlroots/Makefile b/x11-toolkits/wlroots/Makefile --- a/x11-toolkits/wlroots/Makefile +++ b/x11-toolkits/wlroots/Makefile @@ -66,13 +66,5 @@ # Extract (snapshot) version from the port instead of meson.build @${REINPLACE_CMD} "/STR/s/meson.project_version()/'${DISTVERSIONFULL}'/" \ ${WRKSRC}/include/wlr/meson.build -# XXX Drop after FreeBSD 12.4 EOL around 2023-12-31 -# https://cgit.freebsd.org/src/commit/?id=d7535fb3e3cb - @if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1300515 ]; then \ - ${REINPLACE_CMD} -e '/POSIX/s/199309/200112/' \ - ${WRKSRC}/render/gles2/pass.c \ - ${WRKSRC}/render/gles2/renderer.c \ - ${WRKSRC}/types/wlr_presentation_time.c; \ - fi .include diff --git a/x11-wm/hyprland/Makefile b/x11-wm/hyprland/Makefile --- a/x11-wm/hyprland/Makefile +++ b/x11-wm/hyprland/Makefile @@ -14,8 +14,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= libc++ too old - BUILD_DEPENDS= cmake:devel/cmake-core \ evdev-proto>0:devel/evdev-proto \ wayland-protocols>=1.25:graphics/wayland-protocols \ diff --git a/x11-wm/wmii/Makefile b/x11-wm/wmii/Makefile --- a/x11-wm/wmii/Makefile +++ b/x11-wm/wmii/Makefile @@ -43,7 +43,7 @@ ${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \ ${WRKSRC}/config.mk # Fix brain-damaged piece of code which breaks on arches where `size_t' -# is not 32-bit unsigned integer (e.g. amd64, sparc64) +# is not 32-bit unsigned integer (e.g. amd64) ${REINPLACE_CMD} -e '/wmii_strlcat/d' ${WRKSRC}/include/util.h ${REINPLACE_CMD} -e 's|strlcat|wmii_&|' ${WRKSRC}/include/util.h \ ${WRKSRC}/cmd/util.c ${WRKSRC}/cmd/wmii/client.c diff --git a/x11/foot/Makefile b/x11/foot/Makefile --- a/x11/foot/Makefile +++ b/x11/foot/Makefile @@ -27,7 +27,6 @@ OPTIONS_DEFINE= DOCS LTO NOTIFY PGO UTF8PROC XDG OPTIONS_DEFAULT=LTO NOTIFY PGO UTF8PROC XDG OPTIONS_EXCLUDE+= ${CC:T:Mgcc*:C/.+/LTO/} # undefined reference to `xstrdup' -OPTIONS_EXCLUDE_FreeBSD_12= ${WAYLAND_DISPLAY:UPGO} # ./pgo hangs DOCS_BUILD_DEPENDS= scdoc:textproc/scdoc DOCS_MESON_ENABLED= docs diff --git a/x11/hyprpaper/Makefile b/x11/hyprpaper/Makefile --- a/x11/hyprpaper/Makefile +++ b/x11/hyprpaper/Makefile @@ -10,7 +10,7 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe NOT_FOR_ARCHS_REASON= only little-endian is supported BUILD_DEPENDS= gmake:devel/gmake \ diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile --- a/x11/kitty/Makefile +++ b/x11/kitty/Makefile @@ -96,11 +96,6 @@ USES+= ncurses .endif -# fix clang static_assert on 12.x releases, https://github.com/kovidgoyal/kitty/pull/5398 -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-kitty_data-types.h -.endif - post-patch: ${REINPLACE_CMD} -i.bak -e "s:'go':'${GO_CMD}':1" ${WRKSRC}/setup.py ${REINPLACE_CMD} -i.bak -e "s:%%DATADIR%%:${DATADIR}:1" \ diff --git a/x11/kitty/files/extra-patch-kitty_data-types.h b/x11/kitty/files/extra-patch-kitty_data-types.h deleted file mode 100644 --- a/x11/kitty/files/extra-patch-kitty_data-types.h +++ /dev/null @@ -1,13 +0,0 @@ ---- kitty/data-types.h.orig 2022-08-22 11:08:26 UTC -+++ kitty/data-types.h -@@ -159,6 +159,10 @@ typedef union CellAttrs { - #define NUM_UNDERLINE_STYLES (5u) - #define SGR_MASK (~(((CellAttrs){.width=WIDTH_MASK, .mark=MARK_MASK}).val)) - -+#ifndef static_assert -+#define static_assert _Static_assert -+#endif -+ - typedef struct { - color_type fg, bg, decoration_fg; - sprite_index sprite_x, sprite_y, sprite_z; diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -189,7 +189,7 @@ ${WRKSRC}/src/${NVSRC}/nvidia_subr.c .endif # Pull the right header after FreeBSD src r347984 -.if ${OSVERSION} >= 1300029 && ${NVVERSION} >= 358.009 +.if ${NVVERSION} >= 358.009 ${REINPLACE_CMD} -e '/^#include/s:lock\.h:mutex.h:' \ ${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c .endif diff --git a/x11/sandbar/Makefile b/x11/sandbar/Makefile --- a/x11/sandbar/Makefile +++ b/x11/sandbar/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create - BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ tllist>=1.0.1:devel/tllist \ wayland-protocols>0:graphics/wayland-protocols diff --git a/x11/squeekboard/Makefile b/x11/squeekboard/Makefile --- a/x11/squeekboard/Makefile +++ b/x11/squeekboard/Makefile @@ -14,7 +14,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -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 BUILD_DEPENDS= wayland-protocols>=1.12:graphics/wayland-protocols diff --git a/x11/wl-mirror/Makefile b/x11/wl-mirror/Makefile --- a/x11/wl-mirror/Makefile +++ b/x11/wl-mirror/Makefile @@ -10,8 +10,6 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create - BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ libwayland-egl.so:graphics/wayland diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile --- a/x11/xdg-desktop-portal-hyprland/Makefile +++ b/x11/xdg-desktop-portal-hyprland/Makefile @@ -10,8 +10,6 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= libc++ too old - BUILD_DEPENDS= wayland-protocols>=1.31:graphics/wayland-protocols LIB_DEPENDS= libsdbus-c++.so:devel/sdbus-cpp \ libdrm.so:graphics/libdrm \ diff --git a/x11/xdg-desktop-portal-luminous/Makefile b/x11/xdg-desktop-portal-luminous/Makefile --- a/x11/xdg-desktop-portal-luminous/Makefile +++ b/x11/xdg-desktop-portal-luminous/Makefile @@ -11,8 +11,6 @@ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_12= ld: error: undefined symbol: memfd_create - LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire \ libxkbcommon.so:x11/libxkbcommon RUN_DEPENDS= slurp:x11/slurp