[MacPorts] #65673: coreutils - configure: error: The 'time_t' type stops working after January 2038, and your system appears to support a wider 'time_t'
MacPorts
noreply at macports.org
Tue Aug 16 23:05:35 UTC 2022
#65673: coreutils - configure: error: The 'time_t' type stops working after January
2038, and your system appears to support a wider 'time_t'
------------------------+----------------------
Reporter: RobK88 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: coreutils |
------------------------+----------------------
Comment (by ryandesign):
I don't think we need a conditional check. As far as I understand it,
`--disable-year2038` (previously `TIME_T_32_BIT_OK=yes`) merely tells the
configure script not to error out if `time_t` is 32-bit. It has no effect
if `time_t` is 64-bit.
My understanding is that `time_t` is 64-bit on 64-bit macOS and 32-bit on
32-bit macOS. If we want to support building for 32-bit macOS, either
standalone or universal, then we need to disable the error.
It's a little confusing but you can look at the code behind the
`--disable-year2038` switch here:
https://github.com/coreutils/gnulib/blob/master/m4/year2038.m4
--
Ticket URL: <https://trac.macports.org/ticket/65673#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list