Bug 287330 - net-mgmt/zabbix7-agent: wrongly depends on libxml2
Summary: net-mgmt/zabbix7-agent: wrongly depends on libxml2
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: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-05 20:30 UTC by Alan Somers
Modified: 2025-06-06 16:55 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 Alan Somers freebsd_committer freebsd_triage 2025-06-05 20:30:43 UTC
zabbix7-server requires libxml2.  However, its USE_GNOME directive wrongly leaks through to the zabbix7-agent's Makefile.  The agent doesn't actually use this library.  None of its binaries link to libxml2.

USE_GNOME=libxml2 should be removed from the agent build.  It should probably also be removed from zabbix6-agent and zabbix72-agent , but I haven't personally checked those.
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-06-06 12:05:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9d3d924c73083952a585387eff19079d0a90fbb7

commit 9d3d924c73083952a585387eff19079d0a90fbb7
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-06-06 11:16:15 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-06-06 12:04:16 +0000

    net-mgmt/zabbix5-agent: Do not depend on libxml2

    Do not depend on libxml2, it's not being used in agent.
    Move libxml2 dependency to only server and proxy builds.

    PR:             287330

 net-mgmt/zabbix5-agent/Makefile  | 1 +
 net-mgmt/zabbix5-server/Makefile | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-06-06 12:05:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b0bf0e7d2a2d305a0e987c5bfc215bbb54513b7

commit 5b0bf0e7d2a2d305a0e987c5bfc215bbb54513b7
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-06-06 11:18:19 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-06-06 12:04:17 +0000

    net-mgmt/zabbix72-agent: Do not depend on libxml2

    Do not depend on libxml2, it's not being used in agent.
    Move libxml2 dependency to only server and proxy builds.

    PR:             287330

 net-mgmt/zabbix72-agent/Makefile  |  2 +-
 net-mgmt/zabbix72-server/Makefile | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-06-06 12:05:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=771b30447c4b550907438b378cae34d8cc24cd10

commit 771b30447c4b550907438b378cae34d8cc24cd10
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-06-06 11:18:03 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-06-06 12:04:17 +0000

    net-mgmt/zabbix7-agent: Do not depend on libxml2

    Do not depend on libxml2, it's not being used in agent.
    Move libxml2 dependency to only server and proxy builds.

    PR:             287330

 net-mgmt/zabbix7-agent/Makefile  |  2 +-
 net-mgmt/zabbix7-server/Makefile | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-06-06 12:05:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=700da7c5495f141493a25e7d1c7324d76d91f04d

commit 700da7c5495f141493a25e7d1c7324d76d91f04d
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-06-06 11:17:34 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-06-06 12:04:16 +0000

    net-mgmt/zabbix6-agent: Do not depend on libxml2

    Do not depend on libxml2, it's not being used in agent.
    Move libxml2 dependency to only server and proxy builds.

    PR:             287330

 net-mgmt/zabbix6-agent/Makefile  |  2 +-
 net-mgmt/zabbix6-server/Makefile | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
Comment 5 Juraj Lutter freebsd_committer freebsd_triage 2025-06-06 16:16:31 UTC
Committed, thanks.
Comment 6 Alan Somers freebsd_committer freebsd_triage 2025-06-06 16:55:47 UTC
Thanks for the fix!