git: a0b5a8dd4ced - main - misc/getopt: Fix build on i386

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 10 Sep 2025 08:44:04 UTC
Wrong.

You made situation even worse by forcing time_t to be treated as 32bit signed long long on all platforms while only i386 is affected.

Proper fix is:

diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile
index a5fdc59d8af2..3632f7bedc09 100644
--- a/misc/getopt/Makefile
+++ b/misc/getopt/Makefile
@@ -19,8 +19,9 @@ CONFIGURE_ARGS= --disable-asciidoc \
--disable-nls \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
- --disable-year2038 \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
+CONFIGURE_ENV+= ${CONFIGURE_ENV_${ARCH}}
+CONFIGURE_ENV_i386= ac_cv_sys_year2038_opts="none needed"
GNU_CONFIGURE= yes

SHEBANG_FILES= misc-utils/getopt-example.bash

--
Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team
(fluffy@FreeBSD.org, https://t.me/FluffyBSD)

> On среда, сент. 10, 2025 at 7:47 AM, Po-Chuan Hsieh <sunpoet@FreeBSD.org (mailto:sunpoet@FreeBSD.org)> wrote:
> The branch main has been updated by sunpoet:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=a0b5a8dd4cedad3afe8f125cd273dbdd32b44ee5
>
> commit a0b5a8dd4cedad3afe8f125cd273dbdd32b44ee5
> Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> AuthorDate: 2025-09-10 04:38:18 +0000
> Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> CommitDate: 2025-09-10 04:38:18 +0000
>
> misc/getopt: Fix build on i386
>
> PR: 289277
> Reported by: Martin Birgmeier <d8zNeCFG@aon.at>
> ---
> misc/getopt/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile
> index c443c45207ca..a5fdc59d8af2 100644
> --- a/misc/getopt/Makefile
> +++ b/misc/getopt/Makefile
> @@ -19,6 +19,7 @@ CONFIGURE_ARGS= --disable-asciidoc \
> --disable-nls \
> --disable-makeinstall-chown \
> --disable-makeinstall-setuid \
> + --disable-year2038 \
> --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
> GNU_CONFIGURE= yes
>