[packages/perl-POE-Component-Client-DNS] Rel 2: use Net::DNS rdstring

arekm arekm at pld-linux.org
Thu Nov 19 14:02:47 CET 2026


commit 986dae95eba7af4dfac5e310ced0305f3374393a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 12:41:40 2026 +0100

    Rel 2: use Net::DNS rdstring

 perl-POE-Component-Client-DNS-rdstring.patch | 46 ++++++++++++++++++++++++++++
 perl-POE-Component-Client-DNS.spec           |  4 ++-
 2 files changed, 49 insertions(+), 1 deletion(-)
---
diff --git a/perl-POE-Component-Client-DNS.spec b/perl-POE-Component-Client-DNS.spec
index 9e7335e..626174c 100644
--- a/perl-POE-Component-Client-DNS.spec
+++ b/perl-POE-Component-Client-DNS.spec
@@ -8,13 +8,14 @@ Summary:	POE component for non-blocking/concurrent DNS queries
 Summary(pl.UTF-8):	Komponent POE do wykonywania nieblokujących/równoczesnych zapytań DNS
 Name:		perl-POE-Component-Client-DNS
 Version:	1.054
-Release:	1
+Release:	2
 Epoch:		1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	https://www.cpan.org/authors/id/R/RC/RCAPUTO/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	8ce0200ec2fec64ead3bb3face0025a5
+Patch0:		%{name}-rdstring.patch
 URL:		http://search.cpan.org/dist/POE-Component-Client-DNS/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -40,6 +41,7 @@ kilku zapytań DNS.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/perl-POE-Component-Client-DNS-rdstring.patch b/perl-POE-Component-Client-DNS-rdstring.patch
new file mode 100644
index 0000000..f656814
--- /dev/null
+++ b/perl-POE-Component-Client-DNS-rdstring.patch
@@ -0,0 +1,46 @@
+# rdatastr is deprecated in Net::DNS and warns, which fails the "no warnings" tests
+diff -ru POE-Component-Client-DNS-1.054.orig/lib/POE/Component/Client/DNS.pm POE-Component-Client-DNS-1.054/lib/POE/Component/Client/DNS.pm
+--- POE-Component-Client-DNS-1.054.orig/lib/POE/Component/Client/DNS.pm
++++ POE-Component-Client-DNS-1.054/lib/POE/Component/Client/DNS.pm
+@@ -626,7 +626,7 @@
+       print(
+         "$response->{host} = ",
+         $answer->type(), " ",
+-        $answer->rdatastr(), "\n"
++        $answer->rdstring(), "\n"
+       );
+     }
+   }
+diff -ru POE-Component-Client-DNS-1.054.orig/t/01_resolve.t POE-Component-Client-DNS-1.054/t/01_resolve.t
+--- POE-Component-Client-DNS-1.054.orig/t/01_resolve.t
++++ POE-Component-Client-DNS-1.054/t/01_resolve.t
+@@ -104,7 +104,7 @@
+   $heap->{answers}++;
+ 
+   foreach (@answers) {
+-    my $response_data_string = $_->rdatastr;
++    my $response_data_string = $_->rdstring;
+     my $response_data_type   = $_->type;
+ 
+     DEBUG and warn
+diff -ru POE-Component-Client-DNS-1.054.orig/t/06_hosts.t POE-Component-Client-DNS-1.054/t/06_hosts.t
+--- POE-Component-Client-DNS-1.054.orig/t/06_hosts.t
++++ POE-Component-Client-DNS-1.054/t/06_hosts.t
+@@ -140,7 +140,7 @@
+ 
+   return (
+     grep { ref() eq "Net::DNS::RR::A" } $response->{response}->answer()
+-  )[0]->rdatastr();
++  )[0]->rdstring();
+ }
+ 
+ 
+@@ -149,7 +149,7 @@
+   return "" unless defined $response->{response};
+   return (
+     grep { ref() eq "Net::DNS::RR::AAAA" } $response->{response}->answer()
+-  )[0]->rdatastr();
++  )[0]->rdstring();
+ }
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-POE-Component-Client-DNS.git/commitdiff/986dae95eba7af4dfac5e310ced0305f3374393a



More information about the pld-cvs-commit mailing list