diff --git a/lang/polyml/Makefile b/lang/polyml/Makefile index 441ef51ac46e..82bf90c17d23 100644 --- a/lang/polyml/Makefile +++ b/lang/polyml/Makefile @@ -1,43 +1,43 @@ PORTNAME= polyml PORTVERSION= 5.9.2 DISTVERSIONPREFIX= v CATEGORIES= lang DIST_SUBDIR= ${PORTNAME} MAINTAINER= beyert@cs.ucr.edu COMMENT= Fast open-source implementation of Standard ML WWW= https://www.polyml.org LICENSE= LGPL21 -ONLY_FOR_ARCHS= aarch64 amd64 i386 +ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64le powerpc64 LIB_DEPENDS= libffi.so:devel/libffi USES= libtool localbase pathfix pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --with-system-libffi --enable-shared INSTALL_TARGET= install-strip OPTIONS_DEFINE= MOTIF GMP INTINF_AS_INT OPTIONS_DEFAULT=GMP INTINF_AS_INT INTINF_AS_INT_DESC= Use IntInf.int as int type GMP_LIB_DEPENDS= libgmp.so:math/gmp GMP_CONFIGURE_WITH= gmp INTINF_AS_INT_CONFIGURE_ENABLE= intinf-as-int MOTIF_USES= motif xorg MOTIF_USE= xorg=x11,xext,xt MOTIF_CONFIGURE_WITH= x post-patch: @${REINPLACE_CMD} -e 's|-lstdc++ ||' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's| modules||' ${WRKSRC}/Makefile.in .include diff --git a/lang/polyml/files/patch-libpolyml_sighandler.cpp b/lang/polyml/files/patch-libpolyml_sighandler.cpp new file mode 100644 index 000000000000..2ef8ecaa697c --- /dev/null +++ b/lang/polyml/files/patch-libpolyml_sighandler.cpp @@ -0,0 +1,13 @@ +--- libpolyml/sighandler.cpp.orig 2026-07-07 19:06:37 UTC ++++ libpolyml/sighandler.cpp +@@ -549,8 +549,8 @@ void SigHandler::Init(void) + #ifdef PTHREAD_STACK_MIN + // In glibc 2.34 and later, PTHREAD_STACK_MIN may expand to a function call + size_t stacksize = PTHREAD_STACK_MIN; // Only small stack. +- if (stacksize < 4096U) // But not too small: FreeBSD makes it 2k +- stacksize = 4096U; ++ if (stacksize < 65536U) // But not too small: FreeBSD makes it 2k ++ stacksize = 65536U; + pthread_attr_setstacksize(&attrs, stacksize); + #endif + threadRunning = pthread_create(&detectionThreadId, &attrs, SignalDetectionThread, 0) == 0;