]> git.pld-linux.org Git - packages/perl-ldap.git/commitdiff
- disable unicode warnings in entry->dump()
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 5 Jul 2013 20:20:39 +0000 (22:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 5 Jul 2013 20:20:39 +0000 (22:20 +0200)
- rel 2

non-unicode-dump.patch [new file with mode: 0644]
perl-ldap.spec

diff --git a/non-unicode-dump.patch b/non-unicode-dump.patch
new file mode 100644 (file)
index 0000000..a2da48d
--- /dev/null
@@ -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;
index 89ce571d852b4f55287b52c5fb3e529076c92759..549c6c44497ba6d2159e3ae021a853dd0f2e61de 100644 (file)
@@ -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 \
This page took 0.057814 seconds and 4 git commands to generate.