Bug 296158 - net-mgmt/zabbix6-server CPE messing up PHP flavors for frontend and wrong zabbix6-agent PCRE options
Summary: net-mgmt/zabbix6-server CPE messing up PHP flavors for frontend and wrong zab...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-20 05:40 UTC by Martin Waschbüsch
Modified: 2026-07-07 17:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (otis)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Waschbüsch 2026-06-20 05:40:22 UTC
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!
Comment 1 Juraj Lutter freebsd_committer freebsd_triage 2026-07-07 17:03:14 UTC
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.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-07-07 17:25:32 UTC
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(-)