mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 07:00:28 +00:00
apkbuild-cpan.in: don't add perl-dev if its not needed on recreate
This commit is contained in:
parent
4ae1b39910
commit
b0fb5c7038
@ -579,11 +579,7 @@ sub do_depends {
|
||||
|
||||
my $has_xs = length(`find $metaprefix -name '*.xs'`);
|
||||
|
||||
my $perldev = (
|
||||
( defined $oldapkbuild->{'makedepends'}
|
||||
&& $oldapkbuild->{'makedepends'} =~ 'perl-dev' ) ||
|
||||
$has_xs )
|
||||
? "perl-dev" : '';
|
||||
my $perldev = $has_xs ? "perl-dev" : '';
|
||||
if ( defined $makedeps && $makedeps eq '' ) {
|
||||
if (defined $oldapkbuild->{'makedepends'} && ! $meta) {
|
||||
$makedeps = $oldapkbuild->{'makedepends'};
|
||||
|
Loading…
Reference in New Issue
Block a user