Solved Issue with installing PHP 7.1 and 7.2

I run gitup ports -w 0b68a105030c4790ae0dd04d25ac764e14b70a3e to get the latest ports collection before PHP 7.2 is removed.

When I do cd /usr/ports/php72-extensions && make install clean I get this:

Code:
Unknown extension bcmath for PHP 72.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/php72-extensions
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/php72-extensions

Any idea what is the issue?

I did the same for PHP 5.6 and 7.3 without issue.
 
I also tried with newer /usr/ports/Mk/Uses/php.mk but also fails.

The problem is only with the metaport. I can install ports directly without issue.
 
I pkg remove everything and then delete /var/db/pkg/*. Now I can make install php72-extensions. I believe that there is something wrong with package registration. Is any way to re-register already installed ports?

Finally I was wrong, removing /var/db/pkg/* didn't solve it.
 
something may be b0rked in
/usr/ports/Mk/Uses/php.mk
Finally this was the issue with PHP 7.1. I was fetching a commit newer than the correct, which had an older version of php.mk. Tomorrow I will try with PHP 7.2 which I believe is the same issue.

Thank you all for the replies and help.
 
Back
Top