git: 79fe36a97834 - main - sysutils/coreutils: Fix build on i386

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Tue, 27 Feb 2024 05:51:47 UTC
The branch main has been updated by lwhsu:

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

commit 79fe36a9783404fe0af3ff0902f645a9b2eaabbb
Author:     Martin Birgmeier <d8zNeCFG@aon.at>
AuthorDate: 2024-02-27 05:49:12 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-02-27 05:49:12 +0000

    sysutils/coreutils: Fix build on i386
    
    PR:             277277
    Approved by:    maintainer
---
 sysutils/coreutils/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index 9264909a27ab..cc98dfcb555c 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -24,6 +24,9 @@ GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 # bugs.freebsd.org/160060
 CONFIGURE_ARGS=	--program-prefix=g	\
 		--program-transform-name=s/stat/nustat/
+.if ${ARCH} == i386
+CONFIGURE_ARGS+=	--disable-year2038
+.endif
 CONFIGURE_ENV=	FORCE_UNSAFE_CONFIGURE=1
 
 CONFLICTS_INSTALL=	gdu geneweb gexpr rubygem-god # bin/gdu bin/gexpr bin/god bin/gwc