X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 70940DC082E for ; Thu, 25 Dec 2014 12:08:40 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ex7so15452107wid.3 for ; Thu, 25 Dec 2014 04:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; bh=p6v6sWwkBpTWiKC66L3NG/PeCcp5pZhPvRUn/ctmBL4=; b=Ab35OU4DaQQnrEAYrfzz7y9eoe7tCixeMQu87KIIigwkYI97zJPF5Y1EPUI7r3467X lrJ36K7Sijzvb8FAeJZt95tzt5LtuviKDFMWPzXpytyCR2gqF509uq/mbASU+kZexpQa 9XuFjbL//lurUFn6yqqLVbjd73z3DhLrsBYYIV325U0Ur28shlC1DGpDRHgj90vgBObM vkre4lWofGMJaeHVggnVy183v3mWRn/HylNG/LU3xlS7F9xk8ikWP8DbvRrP4URsUHQx wmDuAAlTGBe3cFojZe02Y3SImOQN/W7JT5eWW+w+P9N4Z0okwNJFqztq90AuhwSXJ3vZ DOGw== X-Received: by 10.180.23.104 with SMTP id l8mr53325177wif.64.1419509318979; Thu, 25 Dec 2014 04:08:38 -0800 (PST) Received: from [10.44.65.254] (93-57-120-162.ip164.fastwebnet.it. [93.57.120.162]) by mx.google.com with ESMTPSA id t12sm22009006wju.19.2014.12.25.04.08.37 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Thu, 25 Dec 2014 04:08:38 -0800 (PST) Message-ID: <1419509312.23192.33.camel@df1844j> Subject: Re: [alpine-devel] SpamAssassin DNSBL tests fail after changes in perl (patch included) From: Leonardo Arena To: Johan Dahlberg Cc: alpine-devel@lists.alpinelinux.org Date: Thu, 25 Dec 2014 13:08:32 +0100 In-Reply-To: <20141225113247.GA6302@einstein.local> References: <20141217094939.GA7838@einstein.local> <1419264733.22778.8.camel@df1844j> <20141222170528.GA1926@einstein.local> <20141222191107.GA3763@einstein.local> <1419501308.23192.30.camel@df1844j> <20141225113247.GA6302@einstein.local> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-f/EEPgOsHrabz3ykkiV+" X-Mailer: Evolution 3.10.4-0ubuntu2 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 --=-f/EEPgOsHrabz3ykkiV+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On gio, 2014-12-25 at 13:32 +0200, Johan Dahlberg wrote: > On Thu, 25 Dec 2014 at 10:55:08, Leonardo Arena wrote: > > On lun, 2014-12-22 at 21:11 +0200, Johan Dahlberg wrote: > > > On Mon, 22 Dec 2014 at 19:05:29, Johan Dahlberg wrote: > > > > On Mon, 22 Dec 2014 at 17:12:13, Leonardo Arena wrote: > > > > > On mer, 2014-12-17 at 11:49 +0200, Johan Dahlberg wrote: > > > > > > --- SpamAssassin/DnsResolver.pm.bak > > > > > > +++ SpamAssassin/DnsResolver.pm > > > > > > @@ -204,8 +204,10 @@ > > > > > > @ns_addr_port =3D @{$self->{conf}->{dns_servers}}; > > > > > > dbg("dns: servers set by config to: %s", join(', > > > > > > ',@ns_addr_port)); > > > > > > } elsif ($res) { # default as provided by Net::DNS, e.g. > > > > > > /etc/resolv.conf > > > > > > - @ns_addr_port =3D map(untaint_var("[$_]:" . $res->{port}), > > > > > > - @{$res->{nameservers}}); > > > > > > + my @ns =3D $res->UNIVERSAL::can('nameservers') ? $res->nam= eservers > > > > > > + : > > > > > > @{$res->{nameservers}}; > > > > > > + my $port =3D $res->UNIVERSAL::can('port') ? $res->port : > > > > > > $res->{port}; > > > > > > + @ns_addr_port =3D map(untaint_var("[$_]:" . $port), @ns); > > > > > > dbg("dns: servers obtained from Net::DNS : %s", join(', > > > > > > ',@ns_addr_port)); > > > > > > } > > > > > > return @ns_addr_port; > > > > >=20 > > > > >=20 > > > > > Hi, > > > > > thanks for your contribution. > > > > > Would it be possible to have a GIT patch? It would be easier and = 100% > > > > > error-free to apply. > > > > > Thanks! > > > > >=20 > > > > > R, > > > > > leo > > > >=20 > > > > Hello, I'm not so used to working with git, but I think the attache= d > > > > patch is correct. > > > >=20 > > > > Johan > > >=20 > > > > diff --git a/lib/Mail/SpamAssassin/DnsResolver.pm.orig b/lib/Mail/S= pamAssassin/DnsResolver.pm > > > > index 41ae81c..fdc1e5e 100644 > > > > --- a/lib/Mail/SpamAssassin/DnsResolver.pm.orig > > > > +++ b/lib/Mail/SpamAssassin/DnsResolver.pm > > > > @@ -204,8 +204,10 @@ sub configured_nameservers { > > > > @ns_addr_port =3D @{$self->{conf}->{dns_servers}}; > > > > dbg("dns: servers set by config to: %s", join(', ',@ns_addr_po= rt)); > > > > } elsif ($res) { # default as provided by Net::DNS, e.g. /etc/r= esolv.conf > > > > - @ns_addr_port =3D map(untaint_var("[$_]:" . $res->{port}), > > > > - @{$res->{nameservers}}); > > > > + my @ns =3D $res->UNIVERSAL::can('nameservers') ? $res->nameser= vers > > > > + : @{$res->{namese= rvers}}; > > > > + my $port =3D $res->UNIVERSAL::can('port') ? $res->port : $res-= >{port}; > > > > + @ns_addr_port =3D map(untaint_var("[$_]:" . $port), @ns); > > > > dbg("dns: servers obtained from Net::DNS : %s", join(', ',@ns_= addr_port)); > > > > } > > > > return @ns_addr_port; > > >=20 > > >=20 > > >=20 > > >=20 > > > I took some time to figure out git a bit so I guess the following > > > attached patch is more accurate(?). > > >=20 > > > Regards, > > > Johan > >=20 > > Thanks. > > I applied it to edge, can you please check that it works as expected? > > Then I can backport it to 3.1-stable. > >=20 > > For future patches it would be nice to have a GIT patch against aports > > tree. It would be more straightforward to apply them. > > Thanks! > >=20 > > - leo >=20 > I will test is as soon as the package shows up on the mirrors. >=20 > However I have a problem downloading your aports git, getting the > following several times now: >=20 > #> git clone http://git.alpinelinux.org/cgit/aports/ >=20 > # Cloning into 'aports'... > # error: Unable to get pack file > # http://git.alpinelinux.org/cgit/aports/objects/pack/pack-1f504ab51e1954= e77d4841ca04d0a395bec1e1af.pack > # Recv failure: Connection timed out > # error: Unable to find e24b2cb6f0edf60b9bc766902715f25076ad591a under > # http://git.alpinelinux.org/cgit/aports > # Cannot obtain needed tree e24b2cb6f0edf60b9bc766902715f25076ad591a > # while processing commit 934775c391ac937f8c7a4f952cc7498df51abd7e. > # error: fetch failed. >=20 > It's temporary perhaps. Are there any mirrors? May be is a web server issue. Have you tried git://git.alpinelinux.org/cgit/aports/ ? > If I have any future patches I will create them against the aports tree. Thanks! --=-f/EEPgOsHrabz3ykkiV+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJUm/5AAAoJELAPckZGG2T6SvUH/1Fjywb0Pihr0//8erOHTKXQ lf366Vc1YiNHYjPqkPZxvZmV8PJXWkjlr7A2o+8KQQb23ua2HNapsUy+RbpJU+Nd hQ3ZFuAqX9Rudqhul3CC7SeinrBSXiCsomfwvPqM2ASIE/gSfj2D9O+GOF2HfFMM xk9E4bhEmeIAsiXxJxIRmk2DlDz7DMb7vj39KZCS9kP/MKYeasUR7jrkU1Osakp3 qZ9qNyWMq4AZCdaQvVVrWObBwOqwAEiAVbfe1exofddan+0CJ/jSQfPSKhGZ0+v2 9nhabfQYyr3DHtGXqz+oDr/CNFo5Vn6aPgEvqlOzPYEnIQt37USWzLv6Ad9vsPo= =o836 -----END PGP SIGNATURE----- --=-f/EEPgOsHrabz3ykkiV+-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---