*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree

- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
This commit is contained in:
Muhammad Moinur Rahman 2023-09-30 22:44:19 +02:00
parent a1bc4fbdf3
commit bbab7f59e9
475 changed files with 313 additions and 3032 deletions

View file

@ -81,12 +81,6 @@ IGNORE= CABAL_PROJECT: invalid value: ${CABAL_PROJECT}
BROKEN= ${USE_CABAL:Mbasement-0.0.1[4-5]} package doesn't compile on i386
. endif
. if ${OSVERSION} < 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}

View file

@ -261,7 +261,7 @@ _EXTRA_PATCHES_QT5= ${PORTSDIR}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_fe
${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 @@ qt-create-kde-distfile:
${_KDE_${_QT_DIST}_BRANCH}
.endif # defined(_QT_DIST_MK_INCLUDED)

View file

@ -42,7 +42,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# OSREL - The release version of the operating system as a text
# string (e.g., "12.4").
# OSVERSION - The operating system version as a comparable integer;
# the value of __FreeBSD_version (e.g., 1204000).
# the value of __FreeBSD_version (e.g., 1302000).
#
# This is the beginning of the list of all variables that need to be
# defined in a port, listed in order that they should be included
@ -1184,7 +1184,7 @@ OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC
. 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)

View file

@ -11,8 +11,6 @@ WWW= https://constexpr.org/innoextract/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_sparc64= does not build: undefined reference to std::ctype<char>::_M_widen_init()
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
USES= cmake compiler:c++11-lang iconv

View file

@ -63,12 +63,4 @@ CONFIGURE_ENV+= ac_cv_header_localcharset_h=no \
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 <bsd.port.post.mk>

View file

@ -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@

View file

@ -10,8 +10,6 @@ WWW= https://github.com/indygreg/python-zstandard
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}

View file

@ -14,6 +14,4 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX} --enable-shared=yes
USE_LDCONFIG= yes
BROKEN_sparc64= Does not compile on sparc64: gcc coredump
.include <bsd.port.mk>

View file

@ -12,7 +12,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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 \

View file

@ -22,6 +22,7 @@ GH_ACCOUNT= ehaupt
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 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/doc/${f}.fr.1 ${STAGEDIR}${MANPREFIX}/share/man/fr/man1
.endfor
.include <bsd.port.pre.mk>
.if (${OSVERSION} >= 1301000)
MAKE_ARGS= DLDFLAGS=-L=-Wl,-z,nostart-stop-gc
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -12,9 +12,6 @@ LICENSE_NAME= Software License for The Fraunhofer FDK AAC Codec Library for Andr
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

View file

@ -24,7 +24,6 @@ CONFIGURE_ARGS= --without-alsalib \
--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

View file

@ -12,6 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsysctlmibinfo2.so:devel/libsysctlmibinfo2
USES= ncurses
USE_GITLAB= yes
GL_ACCOUNT= alfix
@ -24,12 +25,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/share/man/man8
.include <bsd.port.options.mk>
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
USES+= ncurses
.else
USES+= ncurses:port
.endif
.include <bsd.port.mk>

View file

@ -18,7 +18,7 @@ USE_LDCONFIG= yes
MAKE_ENV+= COMPRESS_CMD="${COMPRESS_CMD:S/c//}"
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.pre.mk>
FPIC= -fpic
post-configure:
# Work around shortcomings of the Imake.rules et. al:
@ -27,13 +27,7 @@ post-configure:
-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 <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/../LICENSE
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 @@ WRKSRC_SUBDIR= src
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.options.mk>
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
USES+= ncurses
.else
USES+= ncurses:port
CFLAGS+= -I${LOCALBASE}/include/ncurses
.endif
.include <bsd.port.mk>

View file

@ -21,11 +21,4 @@ CONFIGURE_ARGS= --enable-custom-modes \
INSTALL_TARGET= install-strip
TEST_TARGET= check
.include <bsd.port.options.mk>
# drop after FreeBSD 12 EOL
.if ${ARCH} == "arm"
CONFIGURE_ARGS+=--enable-fixed-point
.endif
.include <bsd.port.mk>

