PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS
Sergey Skvortsov
skv at protey.ru
Thu Oct 13 05:40:23 PDT 2005
Edwin Groothuis wrote:
>>> The syntax is:
>>> PERL_BUILD_DEPENDS= MIME-Lite:${PORTSDIR}/mail/p5-MIME-Lite
>>> It checks the for the existence of MIME::Lite with the "perl -e
>>> 'use MIME::Lite'" command.
>> Obviously this approach will cause great performance degrade.
>> stat(2) is much more faster than loading perl.
>
> Minimal compared with the time it takes to fetch distfiles and to
> build. That's the only time it is checked.
Loading some module (via "use") can take even more time than simply
detecting corresponding .pm file because all code is compiled into
bytecode-tree. PERL_BUILD_DEPEND is an useless syntax sugar.
FYI: "perl -MMIME::Lite -e 0" is right way to check module.
--
Sergey Skvortsov
mailto: skv at protey.ru
More information about the freebsd-ports
mailing list