Skip to content

Commit

Permalink
mail/spamassassin: Remove deprecated method usage in sa-update
Browse files Browse the repository at this point in the history
PR:		272313
Approved by:	cy (maintainer)
Obtained from:	https://svn.apache.org/viewvc?view=revision&revision=1910601
  • Loading branch information
dbaio committed Jul 1, 2023
1 parent fe0a1b4 commit c284c96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mail/spamassassin/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= spamassassin
PORTVERSION= 4.0.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES?= mail perl5
MASTER_SITES= https://archive.apache.org/dist/${PORTNAME}/source/ CPAN/Mail
DISTNAME= Mail-SpamAssassin-${PORTVERSION}
Expand Down
12 changes: 12 additions & 0 deletions mail/spamassassin/files/patch-sa-update.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://svn.apache.org/viewvc?view=revision&revision=1910601
--- sa-update.raw.orig 2022-12-14 06:03:27 UTC
+++ sa-update.raw
@@ -1458,7 +1458,7 @@ sub do_dns_query {
next if !$rr; # no answer records, only rcode
next if $rr->type ne $rr_type;
# scalar context!
- my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdatastr;
+ my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdstring;
push(@result,$text) if defined $text && $text ne '';
}
printf("DNS %s query: %s -> %s\n", $rr_type, $query, join(", ",@result))

0 comments on commit c284c96

Please sign in to comment.