git: f733d1749456 - main - editors/openoffice-{4,devel}: parallel build fail

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Mon, 04 Aug 2025 05:52:09 UTC
The branch main has been updated by truckman:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f733d1749456aa27393d0455a96b5eb18044a75d

commit f733d1749456aa27393d0455a96b5eb18044a75d
Author:     Don Lewis <truckman@FreeBSD.org>
AuthorDate: 2025-08-04 05:42:59 +0000
Commit:     Don Lewis <truckman@FreeBSD.org>
CommitDate: 2025-08-04 05:52:01 +0000

    editors/openoffice-{4,devel}: parallel build fail
    
    The Apache OpenOffice ports frequently fail to build with errors similar
    to:
      nm: '../unxfbsdi.pro/slo/b2dcubicbezier.o': Invalid argument
    but only parallel builds on 13.X and 14.X.  I've never seen this on
    15.0-CURRRENT.  The root cause is not yet known.
    
    Disable parallel builds for FreebSD < 15.0.
    
    Reported by:    pkg-fallout
    MFH:            2025Q3
---
 editors/openoffice-4/Makefile     | 5 +++++
 editors/openoffice-devel/Makefile | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile
index e531df3c78e4..4988d996dfa8 100644
--- a/editors/openoffice-4/Makefile
+++ b/editors/openoffice-4/Makefile
@@ -196,6 +196,11 @@ WITH=	SDK
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000
+# nm: '../unxfbsdi.pro/slo/b2dcubicbezier.o': Invalid argument
+MAKE_JOBS_UNSAFE=	yes
+.endif
+
 .if defined(WITH_DEBUG)
 CONFIGURE_ARGS+=	--enable-symbols
 .else
diff --git a/editors/openoffice-devel/Makefile b/editors/openoffice-devel/Makefile
index b3ab9b938211..31a250214c9b 100644
--- a/editors/openoffice-devel/Makefile
+++ b/editors/openoffice-devel/Makefile
@@ -226,6 +226,11 @@ WITH=	SDK
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000
+# nm: '../unxfbsdi.pro/slo/b2dcubicbezier.o': Invalid argument
+MAKE_JOBS_UNSAFE=	yes
+.endif
+
 .if defined(WITH_DEBUG)
 CONFIGURE_ARGS+=	--enable-symbols
 .else