View file

@ -12,8 +12,6 @@ LICENSE_COMB= multi
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

View file

@ -69,10 +69,6 @@ VST_CMAKE_BOOL= SFIZZ_VST
.include <bsd.port.pre.mk>
.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 \

View file

@ -10,8 +10,6 @@ WWW= https://sipp.sourceforge.net/
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

View file

@ -16,7 +16,6 @@ BROKEN_armv7= invokes x86 assembler
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

View file

@ -10,8 +10,6 @@ WWW= https://gatk.broadinstitute.org/hc/en-us
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

View file

@ -28,14 +28,6 @@ MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \
MKDIR="${MKDIR}" \
LN="${LN}"
.include <bsd.port.options.mk>
post-patch:
.if ${ARCH} == sparc64
@${REINPLACE_CMD} -e 's|ENABLE_MULTITHREAD = -Denablemultithread||' \
${BUILD_WRKSRC}/Makefile
.endif
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}

View file

@ -11,7 +11,7 @@ WWW= https://www.cog-genomics.org/plink/
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

View file

@ -60,11 +60,6 @@ conf_dir= ${WRKSRC}/etc/astkrc
.include <bsd.port.pre.mk>
.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

View file

@ -10,8 +10,6 @@ WWW= https://brlcad.org/
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 \

View file

@ -32,6 +32,9 @@ WRKSRC= ${WRKDIR}/CalculiX/${CCX_VER}/src
OPTIONS_DEFINE= DOCS EXAMPLES
CFLAGS+= -fpic
FFLAGS+= -fpic
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@ -44,14 +47,6 @@ DISTFILES+= ${DIST_EXAMPLES}
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

View file

@ -45,20 +45,15 @@ PSVIEWER?= gv
USES+= llvm:max=15
.endif
CFLAGS+= -fpic
FFLAGS+= -fpic
.include <bsd.port.pre.mk>
.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

View file

@ -11,7 +11,6 @@ LICENSE= GPLv2
BROKEN_i386= type 'hash<long long>' does not provide a call operator
BROKEN_powerpc= type 'hash<long long>' 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

View file

@ -42,7 +42,7 @@ PYTHON_PORTEXAMPLES= load_dwg.py
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 <stdlib.h>/; \
G; }; 24d' ${WRKSRC}/src/common.c

View file

@ -21,9 +21,6 @@ LIB_DEPENDS= libelf.so:devel/elfutils \
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

View file

@ -10,8 +10,6 @@ WWW= https://github.com/stepcode/stepcode/wiki
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

View file

@ -11,8 +11,6 @@ WWW= https://en.z88.de/
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

View file

@ -12,7 +12,6 @@ BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf
MAKE_ARGS= CFONTDIR=${FONTSDIR} EFONTDIR=${FONTSDIR}
MAKE_JOBS_UNSAFE=yes
BROKEN_sparc64= Does not build on sparc64
NO_WRKSUBDIR= yes

View file

@ -11,8 +11,6 @@ WWW= https://sourceforge.net/projects/aprsd/
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

View file

@ -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 <math.h>
+#include <cmath> # for FreeBSD 12.4
#include <iostream>
#include <sstream>
#include <iomanip>

View file

@ -8,8 +8,6 @@ MAINTAINER= hamradio@FreeBSD.org
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 \

View file

@ -8,8 +8,6 @@ MAINTAINER= hamradio@FreeBSD.org
COMMENT= Ham Radio rig control program, cooperates with fldigi
WWW= http://www.w1hkj.com/flrig-help/index.html
BROKEN_FreeBSD_12= no hid support
LICENSE= GPLv2
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \

View file

@ -19,7 +19,6 @@ BROKEN_armv7= fails to configure: cannot find /nxb-bin/usr/bin/cc
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 \

View file

@ -15,15 +15,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USES= iconv readline uidfix
PLIST_FILES= bin/obexapp man/man1/obexapp.1.gz
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -32,9 +32,6 @@ GH_ACCOUNT= EttusResearch
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

View file

