summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2018-03-03 23:50:10 +0100
committerMathieu Lirzin <mthl@gnu.org>2018-03-08 21:33:14 +0100
commit74902aa24d4c313ab51fa684142d9240f636971a (patch)
treef906ad5581f51d5ebf5159643d27ae0594396ac1 /bin
parent9385c161707c6d2295d610eef81fe4d1a44b44de (diff)
downloadautomake-74902aa24d4c313ab51fa684142d9240f636971a.tar.gz
automake: Don't rely on List::Util to provide 'none'
This change fixes automake bug#30631. This removes the use of List::Util which is not supported by Perl 5.6, by reimplementing the 'none' subroutine. * lib/Automake/General.pm (none): New subroutine. * bin/automake.in (handle_single_transform): Use it. * t/pm/General.pl: New test. * t/list-of-tests.mk (perl_TESTS): Add it. * NEWS: Update.
Diffstat (limited to 'bin')
-rw-r--r--bin/automake.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/automake.in b/bin/automake.in
index 16fb45182..a52a48951 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -73,7 +73,6 @@ use Automake::Wrap 'makefile_wrap';
use Automake::Language;
use File::Basename;
use File::Spec;
-use List::Util 'none';
use Carp;
## ----------------------- ##
@@ -1793,7 +1792,7 @@ sub handle_single_transform
my $dname = $derived;
if ($directory ne ''
&& option 'subdir-objects'
- && none { $dname =~ /$_$/ } @dup_shortnames)
+ && none { $dname =~ /$_[0]$/ } @dup_shortnames)
{
# At this point, we don't clear information about what
# parts of $derived are truly file name components. We can