From ee575260fe11ebdca87ff07fc997d003fb73c5be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 5 Jul 2013 22:20:39 +0200 Subject: [PATCH 1/1] - disable unicode warnings in entry->dump() - rel 2 --- non-unicode-dump.patch | 10 ++++++++++ perl-ldap.spec | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 non-unicode-dump.patch 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; 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 \ -- 2.44.0