git: 6aae9fcd852a - main - archivers/gtar: fix build on i386

From: Christian Weisgerber <naddy_at_FreeBSD.org>
Date: Thu, 20 Jul 2023 20:46:31 UTC
The branch main has been updated by naddy:

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

commit 6aae9fcd852a0acd371a4fa072afce7318f471f1
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2023-07-20 20:40:32 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2023-07-20 20:46:10 +0000

    archivers/gtar: fix build on i386
    
    Override a hidden safety check that stops the build on platforms
    that are not Y2038 safe.  FreeBSD/i386 still has a 32-bit time_t.
    
    PR:             272622
    Reported by:    cy
---
 archivers/gtar/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile
index b2e470b63b6d..bcfa094a5f4f 100644
--- a/archivers/gtar/Makefile
+++ b/archivers/gtar/Makefile
@@ -17,6 +17,8 @@ USES=		charsetfix cpe iconv:${STATIC_ARGS} localbase tar:xz
 CPE_VENDOR=	gnu
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=g
+# unbuckle safety belt: FreeBSD/i386 still has 32-bit time_t
+CONFIGURE_ARGS+=--disable-year2038
 CONFIGURE_ENV=	DEFAULT_RMT_COMMAND=/etc/rmt
 # supply result to skip a test that will abort configure if run as root
 CONFIGURE_ENV+=	gl_cv_func_mknod_works=yes