git: a87e98d2deba - main - lang/erlang-runtime27: on i386, build without timestamps post 2038

From: Dave Cottlehuber <dch_at_FreeBSD.org>
Date: Wed, 05 Jun 2024 20:16:05 UTC
The branch main has been updated by dch:

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

commit a87e98d2deba1fce91e468856f92f8b4ecded5a8
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2024-06-05 20:16:02 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2024-06-05 20:16:02 +0000

    lang/erlang-runtime27: on i386, build without timestamps post 2038
    
    configure: error: could not enable timestamps after mid-January 2038.
    This package recommends support for these later timestamps.
    
    Correct PORTNAME suffix auto-generation to match previous name.
    
    Reported by:    pkg-fallout
---
 lang/erlang-runtime27/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/erlang-runtime27/Makefile b/lang/erlang-runtime27/Makefile
index 4e6634c7bc36..e1ef45fd46dd 100644
--- a/lang/erlang-runtime27/Makefile
+++ b/lang/erlang-runtime27/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	erlang
 DISTVERSIONPREFIX=	OTP-
 DISTVERSION=	27.0
 CATEGORIES=	lang parallel java
-PKGNAMESUFFIX=	-runtime27
+PKGNAMESUFFIX=	-runtime${PORTVERSION:C/\..*//}
 DIST_SUBDIR=	erlang
 
 MAINTAINER=	erlang@FreeBSD.org
@@ -95,6 +95,7 @@ CFLAGS+=	-DMAP_NORESERVE=0
 
 .if ${ARCH} == i386
 MAKE_ARGS+=	ARCH=x86
+CONFIGURE_ARGS+=	--disable-year2038
 .endif
 
 .if ${ARCH} == armv6 || ${ARCH} == armv7