Bug 1203982 - tcl FTBFS in 2038
Summary: tcl FTBFS in 2038
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Reinhard Max
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-04 05:25 UTC by Bernhard Wiedemann
Modified: 2023-04-07 08:46 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2022-10-04 05:25:07 UTC
While working on reproducible builds for openSUSE, I found that
our tcl package stops to build after 2038-01-19
from some y2k38 issue

To reproduce
osc co openSUSE:Factory/tcl && cd $_
osc build --vm-type=kvm --noservice --clean \
 --build-opt=--vm-custom-opt="-rtc base=2038-01-20T00:00:00" standard


Actual results:

 ==== interp-34.3 basic test of limits - pure bytecode loop FAILED
 ==== interp-34.3 FAILED
 ==== interp-34.3.1 basic test of limits - pure inside-command loop FAILED
 ==== interp-34.3.1 FAILED
 ==== interp-34.8 time limits trigger in vwaits FAILED
 ==== interp-34.8 FAILED
 ==== interp-34.11 time limit extension in callbacks FAILED
 ==== interp-34.11 FAILED
 ==== interp-34.12 time limit extension in callbacks FAILED
 ==== interp-34.12 FAILED
Comment 1 Reinhard Max 2022-10-10 16:08:32 UTC
AFAIK this is already being taken care of upstream, but I'll double-check.
Comment 2 Reinhard Max 2023-01-12 17:10:33 UTC
I had a closer look and found that Tcl's time handling in general is y2k38 safe already with the [interp limit time -seconds] command being the only exception that breaks all the tests mentioned in comment 0.

Opened an upstream bug:
https://core.tcl-lang.org/tcl/tktview/3e8074aea74539cfd981ad6912c52c1488fc89c4
Comment 3 Reinhard Max 2023-02-06 18:39:47 UTC
Committed the proposed fix from upstream to the devel project, and it passes the test suite with no failures when building as given in comment 0.

Bernhard, please double-check before I submit to Factory.
Comment 4 Bernhard Wiedemann 2023-02-07 04:14:20 UTC
I tested devel:languages:tcl/tcl
and it builds fine now.

Thanks.
Comment 5 Reinhard Max 2023-02-14 12:04:08 UTC
Thanks, closing.