Hello community,
here is the log from the commit of package perl-Set-Scalar
checked in at Mon Oct 8 12:28:19 CEST 2007.
--------
--- perl-Set-Scalar/perl-Set-Scalar.changes 2006-01-25 21:39:57.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-Set-Scalar/perl-Set-Scalar.changes 2007-10-08 09:58:25.000000000 +0200
@@ -1,0 +2,10 @@
+Mon Oct 8 09:24:44 CEST 2007 - anicka@suse.cz
+
+- update to 1.21
+ * Made to work with the upcoming Perl 5.005_05, most importantly
+ Scalar::Util made optional (we fall back to
+ pure Perl emulations for blessed() and refaddr()
+ if necessary). Everything else already worked.
+ * bugfixes
+
+-------------------------------------------------------------------
Old:
----
Set-Scalar-1.20.tar.bz2
New:
----
Set-Scalar-1.21.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Set-Scalar.spec ++++++
--- /var/tmp/diff_new_pack.p14206/_old 2007-10-08 12:28:16.000000000 +0200
+++ /var/tmp/diff_new_pack.p14206/_new 2007-10-08 12:28:16.000000000 +0200
@@ -1,23 +1,23 @@
#
-# spec file for package perl-Set-Scalar (Version 1.20)
+# spec file for package perl-Set-Scalar (Version 1.21)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://bugs.opensuse.org
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Set-Scalar
-Version: 1.20
+Version: 1.21
Release: 1
Requires: perl = %{perl_version}
-Autoreqprov: on
+AutoReqProv: on
Group: Development/Libraries/Perl
-License: GPL, Artistic License
-URL: http://cpan.org/modules/by-module/Set/
+License: Artistic License; GPL v2 or later
+Url: http://cpan.org/modules/by-module/Set/
Summary: Set of scalars
Source0: http://cpan.org/modules/by-module/Set/Set-Scalar-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -59,8 +59,14 @@
%{perl_vendorlib}/Set
%{perl_vendorarch}/auto/Set
/var/adm/perl-modules/%{name}
-
-%changelog -n perl-Set-Scalar
+%changelog
+* Mon Oct 08 2007 - anicka@suse.cz
+- update to 1.21
+ * Made to work with the upcoming Perl 5.005_05, most importantly
+ Scalar::Util made optional (we fall back to
+ pure Perl emulations for blessed() and refaddr()
+ if necessary). Everything else already worked.
+ * bugfixes
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 04 2006 - anicka@suse.cz
++++++ Set-Scalar-1.20.tar.bz2 -> Set-Scalar-1.21.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Set-Scalar-1.20/ChangeLog new/Set-Scalar-1.21/ChangeLog
--- old/Set-Scalar-1.20/ChangeLog 2005-08-06 11:53:48.000000000 +0200
+++ new/Set-Scalar-1.21/ChangeLog 2007-10-05 05:12:09.000000000 +0200
@@ -1,3 +1,13 @@
+2007-10-04 Jarkko Hietaniemi
+
+ * Made to work with the upcoming Perl 5.005_05
+ (yes, you read that right), most importantly
+ Scalar::Util made optional (we fall back to
+ pure Perl emulations for blessed() and refaddr()
+ if necessary). Everything else already worked.
+
+ * Released as 1.21.
+
Sat Aug 6 12:39:43 2005 Jarkko Hietaniemi
* [cpan #13816] Set::Scalar blesses unblessed refs
@@ -27,6 +37,8 @@
Trying to use the suggested fix also badly breaks the
laws.t when the universal and null sets are present.
+ * Released as 1.20.
+
Sun Mar 28 17:16:26 2004 Jarkko Hietaniemi
* [cpan #5829] When is_disjoint() was called in list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Set-Scalar-1.20/lib/Set/Scalar/Base.pm new/Set-Scalar-1.21/lib/Set/Scalar/Base.pm
--- old/Set-Scalar-1.20/lib/Set/Scalar/Base.pm 2005-08-06 11:43:22.000000000 +0200
+++ new/Set-Scalar-1.21/lib/Set/Scalar/Base.pm 2007-10-05 05:17:38.000000000 +0200
@@ -11,7 +11,34 @@
use UNIVERSAL 'isa';
-use Scalar::Util qw(refaddr blessed);
+BEGIN {
+ eval 'require Scalar::Util';
+ unless ($@) {
+ import Scalar::Util qw(blessed refaddr);
+ } else {
+ # Use the pure Perl emulations (directly snagged from Scalar::Util).
+ sub UNIVERSAL::a_sub_not_likely_to_be_here { ref($_[0]) }
+ *blessed = sub ($) {
+ local($@, $SIG{__DIE__}, $SIG{__WARN__});
+ length(ref($_[0]))
+ ? eval { $_[0]->a_sub_not_likely_to_be_here }
+ : undef
+ };
+ *refaddr = sub ($) {
+ my $pkg = ref($_[0]) or return undef;
+ if (blessed($_[0])) {
+ bless $_[0], 'Scalar::Util::Fake';
+ }
+ else {
+ $pkg = undef;
+ }
+ "$_[0]" =~ /0x(\w+)/;
+ my $i = do { local $^W; hex $1 };
+ bless $_[0], $pkg if defined $pkg;
+ $i;
+ };
+ }
+}
@EXPORT_OK = qw(_make_elements
as_string
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Set-Scalar-1.20/lib/Set/Scalar.pm new/Set-Scalar-1.21/lib/Set/Scalar.pm
--- old/Set-Scalar-1.20/lib/Set/Scalar.pm 2005-08-06 11:49:38.000000000 +0200
+++ new/Set-Scalar-1.21/lib/Set/Scalar.pm 2007-10-05 05:07:30.000000000 +0200
@@ -1,13 +1,11 @@
package Set::Scalar;
use strict;
-local $^W = 1;
+# local $^W = 1;
use vars qw($VERSION @ISA);
-$VERSION = '1.20';
-
-use Scalar::Util qw(blessed refaddr);
+$VERSION = '1.21';
@ISA = qw(Set::Scalar::Real Set::Scalar::Null Set::Scalar::Base);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Set-Scalar-1.20/Makefile.PL new/Set-Scalar-1.21/Makefile.PL
--- old/Set-Scalar-1.20/Makefile.PL 2005-08-06 11:02:24.000000000 +0200
+++ new/Set-Scalar-1.21/Makefile.PL 2007-10-05 05:05:57.000000000 +0200
@@ -10,9 +10,21 @@
'dist' => { 'COMPRESS' => 'gzip' },
PREREQ_PM =>
{
- 'Scalar::Util' => 0,
- 'Test::More' => 0,
+ # 'Scalar::Util' => 0, # Not a requirement anymore.
+ 'Test::More' => 0,
},
)
and
-print "Now issue 'make' and then 'make test', and if all looks good, 'make install'.\n";
+print <<__EOF__;
+Now issue 'make' and then 'make test', and if all looks good, 'make install'.
+__EOF__
+eval 'use Test::More';
+if ($@) {
+print <<__EOF__;
+(Test::More not found means that you cannot run the tests, you can
+still go ahead and install without testing if you are feeling brave.)
+__EOF__
+}
+
+
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Set-Scalar-1.20/META.yml new/Set-Scalar-1.21/META.yml
--- old/Set-Scalar-1.20/META.yml 2005-08-06 11:54:03.000000000 +0200
+++ new/Set-Scalar-1.21/META.yml 2007-10-05 05:18:16.000000000 +0200
@@ -1,12 +1,11 @@
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Set-Scalar
-version: 1.20
+version: 1.21
version_from: lib/Set/Scalar.pm
installdirs: site
requires:
- Scalar::Util: 0
Test::More: 0
distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+generated_by: ExtUtils::MakeMaker version 6.30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org