[Bug 276281] lang/python39 fails to include tzset in time module

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Jan 2024 04:12:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276281

Ken McDonell <kenj@kenj.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kenj@kenj.id.au

--- Comment #1 from Ken McDonell <kenj@kenj.id.au> ---
Python here seems to be the victim, not the cause.

localtime() is not working correctly for FreeBSD 14.0 and is different to
FreeBSD 13.2 and Linux variants, and this is causing this code fragment in
lang/python39's configure.ac to fail ...

# check tzset(3) exists and works like we expect it to
...
        time_t groundhogday = 1044144000; /* GMT-based */
...
        putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
        tzset();
        if (localtime(&groundhogday)->tm_hour != 11)
            exit(1);

and so HAVE_WORKING_TZSET is NOT defined and so the tzset method is omitted
from the time module.

I've extracted the code fragment from configure.ac and FreeBSD 14.0 returns the
incorrect value 10 for tm_hour.

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