Hello community,
here is the log from the commit of package perl-Module-ScanDeps for
openSUSE:Factory checked in at 2018-12-27 00:23:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-ScanDeps (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-ScanDeps.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-ScanDeps"
Thu Dec 27 00:23:47 2018 rev:23 rq:657870 version:1.26
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Module-ScanDeps/perl-Module-ScanDeps.changes
2018-09-24 13:12:08.609824520 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Module-ScanDeps.new.28833/perl-Module-ScanDeps.changes
2018-12-27 00:23:48.371936899 +0100
@@ -1,0 +2,20 @@
+Thu Dec 13 06:13:38 UTC 2018 - Stephan Kulow <[email protected]>
+
+- updated to 1.26
+ see /usr/share/doc/packages/perl-Module-ScanDeps/Changes
+
+ 1.26 2018-12-12
+
+ - Glue DLLs of XS modules should have type "shared" rather than "data"
+
+ Detection broke on Windows where nowadays $Config{dlext} = "xs.dll"
+ (i.e. it's not a simple suffix)
+
+ - Mention some other modules: Module::ExtractUse and Perl::PrereqScanner::*
family
+
+ - Add %Preload rules for:
+ - JSON::MaybeXS
+ - HTTP::Entity::Parser
+ - FFI::Platypus
+
+-------------------------------------------------------------------
Old:
----
Module-ScanDeps-1.25.tar.gz
New:
----
Module-ScanDeps-1.26.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-ScanDeps.spec ++++++
--- /var/tmp/diff_new_pack.SMTyrN/_old 2018-12-27 00:23:48.775936570 +0100
+++ /var/tmp/diff_new_pack.SMTyrN/_new 2018-12-27 00:23:48.775936570 +0100
@@ -17,13 +17,13 @@
Name: perl-Module-ScanDeps
-Version: 1.25
+Version: 1.26
Release: 0
%define cpan_name Module-ScanDeps
Summary: Recursively scan Perl code for dependencies
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Module-ScanDeps/
+Url: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -68,11 +68,11 @@
%setup -q -n %{cpan_name}-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
%check
-%{__make} test
+make test
%install
%perl_make_install
++++++ Module-ScanDeps-1.25.tar.gz -> Module-ScanDeps-1.26.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-ScanDeps-1.25/Changes
new/Module-ScanDeps-1.26/Changes
--- old/Module-ScanDeps-1.25/Changes 2018-08-17 22:41:44.000000000 +0200
+++ new/Module-ScanDeps-1.26/Changes 2018-12-12 18:29:53.000000000 +0100
@@ -1,3 +1,17 @@
+1.26 2018-12-12
+
+- Glue DLLs of XS modules should have type "shared" rather than "data"
+
+ Detection broke on Windows where nowadays $Config{dlext} = "xs.dll"
+ (i.e. it's not a simple suffix)
+
+- Mention some other modules: Module::ExtractUse and Perl::PrereqScanner::*
family
+
+- Add %Preload rules for:
+ - JSON::MaybeXS
+ - HTTP::Entity::Parser
+ - FFI::Platypus
+
1.25 2018-08-18
- Merge pull request #2 from shawnlaffan/master, thanx Shawn!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-ScanDeps-1.25/META.json
new/Module-ScanDeps-1.26/META.json
--- old/Module-ScanDeps-1.25/META.json 2018-08-17 23:53:15.000000000 +0200
+++ new/Module-ScanDeps-1.26/META.json 2018-12-12 18:35:54.000000000 +0100
@@ -4,13 +4,13 @@
"Audrey Tang <[email protected]>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter
version 2.150010",
+ "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter
version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Module-ScanDeps",
"no_index" : {
@@ -64,6 +64,6 @@
},
"x_MailingList" : "mailto:[email protected]"
},
- "version" : "1.25",
- "x_serialization_backend" : "JSON::PP version 2.27400_02"
+ "version" : "1.26",
+ "x_serialization_backend" : "JSON::PP version 2.97001"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-ScanDeps-1.25/META.yml
new/Module-ScanDeps-1.26/META.yml
--- old/Module-ScanDeps-1.25/META.yml 2018-08-17 23:53:15.000000000 +0200
+++ new/Module-ScanDeps-1.26/META.yml 2018-12-12 18:35:54.000000000 +0100
@@ -9,7 +9,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -34,5 +34,5 @@
MailingList: mailto:[email protected]
bugtracker: https://rt.cpan.org/Dist/Display.html?Queue=Module-ScanDeps
repository: git://github.com/rschupp/Module-ScanDeps.git
-version: '1.25'
+version: '1.26'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-ScanDeps-1.25/lib/Module/ScanDeps.pm
new/Module-ScanDeps-1.26/lib/Module/ScanDeps.pm
--- old/Module-ScanDeps-1.25/lib/Module/ScanDeps.pm 2018-08-17
22:41:44.000000000 +0200
+++ new/Module-ScanDeps-1.26/lib/Module/ScanDeps.pm 2018-12-12
18:22:12.000000000 +0100
@@ -4,15 +4,13 @@
use warnings;
use vars qw( $VERSION @EXPORT @EXPORT_OK @ISA $CurrentPackage @IncludeLibs
$ScanFileRE );
-$VERSION = '1.25';
+$VERSION = '1.26';
@EXPORT = qw( scan_deps scan_deps_runtime );
@EXPORT_OK = qw( scan_line scan_chunk add_deps scan_deps_runtime
path_to_inc_name );
use Config;
require Exporter;
our @ISA = qw(Exporter);
-use constant dl_ext => ".$Config{dlext}";
-use constant lib_ext => $Config{lib_ext};
use constant is_insensitive_fs => (
-s $0
and (-s lc($0) || -1) == (-s uc($0) || -1)
@@ -332,7 +330,7 @@
'ExtUtils/MakeMaker.pm' => sub {
grep /\bMM_/, _glob_in_inc('ExtUtils', 1);
},
- 'FFI/Platypus' => 'sub',
+ 'FFI/Platypus.pm' => 'sub',
'File/Basename.pm' => [qw( re.pm )],
'File/BOM.pm' => [qw( Encode/Unicode.pm )],
'File/HomeDir.pm' => 'sub',
@@ -341,6 +339,7 @@
map { my $name = $_; $name =~ s!::!/!g; "$name.pm" } @File::Spec::ISA;
},
'Gtk2.pm' => [qw( Cairo.pm )], # Gtk2.pm does:
eval "use Cairo;"
+ 'HTTP/Entity/Parser.pm' => 'sub',
'HTTP/Message.pm' => [qw( URI/URL.pm URI.pm )],
'Image/ExifTool.pm' => sub {
return(
@@ -365,6 +364,9 @@
# but accept JSON::XS, too (because JSON.pm might use it if present)
return( grep /^JSON\/(PP|XS)/, _glob_in_inc('JSON', 1) );
},
+ 'JSON/MaybeXS.pm' => [qw(
+ Cpanel/JSON/XS.pm JSON/XS.pm JSON/PP.pm
+ )],
'List/MoreUtils.pm' => 'sub',
'List/SomeUtils.pm' => 'sub',
'Locale/Maketext/Lexicon.pm' => 'sub',
@@ -1108,15 +1110,8 @@
foreach (_glob_in_inc("auto/$path")) {
next if $_->{file} =~ m{\bauto/$path/.*/}; # weed out subdirs
- next if $_->{name} =~ m{/\.(?:exists|packlist)$};
- my ($ext,$type);
- $ext = lc($1) if $_->{name} =~ /(\.[^.]+)$/;
- if (defined $ext) {
- next if $ext eq lc(lib_ext());
- $type = 'shared' if $ext eq lc(dl_ext());
- $type = 'autoload' if ($ext eq '.ix' or $ext eq '.al');
- }
- $type ||= 'data';
+ next if $_->{name} =~
m{/(?:\.exists|\.packlist|\Q$Config{lib_ext}\E)$};
+ $type = _gettype($_->{name});
_add_info( rv => $rv, module => $_->{name},
file => $_->{file}, used_by => $module,
@@ -1386,7 +1381,7 @@
# drop refs from @_INC
@_INC = grep { !ref $_ } @_INC;
- my $dlext = $Config::Config{dlext};
+ my $dlext = $Config{dlext};
my @dlls = grep { defined $_ && -e $_ }
Module::ScanDeps::DataFeed::_dl_shared_objects();
my @shared_objects = @dlls;
push @shared_objects, grep { s/\Q.$dlext\E$/\.bs/ && -e $_ } @dlls;
@@ -1419,7 +1414,6 @@
return if $mod eq 'B';
return unless defined &{"$mod\::bootstrap"};
- my $dl_ext = $Config::Config{dlext};
# cf. DynaLoader.pm
my @modparts = split(/::/, $mod);
@@ -1427,7 +1421,7 @@
my $modpname = join('/', @modparts);
foreach my $dir (@_INC) {
- my $file = "$dir/auto/$modpname/$modfname.$dl_ext";
+ my $file = "$dir/auto/$modpname/$modfname.$Config{dlext}";
return $file if -r $file;
}
return;
@@ -1505,11 +1499,10 @@
sub _gettype {
my $name = shift;
- my $dlext = quotemeta(dl_ext());
- return 'autoload' if $name =~ /(?:\.ix|\.al)$/i;
+ return 'autoload' if $name =~ /\.(?:ix|al|bs)$/i;
return 'module' if $name =~ /\.p[mh]$/i;
- return 'shared' if $name =~ /\.$dlext$/i;
+ return 'shared' if $name =~ /\.\Q$Config{dlext}\E$/i;
return 'data';
}
@@ -1631,6 +1624,10 @@
such projects, L<PAR> and L<App::Packer>. Please see their respective
documentations on CPAN for further information.
+Other modules which accomplish the same goal with different approach:
+L<Module::ExtractUse>, L<Perl::PrereqScanner>, L<Perl::PrereqScanner::Lite>,
+L<Perl::PrereqScanner::NotQuiteLite>.
+
=head1 AUTHORS
Audrey Tang E<lt>[email protected]<gt>