File: devel-deprecations-environmental.patch

package info (click to toggle)
libnumber-phone-perl 4.0008-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,772 kB
  • sloc: perl: 1,954; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 913 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Don't use (unpackaged) Devel::Deprecations::Environmental
 This effectively reverts upstream commit 1d790a3.
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-10-05

--- a/lib/Number/Phone.pm
+++ b/lib/Number/Phone.pm
@@ -13,11 +13,6 @@
 use Number::Phone::Data;
 use Number::Phone::StubCountry;
 
-use Devel::Deprecations::Environmental
-    OldPerl => { unsupported_from => '2022-11-08', older_than => '5.10.0' },
-    OldPerl => { unsupported_from => '2023-01-08', older_than => '5.12.0' },
-    OldPerl => { unsupported_from => '2024-03-09', older_than => '5.14.0' };
-
 # MUST be in format N.NNNN, see https://github.com/DrHyde/perl-modules-Number-Phone/issues/58
 our $VERSION = '4.0008';
 
@@ -30,6 +25,10 @@
   }
 }
 
+if($] < 5.014) {
+    warn("Perl too old. We need at least 5.014.");
+}
+
 sub _find_data_file {
     my $wanted = shift;