The vast majority of current sparc64 breakage is due to shared-mime-info not building
http://build-failures.rhaalovely.net/sparc64/2023-10-14/summary.log First problem is that it requires C++17, so COMPILER needs to be set, then it needs an extra -lstdc++fs to actually package, REVISION bump to be on the safe side. The EXTRA_ports-gcc dance is from multimedia/mkvtoolnix. With lots of help from jca. Index: Makefile =================================================================== RCS file: /cvs/ports/misc/shared-mime-info/Makefile,v retrieving revision 1.78 diff -u -p -r1.78 Makefile --- Makefile 11 Oct 2023 20:32:48 -0000 1.78 +++ Makefile 16 Oct 2023 18:37:18 -0000 @@ -2,6 +2,7 @@ COMMENT= shared mime database for deskt V= 2.3 DISTNAME= shared-mime-info-${V} +REVISION= 0 CATEGORIES= misc @@ -15,6 +16,14 @@ PERMIT_PACKAGE= Yes # uses pledge() and unveil() WANTLIB += ${COMPILER_LIBCXX} c glib-2.0 xml2 +# C++17 +COMPILER= base-clang ports-gcc + +# need to add this for gcc +# revisit when gcc drops it +EXTRA_ports-gcc= -lstdc++fs +LDFLAGS+= ${EXTRA_${CHOSEN_COMPILER}} + SITES= https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${V}/ MODULES= devel/meson \ @@ -30,6 +39,7 @@ LIB_DEPENDS= devel/glib2 \ # XXX needs https://gitlab.freedesktop.org/xdg/xdgmime sources for tests CONFIGURE_ARGS += -Dxdgmime-path=${WRKSRC}/xdgmime +CONFIGURE_ENV += LDFLAGS="${LDFLAGS}" pre-configure: sed -i 's|/usr/local|${PREFIX}|g' ${WRKSRC}/src/update-mime-database.cpp