about PERL_DEPENDS and PERL_TEST_DEPENDS

Yen-Ming Lee leeym at leeym.com
Sun Mar 9 07:03:28 UTC 2008


2008/3/5, Yen-Ming Lee <leeym at leeym.com>:
> [See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/121313]
>  2008/3/5, Mark Linimon <linimon at lonesome.com>:
> > While this is interesting functionality, this would result in a terrible
>  >  slowdown in e.g. bulding the ports INDEX -- this would nearly double the
>  >  line size of bsd.*.mk, not to mention the time involved to do the string-
>  >  bashing.
>  >  Surely there is a less expensive way of achieving the same result?

> Yes, but "bsd.perl.core.mk" will only be loaded if PERL_DEPENDS is
>  defined, also it will ony load the values based on the value of
>  PERL_LEVEL. Surely it will slow down the build time, but it only
>  affect p5-*, and in my experience it's not that bad. Of course
>  building one port and building whole ports tree are different cases...

[deleted]

>  It's my implementation to "maintains a little database for dual-life
>  modules", maybe tobez@ and lth@ or other developers on perl@ will have
>  better solutions to do so.

Hi,

tobez@ and lth@,

Since you mentioned that you plan to achieve the same goal about
PERL_DEPENDS and  PERL_TEST_DEPENDS, what's your planed
implementation? Hopefully it will be less expensive.

linimon@ and other developers on perl@,

I still think it's an interesting features to handle the perl
dependency, otherwise we will have either a over-simplified dependency
...

RUN_DEPENDS= a lot of ports dependency here including some dual-life
modules and some only-for-tests modules

or a super-complex dependency ...

.if ${PERL_LEVEL} < 500808
RUN_DEPENDS+=   .....
.endif

.if ${PERL_LEVEL} < 500900
RUN_DEPENDS+=   .....
.endif

.if ${PERL_LEVEL} < 500902
RUN_DEPENDS+=   .....
.endif

Thanks,
-- 
Yen-Ming Lee <leeym at leeym.com>


More information about the freebsd-perl mailing list