Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2024 09:37:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277277] sysutils/coreutils: fix on i386
Message-ID:  <bug-277277-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277277

            Bug ID: 277277
           Summary: sysutils/coreutils: fix on i386
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
                CC: jharris@widomaker.com
                CC: jharris@widomaker.com
             Flags: maintainer-feedback?(jharris@widomaker.com)

Scenario:
- FreeBSD stable/14
- ports latest
- using portmaster to upgrade ports
- upgrading sysutils/coreutils to 9.4

Result:
- fails with

configure: error: in
'/usr/tmp/net/hal/z/SRC/FreeBSD/ports/MBi/main/sysutils/coreutils/work/core=
utils-9.4':
configure: error: could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See 'config.log' for more details

Fix:
- use the following patch:

diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index a346bdc5e090..a5cc711f6911 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -23,6 +23,9 @@ GNU_CONFIGURE_MANPREFIX=3D${PREFIX}/share
 # bugs.freebsd.org/160060
 CONFIGURE_ARGS=3D        --program-prefix=3Dg      \
                --program-transform-name=3Ds/stat/nustat/
+.if ${ARCH} =3D=3D i386
+CONFIGURE_ARGS+=3D       --disable-year2038
+.endif
 CONFIGURE_ENV=3D FORCE_UNSAFE_CONFIGURE=3D1

 CONFLICTS_INSTALL=3D     gdu geneweb gexpr rubygem-god # bin/gdu bin/gexpr
bin/god bin/gwc

Note: Other architectures are probably also affected and should be include =
in
the .if statement

-- Martin

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277277-7788>