Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Time-modules for
openSUSE:Factory checked in at 2025-01-14 16:22:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Time-modules (Old)
and /work/SRC/openSUSE:Factory/.perl-Time-modules.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Time-modules"
Tue Jan 14 16:22:45 2025 rev:24 rq:1237563 version:2013.0912
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Time-modules/perl-Time-modules.changes
2018-09-18 11:43:19.899917109 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Time-modules.new.1881/perl-Time-modules.changes
2025-01-14 16:23:37.408430996 +0100
@@ -1,0 +2,5 @@
+Thu Nov 14 20:43:57 UTC 2024 - Bernhard Wiedemann <[email protected]>
+
+- Add fixtest.patch to fix tests after 2033 (boo#1102840)
+
+-------------------------------------------------------------------
New:
----
fixtest.patch
BETA DEBUG BEGIN:
New:
- Add fixtest.patch to fix tests after 2033 (boo#1102840)
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Time-modules.spec ++++++
--- /var/tmp/diff_new_pack.DpwaZ3/_old 2025-01-14 16:23:37.864449865 +0100
+++ /var/tmp/diff_new_pack.DpwaZ3/_new 2025-01-14 16:23:37.864449865 +0100
@@ -24,6 +24,7 @@
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/MUIR/Time-modules-2013.0912
Source:
https://www.cpan.org/modules/by-module/Time/Time-modules-%{version}.tar.gz
+Patch0: fixtest.patch
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
@@ -34,13 +35,14 @@
Perl modules providing various time functions.
%prep
-%setup -q -n Time-modules-%{version}
+%autosetup -p1 -n Time-modules-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
%check
+#cd ~/rpmbuild/BUILD/Time-modules-2013.0912/ && PERL5LIB=lib perl t/datetime.t
| tee /tmp/datetime.out ; exit 1
make %{?_smp_mflags} test
%install
++++++ fixtest.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse.de>
Date: 2018-10-31
Make tests pass in the future
Without this patch, 33 tests failed in 2033 by misinterpreting 2-digit years
e.g.
two digit year '94' expanded into 2094
jd(2094, 11, 06) = 2486188
before 2486188 08 49 37
after rs 2486188 8 49 37
jd_secondsgm(2486188, 8, 49, 37) = 3939871777
adjusting secs for GMT: 0
returning 3939871777.
not ok 273 # Sunday, 06-Nov-94 08:49:37 GMT
Expected(784111777): Sun Nov 6 0:49:37 1994 PST
Got(3939871777): Sat Nov 6 0:49:37 2094 PST (11/06 08:49 AM GMT)
Index: Time-modules-2013.0912/t/datetime.t
===================================================================
--- Time-modules-2013.0912.orig/t/datetime.t
+++ Time-modules-2013.0912/t/datetime.t
@@ -437,6 +437,7 @@ while (@sdt) {
$ar = shift(@sdt);
$toparse = shift(@$ar);
%opts = @$ar;
+ $opts{NOW} //= 1000000000;
if (defined $opts{NOW}) {
$opts{NOW} -= $epoch;
}