!2 upgrade version to 0.42.31

From: @tong_1001
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-02-02 21:26:15 +08:00 committed by Gitee
commit 60f70c703e
4 changed files with 25 additions and 23 deletions

View File

@ -49,10 +49,10 @@ diff --git a/lib/Module/Build/Base.pm b/lib/Module/Build/Base.pm
index 984810a..a29c664 100644 index 984810a..a29c664 100644
--- a/lib/Module/Build/Base.pm --- a/lib/Module/Build/Base.pm
+++ b/lib/Module/Build/Base.pm +++ b/lib/Module/Build/Base.pm
@@ -1517,7 +1517,11 @@ sub auto_require { @@ -1520,7 +1520,11 @@ sub auto_require {
# If set, we need ExtUtils::CBuilder (and a compiler) if ( $self->pureperl_only && $self->allow_pureperl ) {
my $xs_files = $self->find_xs_files; $self->needs_compiler( 0 );
if ( ! defined $p->{needs_compiler} ) { } else {
- $self->needs_compiler( keys %$xs_files || defined $self->c_source ); - $self->needs_compiler( keys %$xs_files || defined $self->c_source );
+ $self->needs_compiler( keys %$xs_files || + $self->needs_compiler( keys %$xs_files ||
+ ( defined $self->c_source && + ( defined $self->c_source &&
@ -60,8 +60,8 @@ index 984810a..a29c664 100644
+ ) + )
+ ); + );
} }
}
if ($self->needs_compiler) { 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 diff --git a/t/properties/needs_compiler.t b/t/properties/needs_compiler.t
index f616dfc..c76d38f 100644 index f616dfc..c76d38f 100644
--- a/t/properties/needs_compiler.t --- a/t/properties/needs_compiler.t
@ -142,4 +142,3 @@ index f616dfc..c76d38f 100644
$dist = DistGen->new(dir => 'MBTest', xs => 1); $dist = DistGen->new(dir => 'MBTest', xs => 1);
-- --
2.13.6 2.13.6

Binary file not shown.

BIN
Module-Build-0.4231.tar.gz Normal file

Binary file not shown.

View File

@ -4,12 +4,12 @@
Name: perl-Module-Build Name: perl-Module-Build
Epoch: 2 Epoch: 2
Version: 0.42.24 Version: 0.42.31
Release: 12 Release: 1
Summary: Build and install Perl modules Summary: Build and install Perl modules
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Build URL: https://metacpan.org/release/Module-Build
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-0.4224.tar.gz Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz
Patch0: Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch Patch0: Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch
BuildArch: noarch BuildArch: noarch
@ -42,7 +42,7 @@ Requires: man
This package includes man files for %{name}. This package includes man files for %{name}.
%prep %prep
%autosetup -n Module-Build-0.4224 -p1 %autosetup -n Module-Build-0.4231 -p1
%build %build
perl Build.PL installdirs=vendor perl Build.PL installdirs=vendor
@ -66,5 +66,8 @@ LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Tue Feb 02 2021 shixuantong <shixuantong@huawei.com> - 2:0.42.31-1
- upgrade version to 0.42.31
* Fri Nov 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:0.42.24-12 * Fri Nov 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:0.42.24-12
- Package init - Package init