aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-08-02 16:35:10 +0800
committermat <mat@FreeBSD.org>2018-08-02 16:35:10 +0800
commit2e6faa9c3680e0a313d809f307c4afbf6f01f262 (patch)
tree29e2c979eb2df53f5d1d08babdd78a9485ecb9be /Mk
parent84593085347434de1a23f91c07757a730a526bc6 (diff)
downloadfreebsd-ports-gnome-2e6faa9c3680e0a313d809f307c4afbf6f01f262.tar.gz
freebsd-ports-gnome-2e6faa9c3680e0a313d809f307c4afbf6f01f262.tar.zst
freebsd-ports-gnome-2e6faa9c3680e0a313d809f307c4afbf6f01f262.zip
Fix spurious errors.
PR: 230287 Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D16440
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/perl5.mk3
1 files changed, 2 insertions, 1 deletions
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