@ -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<int64_t>(ptr);
+#else
u.asBits.payload = reinterpret_cast<int32_t>(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<int64_t>(const_cast<JSCell*>(ptr));
+#else
u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));
+#endif
#if ENABLE(JSC_ZOMBIES)
ASSERT(!isZombie());
#endif

View file

@ -64,8 +64,6 @@ LD= ${CC}
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}

View file

@ -65,8 +65,6 @@ LD= ${CC}
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}

View file

@ -14,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
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

View file

@ -23,8 +23,6 @@ WWW= https://grass.osgeo.org/
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 \

View file

@ -10,7 +10,7 @@ WWW= https://leo-project.net/
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 \

View file

@ -45,11 +45,4 @@ MURMUR_CMAKE_BOOL= ENABLE_HASH_MURMUR
SASL_CMAKE_BOOL= ENABLE_SASL
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
.include <bsd.port.pre.mk>
# 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 <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -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()

View file

@ -37,8 +37,6 @@ OPTIONS_DEFAULT= SASL
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

View file

@ -198,11 +198,6 @@ USES+= compiler:c++17-lang
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+= ${FILESDIR}/extra-patch-boost-boost_1_77_0-boost-move-detail-type_traits.hpp

View file

@ -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

View file

@ -198,11 +198,6 @@ USES+= compiler:c++17-lang
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+= ${PATCHDIR}/extra-patch-boost_boost__1__77__0_boost_move_detail_type__traits.hpp \

View file

@ -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

View file

@ -14,7 +14,6 @@ LICENSE_COMB= dual
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

View file

@ -108,8 +108,6 @@ ZSTD_LIB_DEPENDS+= libzstd.so:archivers/zstd
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}

View file

@ -17,7 +17,6 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
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 \

View file

@ -35,7 +35,6 @@ OPTIONS_EXCLUDE_powerpc= FIREBIRD
OPTIONS_EXCLUDE_powerpc64= FIREBIRD
OPTIONS_EXCLUDE_powerpc64le= FIREBIRD
OPTIONS_EXCLUDE_riscv64= FIREBIRD
OPTIONS_EXCLUDE_sparc64= FIREBIRD
OPTIONS_SUB= yes

View file

@ -11,8 +11,6 @@ WWW= https://github.com/thjaeger/easystroke
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 \

View file

@ -25,14 +25,7 @@ MESON_ARGS= -Ddocbook-docs=disabled -Dman-pages=disabled -Dpytest=disabled \
-Dflatpak-interfaces=disabled -Dsandboxed-image-validation=false \
-Dsystemd=disabled
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -11,7 +11,7 @@ WWW= https://tools.suckless.org/9base
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

View file

