public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-DateTime-Format-Duration] f44: 1.06 bump
@ 2026-06-03 11:31 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-03 11:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-DateTime-Format-Duration
Branch : f44
Commit : bacf09d3505c6eccc30934d2b6a9a8978f27e2dc
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-06-03T13:27:55+02:00
Stats  : +6/-62 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-DateTime-Format-Duration/c/bacf09d3505c6eccc30934d2b6a9a8978f27e2dc?branch=f44

Log:
1.06 bump

---
diff --git a/.gitignore b/.gitignore
index 23dc6d9..8f49ca7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /DateTime-Format-Duration-1.03a.tgz
 /DateTime-Format-Duration-1.04.tar.gz
 /DateTime-Format-Duration-1.05.tar.gz
+/DateTime-Format-Duration-1.06.tar.gz

diff --git a/DateTime-Format-Duration-1.05-Fix-Use-of-uninitialized-value-W-in-scalar-assignmen.patch b/DateTime-Format-Duration-1.05-Fix-Use-of-uninitialized-value-W-in-scalar-assignmen.patch
deleted file mode 100644
index 289270f..0000000
--- a/DateTime-Format-Duration-1.05-Fix-Use-of-uninitialized-value-W-in-scalar-assignmen.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From a8234e53cf9f39446ac948b15690982a27b7118b Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Mon, 1 Jun 2026 17:35:49 +0200
-Subject: [PATCH] Fix "Use of uninitialized value $^W in scalar assignment"
- warning
-
-On Perl 5.42.2 some tests printed warnings like this:
-
-    $ perl -Ilib t/2_fmt_normalise.t
-    Use of uninitialized value $^W in scalar assignment at lib/DateTime/Format/Duration.pm line 207.
-    ok 1 - Test  1:    0000-00-00 00:00:01 should stay   0000-00-00 00:00:01
-    [...]
-
-The cause was an attempt to locally disable warnings with
-"local $^W = undef;" in parse_duration_as_deltas(). perlvar POD
-only documents true and false values. So probably undef is not
-supported.
-
-Surprisingly, the warning does not manifest on 5.43.10. The reason is
-this Perl's commit:
-
-    commit 00f271f523a94b9cf19f94e0efd2c1a0d390af93
-    Author: David Mitchell <davem@iabyn.nospamdeletethisbit.com>
-    Date:   Wed Nov 12 17:02:16 2025 +0000
-
-	don't warn on 'undef $^W'
-
-	Ironically, this warns:
-
-	    $ perl -e'use warnings; undef $^W'
-	    Use of uninitialized value in undef operator at -e line 1.
-	    $
-
-	The magic-setting code was treating the new value of $^W as an integer.
-	This commit makes it treat the value as a boolean.
-
-This patch fixes the warning on "old" Perls by setting the variable to defined 0.
----
- lib/DateTime/Format/Duration.pm | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/DateTime/Format/Duration.pm b/lib/DateTime/Format/Duration.pm
-index 02dbabf..110cebe 100755
---- a/lib/DateTime/Format/Duration.pm
-+++ b/lib/DateTime/Format/Duration.pm
-@@ -204,7 +204,7 @@ sub parse_duration {
- sub parse_duration_as_deltas {
-     my ( $self, $time_string ) = @_;
- 
--    local $^W = undef;
-+    local $^W = 0;
- 
-     # Variables from the parser
-     my ( $centuries,$years,   $months,
--- 
-2.54.0
-

diff --git a/perl-DateTime-Format-Duration.spec b/perl-DateTime-Format-Duration.spec
index 95e113c..9068410 100644
--- a/perl-DateTime-Format-Duration.spec
+++ b/perl-DateTime-Format-Duration.spec
@@ -1,7 +1,7 @@
 %global cpan_name DateTime-Format-Duration
 
 Name:           perl-%{cpan_name}
-Version:        1.05
+Version:        1.06
 Release:        1%{?dist}
 Summary:        Format and parse DateTime::Durations
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
@@ -9,9 +9,6 @@ URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
 # Upstream links images to the Internet, we package them into %%{_docdir}
 Patch0:         DateTime-Format-Duration-1.04-Link-images-to-local-documentation.patch
-# Fix warnings on Perl 5.42.2, proposed upstream,
-# <https://github.com/karenetheridge/DateTime-Format-Duration/pull/3>
-Patch1:         DateTime-Format-Duration-1.05-Fix-Use-of-uninitialized-value-W-in-scalar-assignmen.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  findutils
@@ -95,6 +92,9 @@ make test
 %{_libexecdir}/%{name}
 
 %changelog
+* Wed Jun 03 2026 Petr Pisar <ppisar@redhat.com> - 1.06-1
+- 1.06 bump
+
 * Mon Jun 01 2026 Petr Pisar <ppisar@redhat.com> - 1.05-1
 - 1.05 bump
 - Package the tests

diff --git a/sources b/sources
index 6f15389..77ffe6d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (DateTime-Format-Duration-1.05.tar.gz) = 1079ee1f0366e098b4d5fa526a1656801e4b012ff58816bb1316f4cdc7643cea3390fd5cae0c6113f8bb2594f98d90315c6d621d202fb208560151db92972ef1
+SHA512 (DateTime-Format-Duration-1.06.tar.gz) = bcede3821769e7c3590dc1ede1a463632062dd765725c7de1d086b09a8720a18fa3fd4f945c8fb273dc75e13aaa0096dfb8ab02821672ddec87209c1e8ce1d19

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 11:31 [rpms/perl-DateTime-Format-Duration] f44: 1.06 bump 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox