diff --git a/.gitignore b/.gitignore index d0054f9..54d6373 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ Module-Build-0.2808.tar.gz /Module-Build-0.4220.tar.gz /Module-Build-0.4222.tar.gz /Module-Build-0.4224.tar.gz +/Module-Build-0.4229.tar.gz diff --git a/Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch b/Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch index bae98c6..473d8c8 100644 --- a/Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch +++ b/Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch @@ -49,19 +49,19 @@ diff --git a/lib/Module/Build/Base.pm b/lib/Module/Build/Base.pm index 984810a..a29c664 100644 --- a/lib/Module/Build/Base.pm +++ b/lib/Module/Build/Base.pm -@@ -1517,7 +1517,11 @@ sub auto_require { - # If set, we need ExtUtils::CBuilder (and a compiler) - my $xs_files = $self->find_xs_files; - if ( ! defined $p->{needs_compiler} ) { -- $self->needs_compiler( keys %$xs_files || defined $self->c_source ); -+ $self->needs_compiler( keys %$xs_files || -+ ( defined $self->c_source && -+ ( ref($self->c_source) ne 'ARRAY' || @{$self->c_source} ) -+ ) -+ ); +@@ -1520,7 +1520,11 @@ sub auto_require { + if ( $self->pureperl_only && $self->allow_pureperl ) { + $self->needs_compiler( 0 ); + } else { +- $self->needs_compiler( keys %$xs_files || defined $self->c_source ); ++ $self->needs_compiler( keys %$xs_files || ++ ( defined $self->c_source && ++ ( ref($self->c_source) ne 'ARRAY' || @{$self->c_source} ) ++ ) ++ ); + } } if ($self->needs_compiler) { - $self->_add_prereq('build_requires', 'ExtUtils::CBuilder', 0); diff --git a/t/properties/needs_compiler.t b/t/properties/needs_compiler.t index f616dfc..c76d38f 100644 --- a/t/properties/needs_compiler.t diff --git a/perl-Module-Build.spec b/perl-Module-Build.spec index 7931c5d..e682fb1 100644 --- a/perl-Module-Build.spec +++ b/perl-Module-Build.spec @@ -1,5 +1,5 @@ %global cpan_version_major 0.42 -%global cpan_version_minor 24 +%global cpan_version_minor 29 %global cpan_version %{cpan_version_major}%{?cpan_version_minor} # Run optional tests @@ -8,7 +8,7 @@ Name: perl-Module-Build Epoch: 2 Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor} -Release: 11%{?dist} +Release: 1%{?dist} Summary: Build and install Perl modules License: GPL+ or Artistic URL: https://metacpan.org/release/Module-Build @@ -155,6 +155,9 @@ LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test %{_mandir}/man3/* %changelog +* Tue Apr 16 2019 Jitka Plesnikova - 2:0.42.29-1 +- 0.4229 bump + * Fri Feb 01 2019 Fedora Release Engineering - 2:0.42.24-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 0cedea4..5e02361 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Module-Build-0.4224.tar.gz) = c08e84c542a882aa16a682a81cbb7a4860774a3f6a0ec2e720ba9e9bcea76dab331999fee86bf8b92edc08560d7cef4a7c2dfa4e626ab9b22da965e715af531f +SHA512 (Module-Build-0.4229.tar.gz) = 51e0d73cecf450062121c3223b1a4c6f8a8c260fc2345d1c1a5e13ddcbd2b7bc2578411ac254420e27720b9e00a8efc9a9daa3159e9cba5338a188734b35c738