This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2216116 - pytz: FTBFS due to tzdata changes [rhel9]
Summary: pytz: FTBFS due to tzdata changes [rhel9]
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pytz
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lumír Balhar
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-20 07:29 UTC by Florian Weimer
Modified: 2023-07-12 13:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2217852 2217853 2217873 (view as bug list)
Environment:
Last Closed: 2023-07-12 13:40:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-676 0 None None None 2023-07-12 13:40:06 UTC
Red Hat Issue Tracker RHELPLAN-160263 0 None None None 2023-06-20 07:32:57 UTC

Description Florian Weimer 2023-06-20 07:29:07 UTC
This upstream commit is needed to get pytz building again:

commit 07aa4d962dae5cb7ced4f61fe85a9001a01676df
Author: Stuart Bishop <stuart>
Date:   Sat Aug 13 12:00:26 2022 +1000

    Revert inclusion of PACKRATDATA=backzone
    
    Per https://github.com/python/tzdata/issues/53#issuecomment-1213628767
    
    I chose to include backzone in pytz in an attempt to head off problems:
    
      Changes to past timestamps
    
        Finish moving to 'backzone' the location-based zones whose
        timestamps since 1970 are duplicates; adjust links accordingly.
        This change ordinarily affects only pre-1970 timestamps, and with
        the new PACKRATLIST option it does not affect any timestamps.
        In this round the affected zones are Antarctica/Vostok,
        Asia/Brunei, Asia/Kuala_Lumpur, Atlantic/Reykjavik,
        Europe/Amsterdam, Europe/Copenhagen, Europe/Luxembourg,
        Europe/Monaco, Europe/Oslo, Europe/Stockholm, Indian/Christmas,
        Indian/Cocos, Indian/Kerguelen, Indian/Mahe, Indian/Reunion,
        Pacific/Chuuk, Pacific/Funafuti, Pacific/Majuro, Pacific/Pohnpei,
        Pacific/Wake and Pacific/Wallis, and the affected links are
        Arctic/Longyearbyen, Atlantic/Jan_Mayen, Iceland, Pacific/Ponape,
        Pacific/Truk, and Pacific/Yap.
    
    This upstream change modifies some of the pre-1970 transitions in obscure
    ways that almost zero users will actually care about, and where quite
    likely dubious in any case. Such as the times pre-1970 when Belfast was
    not on London time or when Amsterdam switched from being 18-20 minutes
    ahead of GMT to GMT. Changes to historical timezones has always happened
    in the upstream database, and normally they are called corrections
    (which only causes breakage if you area storing wallclock times rather
    than UTC timestamps).

Comment 1 Lumír Balhar 2023-06-27 09:41:06 UTC
It seems that the problem now causes FTBFS of pytz in python27 and python38 modules in RHEL 8. I'm gonna clone this bugzilla for them.

Comment 2 Lumír Balhar 2023-06-27 10:35:50 UTC
And also for the non-modular version in RHEL 8.

Comment 3 Lumír Balhar 2023-06-27 16:40:07 UTC
If I understand it correctly, upstream of pytz has changed (in the commit mentioned above) the way they collect the data from tzdata project to exclude the backzone information from it. That's something we cannot reproduce downstream, because we rely on data provided by tzdata component so the only way forward here is to make the tests in pytz project compatible with whatever tzdata provides right now.

FTR: I'm going to fix pytz in modules first because we need to ship them asap and there are multiple failing components. I'm gonna use the non-modular bugs for pytz for RHEL 8 and 9 for testing of RHEL in Jira processes and I'll try to migrate them into Jira soon.

Comment 4 Lumír Balhar 2023-06-28 12:43:47 UTC
I'm gonna test the automatic migration from BZ to Jira here.


Note You need to log in before you can comment on or make changes to this bug.