Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 16:40:19 +0400
From:      Sergey Skvortsov <skv@protey.ru>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        ports@freebsd.org
Subject:   Re: PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS
Message-ID:  <434E55B3.7020501@protey.ru>
In-Reply-To: <20051012211228.GE1278@k7.mavetju>
References:  <20051012114222.GD1278@k7.mavetju> <434D0CFE.9090007@protey.ru> <20051012211228.GE1278@k7.mavetju>

next in thread | previous in thread | raw e-mail | index | archive | help
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@protey.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?434E55B3.7020501>