[packages/perl-Mail-SPF] - updated to 3.20261105 (security: Received-SPF header injection, exp= escaping)n- skip IDN label te
adamg
adamg at pld-linux.org
Mon Nov 16 13:48:45 CET 2026
commit 22248564c12a88e745ca60130823f1d0a4145377
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Mon Nov 16 13:48:31 2026 +0100
- updated to 3.20261105 (security: Received-SPF header injection, exp= escaping)n- skip IDN label tests with Net::LibIDN2
perl-Mail-SPF-idn-test.patch | 20 ++++++++++++++++++++
perl-Mail-SPF.spec | 6 ++++--
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/perl-Mail-SPF.spec b/perl-Mail-SPF.spec
index 9d0b7c5..d03cda3 100644
--- a/perl-Mail-SPF.spec
+++ b/perl-Mail-SPF.spec
@@ -7,13 +7,14 @@
Summary: Mail::SPF - Mail Sender Authentication
Summary(pl.UTF-8): Mail::SPF - uwierzytelnianie wysyłającego pocztę
Name: perl-Mail-SPF
-Version: 3.20260331
+Version: 3.20261105
Release: 1
License: BSD
Group: Development/Languages/Perl
Source0: https://www.cpan.org/modules/by-module/Mail/MBRADSHAW/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 71bf0b162bc21c67e3a7e873aee7959a
+# Source0-md5: a9e31ece12a6800e773652ee91edca79
Patch0: tests-fix.patch
+Patch1: %{name}-idn-test.patch
URL: https://metacpan.org/dist/Mail-SPF
BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: perl-devel >= 1:5.8.0
@@ -48,6 +49,7 @@ implementacji SPF.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch -P0 -p1
+%patch -P1 -p1
# These tests mess around with resolv.conf and networking
# that are not present on builders
diff --git a/perl-Mail-SPF-idn-test.patch b/perl-Mail-SPF-idn-test.patch
new file mode 100644
index 0000000..26ae041
--- /dev/null
+++ b/perl-Mail-SPF-idn-test.patch
@@ -0,0 +1,20 @@
+--- Mail-SPF-3.20261105/t/00.06-class-server-dns-errors.t.orig
++++ Mail-SPF-3.20261105/t/00.06-class-server-dns-errors.t
+@@ -72,11 +72,17 @@
+ [ ('a' x 40) . '\\.' . ('b' x 40) . '.example.com', 'with overlong label with escaped dot' ]
+ ) {
+ my ($domain, $description) = @$case;
++ # with Net::LibIDN2 available, Net::DNS converts non-ASCII labels to punycode,
++ # so the UTF-8 length cases become valid names and the test fails
++ SKIP: {
++ skip "Net::DNS uses IDN (Net::LibIDN2)", 2
++ if $description =~ /UTF-8/ && eval { Net::DNS::Domain::LIBIDN2() };
+ @queries = ();
+ my $packet = eval { $server->dns_lookup($domain, 'A') };
+ my $label = "Server dns_lookup() of invalid domain $description";
+ is(($packet ? $packet->header->rcode : "error: $@"), 'NXDOMAIN', "$label NXDOMAIN");
+ is(scalar(@queries), 0, "$label does not query resolver");
++ }
+ }
+
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Mail-SPF.git/commitdiff/22248564c12a88e745ca60130823f1d0a4145377
More information about the pld-cvs-commit
mailing list