Hello community,
here is the log from the commit of package perl-ExtUtils-InstallPaths for
openSUSE:Factory checked in at 2013-11-26 14:41:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-ExtUtils-InstallPaths (Old)
and /work/SRC/openSUSE:Factory/.perl-ExtUtils-InstallPaths.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-ExtUtils-InstallPaths"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-ExtUtils-InstallPaths/perl-ExtUtils-InstallPaths.changes
2013-06-06 15:04:29.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-ExtUtils-InstallPaths.new/perl-ExtUtils-InstallPaths.changes
2013-11-26 14:41:01.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Nov 25 07:38:15 UTC 2013 - [email protected]
+
+- updated to 0.010
+ Deprecated usage of legacy configuration variables
+ Generate default paths more dynamically
+
+-------------------------------------------------------------------
Old:
----
ExtUtils-InstallPaths-0.009.tar.gz
New:
----
ExtUtils-InstallPaths-0.010.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-ExtUtils-InstallPaths.spec ++++++
--- /var/tmp/diff_new_pack.t09Hsw/_old 2013-11-26 14:41:02.000000000 +0100
+++ /var/tmp/diff_new_pack.t09Hsw/_new 2013-11-26 14:41:02.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-ExtUtils-InstallPaths
-Version: 0.009
+Version: 0.010
Release: 0
%define cpan_name ExtUtils-InstallPaths
Summary: Build.PL install path logic made easy
++++++ ExtUtils-InstallPaths-0.009.tar.gz -> ExtUtils-InstallPaths-0.010.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/Changes
new/ExtUtils-InstallPaths-0.010/Changes
--- old/ExtUtils-InstallPaths-0.009/Changes 2012-12-07 00:05:03.000000000
+0100
+++ new/ExtUtils-InstallPaths-0.010/Changes 2013-10-29 12:17:28.000000000
+0100
@@ -1,5 +1,9 @@
Revision history for ExtUtils-InstallPaths
+0.010 2013-10-29 12:17:18 Europe/Amsterdam
+ Deprecated usage of legacy configuration variables
+ Generate default paths more dynamically
+
0.009 2012-12-07 00:04:52 Europe/Amsterdam
Add relative path checkers to relpaths arguments
Rewrote merging algorithm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/META.json
new/ExtUtils-InstallPaths-0.010/META.json
--- old/ExtUtils-InstallPaths-0.009/META.json 2012-12-07 00:05:03.000000000
+0100
+++ new/ExtUtils-InstallPaths-0.010/META.json 2013-10-29 12:17:28.000000000
+0100
@@ -5,7 +5,7 @@
"Leon Timmermans <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300021, CPAN::Meta::Converter
version 2.120921",
+ "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter
version 2.132830",
"license" : [
"perl_5"
],
@@ -20,26 +20,40 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
+ "develop" : {
+ "requires" : {
+ "Pod::Coverage::TrustPod" : "0",
+ "Test::Pod" : "1.41",
+ "Test::Pod::Coverage" : "1.08"
+ }
+ },
"runtime" : {
"requires" : {
"Carp" : "0",
"ExtUtils::Config" : "0.002",
"File::Spec" : "0",
- "perl" : "5.006",
+ "perl" : "5.008001",
"strict" : "0",
"warnings" : "0"
}
},
"test" : {
"requires" : {
- "Config" : "0",
- "File::Find" : "0",
+ "File::Spec" : "0",
"File::Spec::Functions" : "0",
"File::Temp" : "0",
+ "IO::Handle" : "0",
+ "IPC::Open3" : "0",
"Test::More" : "0"
}
}
},
+ "provides" : {
+ "ExtUtils::InstallPaths" : {
+ "file" : "lib/ExtUtils/InstallPaths.pm",
+ "version" : "0.010"
+ }
+ },
"release_status" : "stable",
"resources" : {
"bugtracker" : {
@@ -49,9 +63,9 @@
"repository" : {
"type" : "git",
"url" : "git://github.com/Leont/extutils-installpaths.git",
- "web" : "http://github.com/Leont/extutils-installpaths"
+ "web" : "https://github.com/Leont/extutils-installpaths"
}
},
- "version" : "0.009"
+ "version" : "0.010"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/META.yml
new/ExtUtils-InstallPaths-0.010/META.yml
--- old/ExtUtils-InstallPaths-0.009/META.yml 2012-12-07 00:05:03.000000000
+0100
+++ new/ExtUtils-InstallPaths-0.010/META.yml 2013-10-29 12:17:28.000000000
+0100
@@ -4,28 +4,33 @@
- 'Ken Williams <[email protected]>'
- 'Leon Timmermans <[email protected]>'
build_requires:
- Config: 0
- File::Find: 0
+ File::Spec: 0
File::Spec::Functions: 0
File::Temp: 0
+ IO::Handle: 0
+ IPC::Open3: 0
Test::More: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300021, CPAN::Meta::Converter version
2.120921'
+generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version
2.132830'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: ExtUtils-InstallPaths
+provides:
+ ExtUtils::InstallPaths:
+ file: lib/ExtUtils/InstallPaths.pm
+ version: 0.010
requires:
Carp: 0
ExtUtils::Config: 0.002
File::Spec: 0
- perl: 5.006
+ perl: 5.008001
strict: 0
warnings: 0
resources:
bugtracker:
http://rt.cpan.org/Public/Dist/Display.html?Name=ExtUtils-InstallPaths
repository: git://github.com/Leont/extutils-installpaths.git
-version: 0.009
+version: 0.010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/Makefile.PL
new/ExtUtils-InstallPaths-0.010/Makefile.PL
--- old/ExtUtils-InstallPaths-0.009/Makefile.PL 2012-12-07 00:05:03.000000000
+0100
+++ new/ExtUtils-InstallPaths-0.010/Makefile.PL 2013-10-29 12:17:28.000000000
+0100
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use 5.006;
+use 5.008001;
use ExtUtils::MakeMaker 6.30;
@@ -11,13 +11,7 @@
my %WriteMakefileArgs = (
"ABSTRACT" => "Build.PL install path logic made easy",
"AUTHOR" => "Ken Williams <kwilliams\@cpan.org>, Leon Timmermans
<leont\@cpan.org>",
- "BUILD_REQUIRES" => {
- "Config" => 0,
- "File::Find" => 0,
- "File::Spec::Functions" => 0,
- "File::Temp" => 0,
- "Test::More" => 0
- },
+ "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
@@ -32,13 +26,34 @@
"strict" => 0,
"warnings" => 0
},
- "VERSION" => "0.009",
+ "TEST_REQUIRES" => {
+ "File::Spec" => 0,
+ "File::Spec::Functions" => 0,
+ "File::Temp" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
+ "Test::More" => 0
+ },
+ "VERSION" => "0.010",
"test" => {
"TESTS" => "t/*.t"
}
);
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/README
new/ExtUtils-InstallPaths-0.010/README
--- old/ExtUtils-InstallPaths-0.009/README 2012-12-07 00:05:03.000000000
+0100
+++ new/ExtUtils-InstallPaths-0.010/README 2013-10-29 12:17:28.000000000
+0100
@@ -1,7 +1,7 @@
This archive contains the distribution ExtUtils-InstallPaths,
-version 0.009:
+version 0.010:
Build.PL install path logic made easy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/ExtUtils-InstallPaths-0.009/lib/ExtUtils/InstallPaths.pm
new/ExtUtils-InstallPaths-0.010/lib/ExtUtils/InstallPaths.pm
--- old/ExtUtils-InstallPaths-0.009/lib/ExtUtils/InstallPaths.pm
2012-12-07 00:05:03.000000000 +0100
+++ new/ExtUtils-InstallPaths-0.010/lib/ExtUtils/InstallPaths.pm
2013-10-29 12:17:28.000000000 +0100
@@ -1,9 +1,9 @@
package ExtUtils::InstallPaths;
{
- $ExtUtils::InstallPaths::VERSION = '0.009';
+ $ExtUtils::InstallPaths::VERSION = '0.010';
}
-use 5.006;
+use 5.008001;
use strict;
use warnings;
@@ -102,47 +102,22 @@
return bless \%self, $class;
}
+my @install_sets_keys = qw/lib arch bin script bindoc libdoc binhtml libhtml/;
+my @install_sets_tail = qw/bin script man1dir man3dir html1dir html3dir/;
+my %install_sets_values = (
+ core => [ qw/privlib archlib /, @install_sets_tail ],
+ site => [ map { "site$_" } qw/lib arch/, @install_sets_tail ],
+ vendor => [ map { "vendor$_" } qw/lib arch/, @install_sets_tail ],
+);
+
sub _default_install_sets {
my $c = shift;
- my $bindoc = $c->get('installman1dir');
- my $libdoc = $c->get('installman3dir');
-
- my $binhtml = $c->get('installhtml1dir') || $c->get('installhtmldir');
- my $libhtml = $c->get('installhtml3dir') || $c->get('installhtmldir');
-
- return {
- core => {
- lib => $c->get('installprivlib'),
- arch => $c->get('installarchlib'),
- bin => $c->get('installbin'),
- script => $c->get('installscript'),
- bindoc => $bindoc,
- libdoc => $libdoc,
- binhtml => $binhtml,
- libhtml => $libhtml,
- },
- site => {
- lib => $c->get('installsitelib'),
- arch => $c->get('installsitearch'),
- bin => $c->get('installsitebin') ||
$c->get('installbin'),
- script => $c->get('installsitescript') ||
$c->get('installsitebin') || $c->get('installscript'),
- bindoc => $c->get('installsiteman1dir') || $bindoc,
- libdoc => $c->get('installsiteman3dir') || $libdoc,
- binhtml => $c->get('installsitehtml1dir') || $binhtml,
- libhtml => $c->get('installsitehtml3dir') || $libhtml,
- },
- vendor => {
- lib => $c->get('installvendorlib'),
- arch => $c->get('installvendorarch'),
- bin => $c->get('installvendorbin') ||
$c->get('installbin'),
- script => $c->get('installvendorscript') ||
$c->get('installvendorbin') || $c->get('installscript'),
- bindoc => $c->get('installvendorman1dir') || $bindoc,
- libdoc => $c->get('installvendorman3dir') || $libdoc,
- binhtml => $c->get('installvendorhtml1dir') || $binhtml,
- libhtml => $c->get('installvendorhtml3dir') || $libhtml,
- },
- };
+ my %ret;
+ for my $installdir (qw/core site vendor/) {
+ @{$ret{$installdir}}{@install_sets_keys} = map {
$c->get("install$_") } @{ $install_sets_values{$installdir} };
+ }
+ return \%ret;
}
sub _default_base_relpaths {
@@ -159,6 +134,15 @@
};
}
+my %common_prefix_relpaths = (
+ bin => ['bin'],
+ script => ['bin'],
+ bindoc => ['man', 'man1'],
+ libdoc => ['man', 'man3'],
+ binhtml => ['html'],
+ libhtml => ['html'],
+);
+
sub _default_prefix_relpaths {
my $c = shift;
@@ -170,32 +154,17 @@
core => {
lib => [@libstyle],
arch => [@libstyle, $version, $arch],
- bin => ['bin'],
- script => ['bin'],
- bindoc => ['man', 'man1'],
- libdoc => ['man', 'man3'],
- binhtml => ['html'],
- libhtml => ['html'],
+ %common_prefix_relpaths,
},
vendor => {
lib => [@libstyle],
arch => [@libstyle, $version, $arch],
- bin => ['bin'],
- script => ['bin'],
- bindoc => ['man', 'man1'],
- libdoc => ['man', 'man3'],
- binhtml => ['html'],
- libhtml => ['html'],
+ %common_prefix_relpaths,
},
site => {
lib => [@libstyle, 'site_perl'],
arch => [@libstyle, 'site_perl', $version, $arch],
- bin => ['bin'],
- script => ['bin'],
- bindoc => ['man', 'man1'],
- libdoc => ['man', 'man3'],
- binhtml => ['html'],
- libhtml => ['html'],
+ %common_prefix_relpaths,
},
};
}
@@ -204,11 +173,10 @@
my $c = shift;
my %ret = (
- core => $c->get('installprefixexp') ||
$c->get('installprefix') || $c->get('prefixexp') || $c->get('prefix') || '',
+ core => $c->get('installprefixexp'),
site => $c->get('siteprefixexp'),
vendor => $c->get('usevendorprefix') ?
$c->get('vendorprefixexp') : '',
);
- $ret{site} ||= $ret{core};
return \%ret;
}
@@ -230,8 +198,6 @@
return $installable ? 1 : 0;
}
-#Carp::croak('Value must be a relative path') if
File::Spec::Unix->file_name_is_absolute($value);
-
sub _prefixify_default {
my $self = shift;
my $type = shift;
@@ -429,8 +395,8 @@
# ABSTRACT: Build.PL install path logic made easy
-
__END__
+
=pod
=head1 NAME
@@ -439,7 +405,7 @@
=head1 VERSION
-version 0.009
+version 0.010
=head1 SYNOPSIS
@@ -662,4 +628,3 @@
the same terms as the Perl 5 programming language system itself.
=cut
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ExtUtils-InstallPaths-0.009/t/00-compile.t
new/ExtUtils-InstallPaths-0.010/t/00-compile.t
--- old/ExtUtils-InstallPaths-0.009/t/00-compile.t 2012-12-07
00:05:03.000000000 +0100
+++ new/ExtUtils-InstallPaths-0.010/t/00-compile.t 2013-10-29
12:17:28.000000000 +0100
@@ -1,73 +1,48 @@
-#!perl
-
use strict;
use warnings;
-use Test::More;
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.036
+use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
-use File::Find;
-use File::Temp qw{ tempdir };
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
+my @module_files = (
+ 'ExtUtils/InstallPaths.pm'
);
-sub _find_scripts {
- my $dir = shift @_;
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
- return @found_scripts;
-}
+# no fake home requested
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
+my $inc_switch = q[-Mblib];
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
+my @warnings;
+for my $lib (@module_files)
{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_
loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation",
scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
+ # see L<perlfaq8/How can I capture STDERR from an external command?>
+ open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
+ my $stderr = IO::Handle->new;
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e',
"require q[$lib]");
+ binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+ my @_warnings = <$stderr>;
+ waitpid($pid, 0);
+ is($?, 0, "$lib loaded ok");
+
+ if (@_warnings)
+ {
+ warn @_warnings;
+ push @warnings, @_warnings;
}
}
+
+
+
+is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+
+
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]