Bug 296749 - devel/pecl-pcov: Convert from pecl
Summary: devel/pecl-pcov: Convert from pecl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL: https://github.com/krakjoe/pcov
Keywords:
Depends on:
Blocks: 296770
  Show dependency tree / graph
 
Reported: 2026-07-13 09:25 UTC by Einar Bjarni Halldórsson
Modified: 2026-07-16 00:44 UTC (History)
1 user (show)

See Also:


Attachments
Move to php-pcov and migrate from pecl (3.78 KB, patch)
2026-07-13 10:21 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff
Fix build in my poudriere (1002 bytes, patch)
2026-07-16 00:23 UTC, Einar Bjarni Halldórsson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Bjarni Halldórsson 2026-07-13 09:25:23 UTC
pecl is being deprecated. Convert the port to use upstream github
Comment 1 Einar Bjarni Halldórsson 2026-07-13 10:21:52 UTC
Created attachment 272793 [details]
Move to php-pcov and migrate from pecl
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-07-15 22:00:19 UTC
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(-)
Comment 3 Einar Bjarni Halldórsson 2026-07-15 23:31:48 UTC
(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
Comment 4 Einar Bjarni Halldórsson 2026-07-15 23:56:53 UTC
(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.
Comment 5 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2026-07-16 00:18:40 UTC
(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
Comment 6 Einar Bjarni Halldórsson 2026-07-16 00:23:47 UTC
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
Comment 7 Einar Bjarni Halldórsson 2026-07-16 00:25:39 UTC
(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
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-07-16 00:32:49 UTC
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(-)
Comment 9 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2026-07-16 00:33:42 UTC
(In reply to Einar Bjarni Halldórsson from comment #7)
Not sure what happened with that one line but should be fixed now.
Comment 10 Einar Bjarni Halldórsson 2026-07-16 00:44:01 UTC
(In reply to Muhammad Moinur Rahman from comment #9)

Works now, thank you!