On Sun, Nov 04, 2018 at 05:40:35PM +0100, Michael Grimm wrote:
> Hi,
> 
> I am using poudriere for compiling ports, and I do have the following setting 
> in my corresponding make.conf:
> 
>       DEFAULT_VERSIONS+=php=72
> 
> In addition I do have two local meta-ports with PHP definitions installed in 
> order to provide PHP and PHP depending ports in service jails:
>       
>       PORTNAME=       local-www
>       CATEGORIES=     local
>       [snip]
>       RUN_DEPENDS+=   roundcube-php72>0:${PORTSDIR}/mail/roundcube@php72
>       RUN_DEPENDS+=   
> roundcube-sieverules-php72>0:${PORTSDIR}/mail/roundcube-sieverules@php72
> 
>       and
> 
>       PORTNAME=       local-www2
>       CATEGORIES=     local
>       [snip]
>       RUN_DEPENDS+=   php72-extensions>0:${PORTSDIR}/lang/php72-extensions
> 
> 
> Question: Is there a way to automatically follow default version switches of 
> PHP without having to touch those definitions above?
> 
> I cannot find something like meta-ports of lang/php-default and 
> land/php-extensions-default, thus I do believe that it cannot be done. 
> Correct?

It would not be appropriate for a port inside the ports tree, but you
can simply replace all occurrences of 72 by ${PHP_DEFAULT}.

-- 
Mathieu Arnold

Attachment: signature.asc
Description: PGP signature

Reply via email to