Hello community,
here is the log from the commit of package perl-Devel-GlobalDestruction for
openSUSE:Factory checked in at 2014-09-17 17:25:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Devel-GlobalDestruction (Old)
and /work/SRC/openSUSE:Factory/.perl-Devel-GlobalDestruction.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Devel-GlobalDestruction"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Devel-GlobalDestruction/perl-Devel-GlobalDestruction.changes
2013-12-06 14:42:51.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Devel-GlobalDestruction.new/perl-Devel-GlobalDestruction.changes
2014-09-17 17:25:41.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Sep 15 15:15:06 UTC 2014 - [email protected]
+
+- updated to 0.13
+ * include README
+ * include minimum perl version 5.6 in metadata
+
+-------------------------------------------------------------------
Old:
----
Devel-GlobalDestruction-0.12.tar.gz
New:
----
Devel-GlobalDestruction-0.13.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Devel-GlobalDestruction.spec ++++++
--- /var/tmp/diff_new_pack.fblcSN/_old 2014-09-17 17:25:42.000000000 +0200
+++ /var/tmp/diff_new_pack.fblcSN/_new 2014-09-17 17:25:42.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Devel-GlobalDestruction
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-Devel-GlobalDestruction
-Version: 0.12
+Version: 0.13
Release: 0
%define cpan_name Devel-GlobalDestruction
Summary: Provides function returning the equivalent of
@@ -31,8 +31,6 @@
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001011
-#BuildRequires: perl(Devel::GlobalDestruction)
-#BuildRequires: perl(Devel::GlobalDestruction::XS)
Requires: perl(Sub::Exporter::Progressive) >= 0.001011
%{perl_requires}
@@ -64,6 +62,6 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes
+%doc Changes README
%changelog
++++++ Devel-GlobalDestruction-0.12.tar.gz ->
Devel-GlobalDestruction-0.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/Changes
new/Devel-GlobalDestruction-0.13/Changes
--- old/Devel-GlobalDestruction-0.12/Changes 2013-11-01 17:05:21.000000000
+0100
+++ new/Devel-GlobalDestruction-0.13/Changes 2014-08-16 02:33:48.000000000
+0200
@@ -1,3 +1,8 @@
+
+0.13 - 2014-08-16
+ * include README
+ * include minimum perl version 5.6 in metadata
+
0.12 Fri, 01 Nov 2013
* Fix detection when loaded during global destruction by checking B::main_cv
instead of B::main_start
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/MANIFEST
new/Devel-GlobalDestruction-0.13/MANIFEST
--- old/Devel-GlobalDestruction-0.12/MANIFEST 2013-11-01 17:06:49.000000000
+0100
+++ new/Devel-GlobalDestruction-0.13/MANIFEST 2014-08-16 02:34:00.000000000
+0200
@@ -1,8 +1,8 @@
Changes
lib/Devel/GlobalDestruction.pm
+maint/Makefile.PL.include
Makefile.PL
MANIFEST This list of files
-MANIFEST.SKIP
t/01_basic.t
t/02_thread.t
t/03_minusc.t
@@ -12,3 +12,4 @@
t/10_pure-perl.t
META.yml Module YAML meta-data (added by
MakeMaker)
META.json Module JSON meta-data (added by
MakeMaker)
+README README file (added by Distar)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/MANIFEST.SKIP
new/Devel-GlobalDestruction-0.13/MANIFEST.SKIP
--- old/Devel-GlobalDestruction-0.12/MANIFEST.SKIP 2013-09-20
13:43:56.000000000 +0200
+++ new/Devel-GlobalDestruction-0.13/MANIFEST.SKIP 1970-01-01
01:00:00.000000000 +0100
@@ -1,48 +0,0 @@
-# Avoid version control files.
-\bRCS\b
-\bCVS\b
-\bSCCS\b
-,v$
-\B\.svn\b
-\B\.git\b
-\B\.gitignore\b
-\b_darcs\b
-
-# no mymeta
-\bMYMETA\.
-
-# Avoid Makemaker generated and utility files.
-\bMANIFEST\.bak
-\bMakefile$
-\bblib/
-\bMakeMaker-\d
-\bpm_to_blib\.ts$
-\bpm_to_blib$
-\bblibdirs\.ts$ # 6.18 through 6.25 generated this
-
-# Avoid Module::Build generated and utility files.
-\bBuild$
-\b_build/
-
-# Avoid temp and backup files.
-~$
-\.old$
-\#$
-\b\.#
-\.bak$
-
-# Avoid Devel::Cover files.
-\bcover_db\b
-
-### DEFAULT MANIFEST.SKIP ENDS HERE ####
-
-\.DS_Store$
-\.sw.$
-(\w+-)*(\w+)-\d\.\d+(?:\.tar\.gz)?$
-
-\.t\.log$
-
-\.prove$
-
-# XS shit
-\.(?:bs|c|o)$
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/META.json
new/Devel-GlobalDestruction-0.13/META.json
--- old/Devel-GlobalDestruction-0.12/META.json 2013-11-01 17:06:49.000000000
+0100
+++ new/Devel-GlobalDestruction-0.13/META.json 2014-08-16 02:34:00.000000000
+0200
@@ -1,10 +1,16 @@
{
- "abstract" : "unknown",
+ "abstract" : "Provides function returning the equivalent of
C<${^GLOBAL_PHASE} eq 'DESTRUCT'> for older perls.",
"author" : [
- "unknown"
+ "Yuval Kogman <[email protected]>",
+ "Florian Ragwitz <[email protected]>",
+ "Jesse Luehrs <[email protected]>",
+ "Peter Rabbitson <[email protected]>",
+ "Arthur Axel 'fREW' Schmidt <[email protected]>",
+ "Elizabeth Mattijsen <[email protected]>",
+ "Greham Knop <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter
version 2.132830",
+ "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter
version 2.141520",
"license" : [
"perl_5"
],
@@ -16,35 +22,40 @@
"no_index" : {
"directory" : [
"t",
- "inc"
+ "xt"
]
},
"prereqs" : {
- "build" : {
- "requires" : {
- "ExtUtils::MakeMaker" : "0"
- }
- },
+ "build" : {},
"configure" : {
"requires" : {
- "ExtUtils::CBuilder" : "0.27"
+ "ExtUtils::CBuilder" : "0.27",
+ "ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
- "Sub::Exporter::Progressive" : "0.001011"
+ "Sub::Exporter::Progressive" : "0.001011",
+ "perl" : "5.006"
}
- }
+ },
+ "test" : {}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "web" :
"http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction"
+ "mailto" : "[email protected]",
+ "web" :
"https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction"
},
- "homepage" : "http://search.cpan.org/dist/Devel-GlobalDestruction",
+ "homepage" : "https://metacpan.org/release/Devel-GlobalDestruction",
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ],
"repository" : {
- "url" :
"git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git"
+ "type" : "git",
+ "url" :
"git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git",
+ "web" :
"http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-GlobalDestruction.git"
}
},
- "version" : "0.12"
+ "version" : "0.13"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/META.yml
new/Devel-GlobalDestruction-0.13/META.yml
--- old/Devel-GlobalDestruction-0.12/META.yml 2013-11-01 17:06:49.000000000
+0100
+++ new/Devel-GlobalDestruction-0.13/META.yml 2014-08-16 02:34:00.000000000
+0200
@@ -1,26 +1,34 @@
---
-abstract: unknown
+abstract: "Provides function returning the equivalent of C<${^GLOBAL_PHASE} eq
'DESTRUCT'> for older perls."
author:
- - unknown
-build_requires:
- ExtUtils::MakeMaker: 0
+ - 'Yuval Kogman <[email protected]>'
+ - 'Florian Ragwitz <[email protected]>'
+ - 'Jesse Luehrs <[email protected]>'
+ - 'Peter Rabbitson <[email protected]>'
+ - "Arthur Axel 'fREW' Schmidt <[email protected]>"
+ - 'Elizabeth Mattijsen <[email protected]>'
+ - 'Greham Knop <[email protected]>'
+build_requires: {}
configure_requires:
- ExtUtils::CBuilder: 0.27
+ ExtUtils::CBuilder: '0.27'
+ ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version
2.132830'
+generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version
2.141520'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Devel-GlobalDestruction
no_index:
directory:
- t
- - inc
+ - xt
requires:
- Sub::Exporter::Progressive: 0.001011
+ Sub::Exporter::Progressive: '0.001011'
+ perl: '5.006'
resources:
- bugtracker:
http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction
- homepage: http://search.cpan.org/dist/Devel-GlobalDestruction
+ bugtracker:
https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction
+ homepage: https://metacpan.org/release/Devel-GlobalDestruction
+ license: http://dev.perl.org/licenses/
repository: git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git
-version: 0.12
+version: '0.13'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/Makefile.PL
new/Devel-GlobalDestruction-0.13/Makefile.PL
--- old/Devel-GlobalDestruction-0.12/Makefile.PL 2013-11-01
17:03:48.000000000 +0100
+++ new/Devel-GlobalDestruction-0.13/Makefile.PL 2014-08-12
09:11:27.000000000 +0200
@@ -1,7 +1,48 @@
use strict;
-use warnings;
+use warnings FATAL => 'all';
+use 5.006;
-require 5.006;
+my %META = (
+ name => 'Devel-GlobalDestruction',
+ license => 'perl_5',
+ prereqs => {
+ configure => { requires => {
+ 'ExtUtils::MakeMaker' => 0,
+ 'ExtUtils::CBuilder' => 0.27,
+ } },
+ runtime => {
+ requires => {
+ 'Sub::Exporter::Progressive' => '0.001011',
+ 'perl' => 5.006,
+ },
+ },
+ },
+ resources => {
+ homepage => 'https://metacpan.org/release/Devel-GlobalDestruction',
+ repository => {
+ url => 'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git',
+ web =>
'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-GlobalDestruction.git',
+ type => 'git',
+ },
+ bugtracker => {
+ web =>
'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction',
+ mailto => '[email protected]',
+ },
+ license => [ 'http://dev.perl.org/licenses/' ],
+ },
+ no_index => {
+ directory => [ 't', 'xt' ]
+ },
+);
+
+my %MM_ARGS = (
+ PREREQ_PM => {
+ ( (defined ${^GLOBAL_PHASE} or parse_args()->{PUREPERL_ONLY} or !can_xs() )
+ ? ()
+ : ('Devel::GlobalDestruction::XS' => 0)
+ ),
+ },
+);
use ExtUtils::MakeMaker;
BEGIN { if ( $^O eq 'cygwin' ) {
@@ -31,52 +72,6 @@
return $tmp->{ARGS} || {};
}
-my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 };
-my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1
};
-
-my %META_BITS = (
-);
-my %RUN_DEPS = (
- 'Sub::Exporter::Progressive' => '0.001011',
- ( (defined ${^GLOBAL_PHASE} or parse_args()->{PUREPERL_ONLY} or !can_xs() )
- ? ()
- : ('Devel::GlobalDestruction::XS' => 0)
- ),
-);
-
-my %WriteMakefileArgs = (
- NAME => 'Devel::GlobalDestruction',
- VERSION_FROM => 'lib/Devel/GlobalDestruction.pm',
- LICENSE => 'perl',
- INSTALLDIRS => 'site',
- PL_FILES => { },
- MIN_PERL_VERSION => '5.006',
- PREREQ_PM => \%RUN_DEPS,
- CONFIGURE_REQUIRES => { 'ExtUtils::CBuilder' => 0.27 },
- META_ADD => {
- resources => {
- homepage => 'http://search.cpan.org/dist/Devel-GlobalDestruction',
- repository =>
'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git',
- bugtracker =>
'http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction',
- },
- requires => \%RUN_DEPS,
- },
- ($mymeta and !$mymeta_works) ? ( 'NO_MYMETA' => 1 ) : (),
-);
-
-unless ( eval { ExtUtils::MakeMaker->VERSION('6.56') } ) {
- my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
- my $pp = $WriteMakefileArgs{PREREQ_PM};
- for my $mod ( keys %$br ) {
- if ( exists $pp->{$mod} ) {
- $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
- }
- else {
- $pp->{$mod} = $br->{$mod};
- }
- }
-}
-
if (eval { require Devel::GlobalDestruction }
&& Devel::GlobalDestruction->VERSION < 0.10) {
package MY;
@@ -92,11 +87,6 @@
};
}
-delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
- unless eval { ExtUtils::MakeMaker->VERSION('6.52') };
-
-WriteMakefile(%WriteMakefileArgs);
-
# can we locate a (the) C compiler
sub can_cc {
my @chunks = split(/ /, $Config::Config{cc}) or return;
@@ -195,3 +185,43 @@
return $result;
}
+
+##############################################################################
+require ExtUtils::MakeMaker;
+(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+
+# have to do this since old EUMM dev releases miss the eval $VERSION line
+my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
+my $mymeta = $eumm_version >= 6.57_02;
+my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
+
+($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
+($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
+$MM_ARGS{LICENSE} = $META{license}
+ if $eumm_version >= 6.30;
+$MM_ARGS{NO_MYMETA} = 1
+ if $mymeta_broken;
+$MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
+ unless -f 'META.yml';
+
+for (qw(configure build test runtime)) {
+ my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
+ my $r = $MM_ARGS{$key} = {
+ %{$META{prereqs}{$_}{requires} || {}},
+ %{delete $MM_ARGS{$key} || {}},
+ };
+ defined $r->{$_} or delete $r->{$_} for keys %$r;
+}
+
+$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
+
+delete $MM_ARGS{MIN_PERL_VERSION}
+ if $eumm_version < 6.47_01;
+$MM_ARGS{BUILD_REQUIRES} = {%{$MM_ARGS{BUILD_REQUIRES}}, %{delete
$MM_ARGS{TEST_REQUIRES}}}
+ if $eumm_version < 6.63_03;
+$MM_ARGS{PREREQ_PM} = {%{$MM_ARGS{PREREQ_PM}}, %{delete
$MM_ARGS{BUILD_REQUIRES}}}
+ if $eumm_version < 6.55_01;
+delete $MM_ARGS{CONFIGURE_REQUIRES}
+ if $eumm_version < 6.51_03;
+
+ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Devel-GlobalDestruction-0.12/README
new/Devel-GlobalDestruction-0.13/README
--- old/Devel-GlobalDestruction-0.12/README 1970-01-01 01:00:00.000000000
+0100
+++ new/Devel-GlobalDestruction-0.13/README 2014-08-16 02:34:00.000000000
+0200
@@ -0,0 +1,56 @@
+NAME
+ Devel::GlobalDestruction - Provides function returning the equivalent of
+ "${^GLOBAL_PHASE} eq 'DESTRUCT'" for older perls.
+
+SYNOPSIS
+ package Foo;
+ use Devel::GlobalDestruction;
+
+ use namespace::clean; # to avoid having an "in_global_destruction"
method
+
+ sub DESTROY {
+ return if in_global_destruction;
+
+ do_something_a_little_tricky();
+ }
+
+DESCRIPTION
+ Perl's global destruction is a little tricky to deal with WRT finalizers
+ because it's not ordered and objects can sometimes disappear.
+
+ Writing defensive destructors is hard and annoying, and usually if
+ global destruction is happening you only need the destructors that free
+ up non process local resources to actually execute.
+
+ For these constructors you can avoid the mess by simply bailing out if
+ global destruction is in effect.
+
+EXPORTS
+ This module uses Sub::Exporter::Progressive so the exports may be
+ renamed, aliased, etc. if Sub::Exporter is present.
+
+ in_global_destruction
+ Returns true if the interpreter is in global destruction. In perl
+ 5.14+, this returns "${^GLOBAL_PHASE} eq 'DESTRUCT'", and on earlier
+ perls, detects it using the value of "PL_main_cv" or "PL_dirty".
+
+AUTHORS
+ Yuval Kogman <[email protected]>
+
+ Florian Ragwitz <[email protected]>
+
+ Jesse Luehrs <[email protected]>
+
+ Peter Rabbitson <[email protected]>
+
+ Arthur Axel 'fREW' Schmidt <[email protected]>
+
+ Elizabeth Mattijsen <[email protected]>
+
+ Greham Knop <[email protected]>
+
+COPYRIGHT
+ Copyright (c) 2008 Yuval Kogman. All rights reserved
+ This program is free software; you can redistribute
+ it and/or modify it under the same terms as Perl itself.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Devel-GlobalDestruction-0.12/lib/Devel/GlobalDestruction.pm
new/Devel-GlobalDestruction-0.13/lib/Devel/GlobalDestruction.pm
--- old/Devel-GlobalDestruction-0.12/lib/Devel/GlobalDestruction.pm
2013-11-01 17:04:39.000000000 +0100
+++ new/Devel-GlobalDestruction-0.13/lib/Devel/GlobalDestruction.pm
2014-08-16 02:33:18.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.12';
+our $VERSION = '0.13';
use Sub::Exporter::Progressive -setup => {
exports => [ qw(in_global_destruction) ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Devel-GlobalDestruction-0.12/maint/Makefile.PL.include
new/Devel-GlobalDestruction-0.13/maint/Makefile.PL.include
--- old/Devel-GlobalDestruction-0.12/maint/Makefile.PL.include 1970-01-01
01:00:00.000000000 +0100
+++ new/Devel-GlobalDestruction-0.13/maint/Makefile.PL.include 2014-08-12
09:00:04.000000000 +0200
@@ -0,0 +1,17 @@
+BEGIN { -e 'Distar' or system("git clone
git://git.shadowcat.co.uk/p5sagit/Distar.git") }
+use lib 'Distar/lib';
+use Distar 0.001;
+
+use ExtUtils::MakeMaker 6.57_10 ();
+
+author [
+ 'Yuval Kogman <[email protected]>',
+ 'Florian Ragwitz <[email protected]>',
+ 'Jesse Luehrs <[email protected]>',
+ 'Peter Rabbitson <[email protected]>',
+ 'Arthur Axel \'fREW\' Schmidt <[email protected]>',
+ 'Elizabeth Mattijsen <[email protected]>',
+ 'Greham Knop <[email protected]>',
+];
+
+1;
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]