pecl is being deprecated. Convert the port to use upstream github
Created attachment 272793 [details] Move to php-pcov and migrate from pecl
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2c946c5bdaf916cc65d0bba1cde5455e0de66d6f commit 2c946c5bdaf916cc65d0bba1cde5455e0de66d6f Author: Einar Bjarni Halldórsson <einar@isnic.is> AuthorDate: 2026-07-13 10:11:08 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2026-07-15 21:59:02 +0000 devel/{pecl|php}-pcov: Convert port A CodeCoverage compatible driver for PHP Please note that pecl infrastructure is being deprecated so create a different port which is not dependent on pecl infrastructure. This commit also removes pecl-pcov ports in lieu of this port. PR: 296749 MOVED | 1 + devel/Makefile | 2 +- devel/pecl-pcov/distinfo (gone) | 3 --- devel/{pecl-pcov => php-pcov}/Makefile | 11 ++++++++--- devel/php-pcov/distinfo (new) | 3 +++ devel/{pecl-pcov => php-pcov}/pkg-descr | 0 6 files changed, 13 insertions(+), 7 deletions(-)
(In reply to commit-hook from comment #2) Built the pkg, but after install these are the files the pkg installs: $ pkg info -l php84-pcov php84-pcov-1.0.12: /usr/local/share/licenses/php84-pcov-1.0.12/LICENSE /usr/local/share/licenses/php84-pcov-1.0.12/PHP301 /usr/local/share/licenses/php84-pcov-1.0.12/catalog.mk It doesn't include pcov.so
(In reply to Einar Bjarni Halldórsson from comment #3) If I run make I get this output: ===> Staging for php84-pcov-1.0.12 ===> php84-pcov-1.0.12 depends on file: /usr/local/include/php/main/php.h - found ===> Generating temporary packing list Installing shared extensions: /usr/local/lib/php/20240924/ ====> Compressing man pages (compress-man) so `make` actually installs the pcov.so into /usr/local/lib/php/20240924, not in the staging dir.
(In reply to Einar Bjarni Halldórsson from comment #4) I just ran the following while building in `poudriere -i` mode ``` nobody@144-default:/usr/ports/devel/php-pcov $ find /wrkdirs/usr/ports/devel/php-pcov/work-php84/stage/usr/local -type f -name pcov.so /wrkdirs/usr/ports/devel/php-pcov/work-php84/stage/usr/local/lib/php/20240924/pcov.so
Created attachment 272890 [details] Fix build in my poudriere I tested building in poudriere with these changes and the resulting pkg has the files that where missing before: $ pkg info -l php84-pcov php84-pcov-1.0.12: /usr/local/etc/php/ext-20-pcov.ini.sample /usr/local/include/php/ext/pcov/config.h /usr/local/include/php/ext/pcov/php_pcov.h /usr/local/lib/php/20240924/pcov.so /usr/local/share/licenses/php84-pcov-1.0.12/LICENSE /usr/local/share/licenses/php84-pcov-1.0.12/PHP301 /usr/local/share/licenses/php84-pcov-1.0.12/catalog.mk
(In reply to Muhammad Moinur Rahman from comment #5) Cam you try intsalling the resulting package from poudriere and check if it installs pcov.so? I just tested with my new patch and that works, but I might have done something stupid before
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=de3fc8234ced35e12e7bec440fb6e7f6d6bc1bb0 commit de3fc8234ced35e12e7bec440fb6e7f6d6bc1bb0 Author: Einar Bjarni Halldórsson <einar@isnic.is> AuthorDate: 2026-07-16 00:31:30 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2026-07-16 00:31:30 +0000 devel/php-pcov: Fix runtime - Update WWW PR: 296749 Approved by: submitter is maintainer devel/php-pcov/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
(In reply to Einar Bjarni Halldórsson from comment #7) Not sure what happened with that one line but should be fixed now.
(In reply to Muhammad Moinur Rahman from comment #9) Works now, thank you!