Thanks in advance
Created attachment 262989 [details] 0001-archivers-php-bzip3-new-port.patch
Created attachment 262990 [details] bzip3_test.php
Just realized there's thing in here to be fixed. I'll submit a revised version sometime in the evening.
Dear Paavo-Einari, I just tested your submission, and it looks fine for me (both poudriere, portclippy, portfmt, and portlint all are happy :-) So, I wonder what you found that want to improve... One suggestion through - since you spent time to develop a test (which works fine!), how about adding the test to the port? Best, Tiago
The issue is a copy/paste artefact and does not affect the extension itself, only the package metadata. cpe shouldn't be here. The distribution tarball actually ships with tests of it's own. I provided a simpler one for the committer's convenience if they want to test the new port and aren't familiar with phpt tests. https://github.com/kjdev/php-ext-bzip3/tree/main/tests Shipping own tests with a port isn't quite a standard practice. - Pave
Created attachment 263073 [details] add tests to Makefile Dear Pave, if the distribution has its own tests, even better :-) I provide an update to your Makefile (see attached patch) to add the "make test" using the distributions' tests for your consideration of inclusion. Best, Tiago
And... BTW, here is the result :-) Running selected tests. PASS Bzip3\compress()/Bzip3\uncompress() [001.phpt] PASS Bzip3\compress(): block_size [002.phpt] PASS Bzip3\compress(): heredoc [003.phpt] PASS Bzip3\uncompress(): invalid data [004.phpt] PASS phpinfo() [info.phpt] Cheers.
Well, yeah perhaps adding them should be a standard practice :) Just haven't thought about this very much, because my particular workflow of running tests is a bit different, because I use the same workflow for things that aren't even ports of any kind. I'll take your patch and will add similar tests to few other ports of mine too. Shall I refer you as gatekeeper or Tiago in the commit message? - Pave
(In reply to Paavo-Einari Kaipila from comment #8) Dear Pave, both are fine; but i guess gatekeeper woul be better, as its my handle? BTW - thats a refecence to Ghostbusters... :-) Best Regards, Tiago
Not quite sure if that test depends should be lang/php or lang/php${PHP_VER} Portlint doesn't like either one. Can't find mentions of test being run on poudriere logs and can't find a way to tell it to run them.
(In reply to Paavo-Einari Kaipila from comment #10) Ah, sorry, my bad. I think you are right - it should be: TEST_DEPENDS= php:lang/php${PHP_VER} As far as I remember, the "bulk" build does not run the tests, but poudriere has a testport option. I am on the go now, but will check this ASAP and try to get back to you. One port I commited (with the help of Nuno) is comms/py-streamdeck, and it has the test enabled... Cheers, Tiago
For me, „portlint -AC“ did not complain... strange...
(In reply to gatekeeper from comment #11) No need to hurry, my goal is to get this to the tree before Q4 cutoff :D According to my interpretation of testport command's description, it tests the build process without saving the package. And my observation of it's behaviour also supports this interpretation.
(In reply to Paavo-Einari Kaipila from comment #13) OK, so after looking a bit arround (porters handbook + source code of poudriere), I find out that poudriere does not run the tests automatically, even if they are defined. Also the testport seems to be a quality check, not a functional test. From this, it seems to me that "make test" is supposed to be run manually by the maintainers and is not part of CI pipeline - maybe I am wrong here... We might also be looking at an intended future feature (?), which can run the tests for the ports that define do-test in the Makefile, and report back to maintainers if the tests stop working after some time... that would be awesome to have - not only to ensure the quality but also that the port is doing what it should. Anyhow, according to the porters handbook "If the original upstream project provides tests along with the software, it is a good idea to run them and check everything works as expected." So... I think that including the patch is good, even if it does not automatically get run by poudriere; we can still run it manually ;-) Best, Tiago
Yeah, that's what I concluded too. I must leave it out then, because that is just absolutely incompatible with my particular setup and I'd have to run another another parallel setup building the same packages again only to run same tests I run with my current setup. That's quite a bit of wasted cpu cycles just because something is "a good idea".
Created attachment 263100 [details] 0001-archivers-php-bzip3-new-port-bzip3-compression-exten.patch
Created attachment 263101 [details] 0001-archivers-php-bzip3-new-port-bzip3-compression-exten.patch picked up a wrong file for last one
Created attachment 264436 [details] 0001-archivers-php-bzip3-new-port-bzip3-compression-exten.patch A small improvement to Makefile (m4 here doesn't actually support specifying lib location and only relies on pkgconfig) and some rewording of pkg-descr.
Approved. Thanks, Yuri
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a467fdaf329f9eea6c0b196065496a2e09dc97dc commit a467fdaf329f9eea6c0b196065496a2e09dc97dc Author: Paavo-Einari Kaipila <pave@freebsd.org> AuthorDate: 2025-08-21 05:07:30 +0000 Commit: Älven <alven@FreeBSD.org> CommitDate: 2025-10-30 23:55:08 +0000 archivers/php-bzip3: [NEW PORT] bzip3 compression extension PR: 288888 Tested by: gatekeeper <tiago.gasiba@gmail.com> Approved by: yuri@ (Mentor) archivers/Makefile | 1 + archivers/php-bzip3/Makefile (new) | 23 +++++++++++++++++++++++ archivers/php-bzip3/distinfo (new) | 3 +++ archivers/php-bzip3/pkg-descr (new) | 3 +++ 4 files changed, 30 insertions(+)
Thanks for all your work on this. Committed!