Hello community,
here is the log from the commit of package perl-Socket6 for openSUSE:Factory
checked in at Tue Feb 9 22:42:10 CET 2010.
--------
--- perl-Socket6/perl-Socket6.changes 2010-01-10 16:07:37.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-Socket6/perl-Socket6.changes 2010-02-08 13:36:49.000000000 +0100
@@ -1,0 +2,15 @@
+Mon Feb 8 12:34:10 UTC 2010 - coolo@novell.com
+
+* update to version 0.23.
+ * Socket6.pm: Added @EXPORT_OK to export AF_INET6 and PF_INET6 if
+ requested. This allows the use of the Socke6 module without
+ having to perform the same conditional check that was added to
+ avoid conflicts with the Socket module default exports (i.e. use
+ Socket6 qw(AF_INET6 inet_pton inet_ntop); )
+
+ * Socket6.pm (AUTOLOAD): Explicitly set $! = 0 before calling
+ constant(). This should not be required since errno was being set
+ to 0 in the C function, but Perl 5.10.0 Win32 Vista needed this to
+ be done or all constants reported unsupported.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
Socket6-0.22.tar.bz2
New:
----
Socket6-0.23.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Socket6.spec ++++++
--- /var/tmp/diff_new_pack.Vj7dMa/_old 2010-02-09 22:41:39.000000000 +0100
+++ /var/tmp/diff_new_pack.Vj7dMa/_new 2010-02-09 22:41:39.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-Socket6 (Version 0.22)
+# spec file for package perl-Socket6 (Version 0.23)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -24,8 +24,8 @@
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
Summary: IPv6 Sockets (Perl Module)
-Version: 0.22
-Release: 2
+Version: 0.23
+Release: 1
Source: http://search.cpan.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ Socket6-0.22.tar.bz2 -> Socket6-0.23.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Socket6-0.22/ChangeLog new/Socket6-0.23/ChangeLog
--- old/Socket6-0.22/ChangeLog 2008-08-17 20:18:15.000000000 +0200
+++ new/Socket6-0.23/ChangeLog 2008-11-01 20:05:56.000000000 +0100
@@ -1,5 +1,38 @@
+2008-11-02 Hajimu UMEMOTO
+
+ * Socket6.pm: Bump version number to 0.23.
+
+ * Makefile.PL (configure_mswin32): Added a conditional #define for
+ HAVE_INET_(PTON|NTOP) to make the module.
+ Change was necessary because the SDK for Vista now includes
+ inet_(pton|ntop) in ws2tcpip.h
+
+ Submitted by: "David M. Town"
+
+ * Makefile.PL (configure_mswin32): Added a line to #define
+ HAVE_SOCKLEN_T since it is defined for MSWin32
+
+ Submitted by: "David M. Town"
+
+ * Socket6.pm: Added @EXPORT_OK to export AF_INET6 and PF_INET6 if
+ requested. This allows the use of the Socke6 module without
+ having to perform the same conditional check that was added to
+ avoid conflicts with the Socket module default exports (i.e. use
+ Socket6 qw(AF_INET6 inet_pton inet_ntop); )
+
+ Submitted by: "David M. Town"
+
+ * Socket6.pm (AUTOLOAD): Explicitly set $! = 0 before calling
+ constant(). This should not be required since errno was being set
+ to 0 in the C function, but Perl 5.10.0 Win32 Vista needed this to
+ be done or all constants reported unsupported.
+
+ Submitted by: "David M. Town"
+
2008-08-18 Hajimu UMEMOTO
+ * Socket6.pm: Use strict environment.
+
* Socket6.pm: Bump version number to 0.22.
* Socket6.pm: Make AF_INET6 check actually work.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Socket6-0.22/META.yml new/Socket6-0.23/META.yml
--- old/Socket6-0.22/META.yml 2008-08-17 20:25:55.000000000 +0200
+++ new/Socket6-0.23/META.yml 2008-11-01 20:10:11.000000000 +0100
@@ -1,7 +1,7 @@
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Socket6
-version: 0.22
+version: 0.23
version_from: Socket6.pm
installdirs: site
requires:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Socket6-0.22/Makefile.PL new/Socket6-0.23/Makefile.PL
--- old/Socket6-0.22/Makefile.PL 2008-08-17 19:08:19.000000000 +0200
+++ new/Socket6-0.23/Makefile.PL 2008-11-01 20:01:10.000000000 +0100
@@ -25,7 +25,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-# $Id: Makefile.PL,v 1.7 2008/08/17 17:08:19 ume Exp $
+# $Id: Makefile.PL,v 1.8 2008/11/01 19:01:10 ume Exp $
use ExtUtils::MakeMaker;
@@ -83,6 +83,14 @@
print(OUT "#define HAVE_GETNAMEINFO 1\n");
} elsif (/HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID/) {
print(OUT "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1\n");
+ } elsif (/HAVE_INET_(PTON|NTOP)/) {
+ print(OUT "#if (NTDDI_VERSION >= NTDDI_LONGHORN)\n");
+ print(OUT " #define HAVE_INET_$1 1\n");
+ print(OUT "#else\n");
+ print(OUT " #undef HAVE_INET_$1\n");
+ print(OUT "#endif\n");
+ } elsif (/HAVE_SOCKLEN_T/) {
+ print(OUT "#define HAVE_SOCKLEN_T 1\n");
} else {
print OUT;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Socket6-0.22/Socket6.pm new/Socket6-0.23/Socket6.pm
--- old/Socket6-0.22/Socket6.pm 2008-08-17 20:25:07.000000000 +0200
+++ new/Socket6-0.23/Socket6.pm 2008-11-01 20:08:39.000000000 +0100
@@ -31,12 +31,13 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-# $Id: Socket6.pm,v 1.42 2008/08/17 18:25:07 ume Exp $
+# $Id: Socket6.pm,v 1.45 2008/11/01 19:08:39 ume Exp $
package Socket6;
-use vars qw($VERSION @ISA @EXPORT %EXPORT_TAGS);
-$VERSION = "0.22";
+use strict;
+use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $AUTOLOAD);
+$VERSION = "0.23";
=head1 NAME
@@ -211,9 +212,8 @@
use Carp;
-require Exporter;
-require DynaLoader;
-@ISA = qw(Exporter DynaLoader);
+use base qw(Exporter DynaLoader);
+
@EXPORT = qw(
inet_pton inet_ntop pack_sockaddr_in6 pack_sockaddr_in6_all
unpack_sockaddr_in6 unpack_sockaddr_in6_all sockaddr_in6
@@ -270,6 +270,8 @@
push @EXPORT, qw(AF_INET6) unless defined eval {Socket::AF_INET6()};
push @EXPORT, qw(PF_INET6) unless defined eval {Socket::PF_INET6()};
+@EXPORT_OK = qw(AF_INET6 PF_INET6);
+
%EXPORT_TAGS = (
all => [@EXPORT],
);
@@ -287,9 +289,9 @@
sub AUTOLOAD {
my($constname);
($constname = $AUTOLOAD) =~ s/.*:://o;
+ $! = 0;
my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
- my ($pack, $file, $line) = caller;
croak "Your vendor has not defined Socket macro $constname, used";
}
eval "sub $AUTOLOAD { $val }";
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org