[Bug 296158] net-mgmt/zabbix6-server CPE messing up PHP flavors for frontend and wrong zabbix6-agent PCRE options

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 20 Jun 2026 05:40:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296158

            Bug ID: 296158
           Summary: net-mgmt/zabbix6-server CPE messing up PHP flavors for
                    frontend and wrong zabbix6-agent PCRE options
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: martin@waschbuesch.de
          Assignee: otis@FreeBSD.org
             Flags: maintainer-feedback?(otis@FreeBSD.org)

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!

-- 
You are receiving this mail because:
You are the assignee for the bug.