From 2e6faa9c3680e0a313d809f307c4afbf6f01f262 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 2 Aug 2018 08:35:10 +0000 Subject: Fix spurious errors. PR: 230287 Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D16440 --- Mk/Uses/perl5.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Mk') diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index eee14b7befb4..46b28a365119 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -307,7 +307,8 @@ fix-perl-things: ${FIND} ${STAGEDIR}${SITE_MAN3} -name '*::README.3' -delete || : # Starting at ExtUtils::MakeMaker 7.31_06 and Perl 5.27.1, the base README.pod is # no longer installed. So remove any that can be there. - @${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} -name README.pod -delete || : + @[ -d "${STAGEDIR}${PREFIX}/${SITE_PERL_REL}" ] && \ + ${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} -name README.pod -delete || : . if !target(do-test) && (!empty(USE_PERL5:Mmodbuild*) || !empty(USE_PERL5:Mconfigure)) TEST_TARGET?= test -- cgit