HOWTO automatically follow PHP default versions switches?

Mathieu Arnold mat at FreeBSD.org
Mon Nov 5 13:36:43 UTC 2018


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 at php72
> 	RUN_DEPENDS+=	roundcube-sieverules-php72>0:${PORTSDIR}/mail/roundcube-sieverules at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20181105/18b923f0/attachment.sig>


More information about the freebsd-ports mailing list