Bug 1086297 - perl-Date-Manip fails in testsuite on all 32bit platforms
perl-Date-Manip fails in testsuite on all 32bit platforms
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Petr Gajdos
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-21 16:07 UTC by Ruediger Oertel
Modified: 2018-09-03 08:06 UTC (History)
2 users (show)

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


Attachments
Test of days_since_1BC(). (1.00 KB, application/x-perl)
2018-08-13 11:02 UTC, Petr Gajdos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruediger Oertel 2018-03-21 16:07:11 UTC
set ExcludeArch accordingly.
Comment 2 Dominique Leuenberger 2018-03-23 08:05:59 UTC
(In reply to Ruediger Oertel from comment #0)
> set ExcludeArch accordingly.

Why not FIX the stuff?

This now results in:

can't install pcp-pmda-ds389log-3.11.9-5.42.i586:
  nothing provides perl-Date-Manip needed by pcp-pmda-ds389log-3.11.9-5.42.i586
Comment 3 Petr Gajdos 2018-08-13 11:02:24 UTC
Created attachment 779562 [details]
Test of days_since_1BC().

I will explain why t/base._calc_date_ymwd.t is failing, I have not looked on other tests. The root of the issue lies in days_since_1BC(). Running `perl test.pl`, I get on Tumbleweed:

x86_64

$ perl test.pl
YMD:  2009 8 15
D1BC: 733634
g = 733939
10000*733939 = 7339390000
y = 2009
YMD:  2009 8 15
$

i586

YMD:  2009 8 15
D1BC: 733634
g = 733939
10000*733939 = -1250544592
y = -342
YMD:  1997 2 2

Therefore, an integer overflow is the culprit.
Comment 4 Petr Gajdos 2018-08-13 11:25:40 UTC
days_since_1BC() is part of the library, so I think the issue is real.

I have sent mail with bugreport to bug-Date-Manip at rt.cpan.org.
Comment 6 Petr Gajdos 2018-08-14 07:58:36 UTC
https://rt.cpan.org/Public/Bug/Display.html?id=126052

According to upstream, 6.73 will fix the issue.
Comment 7 Petr Gajdos 2018-08-14 08:30:02 UTC
I will keep this bug open to remind me to remove ExcludeArch* after perl-Date-Manip update.
Comment 8 Petr Gajdos 2018-09-03 08:06:38 UTC
The issue should be solved (I tested i586 build) via sr#632794.