]> git.pld-linux.org Git - packages/perl-ldap.git/commitdiff
- up to 0.57 auto/th/perl-ldap-0.57-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 24 Aug 2013 21:10:01 +0000 (23:10 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 24 Aug 2013 21:10:01 +0000 (23:10 +0200)
- silence perl warnings about possibly uninitialized var

ignore-uninitialized.patch [new file with mode: 0644]
perl-ldap.spec

diff --git a/ignore-uninitialized.patch b/ignore-uninitialized.patch
new file mode 100644 (file)
index 0000000..5b99789
--- /dev/null
@@ -0,0 +1,22 @@
+--- perl-ldap-0.56/lib/Net/LDAP/Util.pm~       2013-07-05 22:24:24.000000000 +0200
++++ perl-ldap-0.56/lib/Net/LDAP/Util.pm        2013-08-24 23:00:24.178648364 +0200
+@@ -755,7 +755,9 @@
+     # Time::Local's timegm() interpret years strangely
+     if ($year >= 1000) {
+-      $dec = "0.$dec";
++      if (defined($dec)) {
++        $dec = "0.$dec";
++      }
+       # decimals in case of missing minutes / seconds - see RFC 4517
+       if (!defined($min)) {
+@@ -793,7 +793,7 @@
+           }
+           # make decimal part directional
+-          if ($dec != 0) {
++          if (defined($dec) && $dec != 0) {
+             if ($time < 0) {
+               $dec = 1 - $dec;
+               $time++; 
index c660963d68ca0bed66df3327b8a013418df6bb8b..d327bb0c11789a75d61dc73137a06a312dec944e 100644 (file)
@@ -6,15 +6,16 @@
 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:       2
+Version:       0.57
+Release:       1
 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
+# Source0-md5: deff50f0de5d4cf95145765b6edd67d1
 Patch0:                non-unicode-dump.patch
+Patch1:                ignore-uninitialized.patch
 URL:           http://ldap.perl.org/
 BuildRequires: perl-Authen-SASL >= 2.00
 BuildRequires: perl-Convert-ASN1 >= 0.20
@@ -47,6 +48,7 @@ poziomu programów w Perlu.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__perl} Makefile.PL \
This page took 0.032876 seconds and 4 git commands to generate.