diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-10-24 01:47:31 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-10-24 01:47:31 +0800 |
commit | 4dff4743afc9d213cbac56c3485045e744fd467a (patch) | |
tree | de4a3f7cec229ead9bf128291c153f2da4164204 /Mk | |
parent | 01ebc98fbf52a775c75aa08c74187a112e7e7fa0 (diff) | |
download | freebsd-ports-gnome-4dff4743afc9d213cbac56c3485045e744fd467a.tar.gz freebsd-ports-gnome-4dff4743afc9d213cbac56c3485045e744fd467a.tar.zst freebsd-ports-gnome-4dff4743afc9d213cbac56c3485045e744fd467a.zip |
- Fix .packlist only when ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto exists
Reported by: John Marino <freebsd.contact@marino.st>
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/perl5.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index 51c8f4847c10..164e3ef5ba15 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -261,6 +261,6 @@ do-install: post-stage:: # TODO: change to ${_USE_PERL5:Mconfigure} when M::B creates .packlist .if ${USE_PERL5:Mconfigure} || ${USE_PERL5:Mmodbuildtiny} - @${FIND} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto -name .packlist -exec ${SED} -i '' 's|^${STAGEDIR}||' '{}' \; + @[ -x ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto ] && ${FIND} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto -name .packlist -exec ${SED} -i '' 's|^${STAGEDIR}||' '{}' \; .endif .endif # defined(_POSTMKINCLUDED) |