Since -frontend and -agent are slave ports, I opened the bug for zabbix6-server, even though -server builds fine. Now, the problems. First, the frontend: Somehow, the CPE stuff keeps zabbix6-frontend from using PHP flavors option. Having set DEFAULT_VERSIONS+= php=8.3 in make.conf, I end up not with the expected zabbix6-frontend-php83 package, but with a zabbix6-frontend package that does not pull in PHP dependencies? This does not happen with zabbix7, and the only obvious difference was the CPE stuff, so I removed and voila, PHP flavor works again. As for the agent: Makefile for master port zabbix6-server defines .if ${ZABBIX_BUILD} != "java" OPTIONS_DEFAULT+= PCRE2 OPTIONS_SINGLE+= PCRE OPTIONS_SINGLE_PCRE= PCRE1 PCRE2 but later on for zabbix6-agent, PCRE is redefined as a 'normal' OPTION instead of an OPTION group: .elif ${ZABBIX_BUILD} == "agent" OPTIONS_DEFINE+= PCRE This causes a weird config dialogue where the 'group' becomes a selectable item in addition to the group choices of PCRE1 and PCRE2. I am not providing a patch, since I do not know how to fix the CPE stuff, but am happy to test!
I have found the root cause. In zabbix6-server/Makefile there was: USES=cpe that overriden: USES=php:web,flavors from zabbix6-frontend/Makefile. In zabbix6-server's Makefile, I've changed it to: USES+=cpe and will commit it along with the update to most recent zabbix version. Thanks for the heads-up.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5da348045e03aaa6b5529df1fc557d30929a80e9 commit 5da348045e03aaa6b5529df1fc557d30929a80e9 Author: Juraj Lutter <otis@FreeBSD.org> AuthorDate: 2026-07-07 17:21:26 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2026-07-07 17:23:41 +0000 net-mgmt/zabbix6-server: Update to 6.0.47 - Update to 6.0.47 - Fix PCRE option definition [1] - Fix PHP flavouring in agent [1] PR: 296158 [1] net-mgmt/zabbix6-frontend/Makefile | 2 +- net-mgmt/zabbix6-server/Makefile | 7 +++---- net-mgmt/zabbix6-server/distinfo | 6 +++--- net-mgmt/zabbix6-server/pkg-plist.java | 1 + 4 files changed, 8 insertions(+), 8 deletions(-)