[packages/perl-ldap: 1/2] - disable unicode warnings in entry->dump() - rel 2

baggins baggins at pld-linux.org
Fri Jul 5 22:21:34 CEST 2013


commit ee575260fe11ebdca87ff07fc997d003fb73c5be
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Jul 5 22:20:39 2013 +0200

    - disable unicode warnings in entry->dump()
    - rel 2

 non-unicode-dump.patch | 10 ++++++++++
 perl-ldap.spec         |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/perl-ldap.spec b/perl-ldap.spec
index 89ce571..549c6c4 100644
--- a/perl-ldap.spec
+++ b/perl-ldap.spec
@@ -7,13 +7,14 @@ Summary:	perl-ldap module - a client interface to LDAP servers
 Summary(pl.UTF-8):	Moduł perl-ldap - kliencki interfejs do serwerów LDAP
 Name:		perl-ldap
 Version:	0.56
-Release:	1
+Release:	2
 Epoch:		3
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
 # Source0-md5:	4ea517a844bad34b79f05afcfd24cc05
+Patch0:		non-unicode-dump.patch
 URL:		http://ldap.perl.org/
 BuildRequires:	perl-Authen-SASL >= 2.00
 BuildRequires:	perl-Convert-ASN1 >= 0.07
@@ -42,6 +43,7 @@ poziomu programów w Perlu.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/non-unicode-dump.patch b/non-unicode-dump.patch
new file mode 100644
index 0000000..a2da48d
--- /dev/null
+++ b/non-unicode-dump.patch
@@ -0,0 +1,10 @@
+--- perl-ldap-0.56/lib/Net/LDAP/Entry.pm.orig	2013-06-07 17:02:17.000000000 +0200
++++ perl-ldap-0.56/lib/Net/LDAP/Entry.pm	2013-07-05 22:18:14.395598116 +0200
+@@ -312,6 +312,7 @@
+ # Just for debugging
+ 
+ sub dump {
++  no warnings qw(utf8); # attributes may contain binary (non-unicode) data
+   my $self = shift;
+   no strict 'refs'; # select may return a GLOB name
+   my $fh = @_ ? shift : select;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-ldap.git/commitdiff/f0f3f42b9814f31e60c38f05a13ea58e8664b363



More information about the pld-cvs-commit mailing list