@ -31,6 +31,8 @@ SHEBANG_FILES= checker/*.pl adumper/*.pl
CTAGS?= exctags
PICFLAG?= -fpic
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPORTS_BINUTILS}
@ -42,12 +44,6 @@ OBJDUMP?= ${PREFIX}/bin/objdump
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 && \

View file

@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/README
#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 @@ do-install-DOCS-on:
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} THIS=${PORTNAME} install.html)
.include <bsd.port.options.mk>
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
USES+= ncurses
.else
USES+= ncurses:port
.endif
.include <bsd.port.mk>

View file

@ -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);
}

View file

@ -34,17 +34,13 @@ PORTDOCS= Changes.html Descriptor.html Options.html Readme.html \
OPTIONS_DEFINE= DOCS
PICFLAG?= -fpic
.include <bsd.port.options.mk>
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/' \

View file

@ -13,7 +13,7 @@ WWW= https://www.arduino.cc/
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 \

View file

@ -26,7 +26,7 @@ PORTDOCS= avce00.html
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

View file

@ -12,8 +12,6 @@ WWW= https://avro.apache.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_sparc64= fails to build
LIB_DEPENDS= libjansson.so:devel/jansson \
libsnappy.so:archivers/snappy

View file

@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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

View file

@ -15,7 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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

View file

@ -10,7 +10,6 @@ WWW= https://github.com/Netflix/bbparse
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
IGNORE_FreeBSD_12=does not build
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
USE_GITHUB= yes

View file

@ -22,7 +22,7 @@ LIB_DEPENDS= libzstd.so:archivers/zstd
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 @@ INFO_INFO= as \
.include <bsd.port.pre.mk>
# 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=""

View file

@ -7,8 +7,6 @@ WWW= https://www.boost.org/
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

View file

@ -15,7 +15,7 @@ WWW= http://concurrencykit.org
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

View file

@ -15,7 +15,6 @@ BROKEN_aarch64= does not configure: error: check for atomictype failed
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

View file

@ -23,13 +23,7 @@ PLIST_FILES= bin/disasm \
lib/libdistorm3.so \
lib/libdistorm3.so.1
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
do-build:
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
@ -50,4 +44,4 @@ do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/disasm ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -9,7 +9,7 @@ WWW= https://github.com/rhboot/efivar
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

View file

@ -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 <osreldate.h>
+#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"
-

View file

@ -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(),

View file

@ -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 <osreldate.h>
+#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"
-

View file

@ -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(),

View file

@ -14,7 +14,6 @@ LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING-GPLV2
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 @@ BUILD_DEPENDS= gnulib>=0:devel/gnulib
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= gettext
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 @@ CONFIGURE_ARGS+= --program-prefix=eu-
# Disable debuginfod until option support can be added:
CONFIGURE_ARGS+= --disable-debuginfod
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300512 # 2021-07-17
CFLAGS+= -DFREEBSD_HAS_MEMPCPY
.endif
pre-configure:
@${CP} -a \
${LOCALBASE}/share/gnulib/lib/obstack.c \

View file

@ -12,8 +12,6 @@ WWW= https://gcc.gnu.org/
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 \

View file

@ -12,8 +12,6 @@ WWW= https://gcc.gnu.org/
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 \

View file

@ -20,7 +20,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \
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

View file

@ -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

View file

@ -53,13 +53,6 @@ PLIST_SUB= SHLIB_MAJOR=${PORTVERSION:R} \
CONFLICTS_INSTALL= grpc[0-9][0-9][0-9]
.include <bsd.port.pre.mk>
# 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 @@ post-patch:
@${RM} -r ${WRKSRC}/third_party/xxhash/
@${RM} -r ${WRKSRC}/third_party/zlib/
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -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")

View file

@ -27,12 +27,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.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 @@ post-stage:
do-test:
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
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}

View file

@ -29,13 +29,4 @@ FAM_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_FAM
CMAKE_ARGS= -DACCOUNTS_SERVICE_ICON_DIR:PATH=/var/db/AccountsService/icons
.include <bsd.port.pre.mk>
# 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 <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -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

View file

@ -13,8 +13,6 @@ LICENSE_COMB= multi
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

View file

@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/../COPYING
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

View file

@ -10,7 +10,7 @@ WWW= https://peak.sourceforge.net/
LICENSE= BSD2CLAUSE
ONLY_FOR_ARCHS= amd64 i386 sparc64
ONLY_FOR_ARCHS= amd64 i386
USES= gmake libtool perl5 shebangfix
USE_PERL5= test

View file

@ -9,13 +9,6 @@ WWW= https://github.com/rmind/libqsbr
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

View file

@ -10,7 +10,7 @@ WWW= https://www.gnu.org/software/lightning/
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 @@ INSTALL_TARGET= install-strip
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

View file

@ -39,9 +39,6 @@ MAKE_ENV+= LDADD="-lrt"
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134
MAKE_ARGS+= NO_WERROR=yes
.endif
MAKE_ARGS+= NO_WDATE_TIME=yes
.if ${ARCH} == amd64

View file

@ -14,7 +14,6 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.txt
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

View file

@ -109,7 +109,6 @@ OPTIONS_EXCLUDE_armv7+= FLANG OPENMP
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 @@ USES+= gnome
.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}

View file

@ -273,7 +273,7 @@ PYCLANG_PATTERN= (clang\/(__init__|cindex|enumerations).py)$$
.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_MSP430= AsmParser Disassembler
_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

Some files were not shown because too many files have changed in this diff Show more