Skip to content

zabbix: fix zabbix symbols in config without zabbix#28710

Open
danielfdickinson wants to merge 3 commits intoopenwrt:masterfrom
danielfdickinson:pr-fix-zabbix-symbols-in-config-without-zabbix
Open

zabbix: fix zabbix symbols in config without zabbix#28710
danielfdickinson wants to merge 3 commits intoopenwrt:masterfrom
danielfdickinson:pr-fix-zabbix-symbols-in-config-without-zabbix

Conversation

@danielfdickinson
Copy link
Contributor

@danielfdickinson danielfdickinson commented Mar 8, 2026

📦 Package Details

Maintainer: @danielfdickinson

Description:
As reported in #28709, CONFIG_ZABBIX_...=y
symbols appear in .config even when no zabbix packages are selected. We fix
this by creating an a new symbol ZABBIX_ENABLE_ZABBIX that all other zabbix packages
DEPENDS on, and we add `depends ZABBIX_ENABLE_ZABBIX to the menus and choices that
generate CONFIG_ZABBIX_... symbols.

As this should not affect runtime packages, I have not bumped PKG_RELEASE

Also tweak whitespace in Config.in


Compile-tested and image created as not a runtime-affecting change.

Built SDK and ImageBuilder using today's OpenWrt main branch, and built new Zabbix packages using that SDK. Generated test images with my standard sets of test Zabbix packages using the built ImageBuilder.

Note: The SNAPSHOT SDK's from downloads.openwrt.org have the problematic ZABBIX symbols in Config-build.in, so you cannot verify this fix using the pre-built SDKs.


✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

@danielfdickinson
Copy link
Contributor Author

@feckert Could you verify this works for you?

@hnyman
Copy link
Contributor

hnyman commented Mar 14, 2026

Zabbix causes only 16 lines to .config when no selected.
Seems like overkill to introduce a useless empty pseudo-package for hiding those.
I would rather live the 16 lines...

So i would drop this PR.

Based on openwrt#28709 (comment)
it has been noted that the number config.in files was high compared to actual
config selections.

Therefore move smaller selection back into the Makefile. They are still kept
with the most appropriate package which they configure.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
This seems to be more standard for Config.in.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
As noted in openwrt#28709 OpenWrt  contains CONFIG_
symbols for Zabbix even when no Zabbix package is selected.
This fixes and Closes openwrt#28709.

We add a 'guard' symbol for the menus and choices so the only
generate CONFIG symbols when 'Enable Zabbix'
(CONFIG_ZABBIX_ENABLE_ZABBIX) is selected.

We also make all the Zabbix packages depend on this symbol,
for consistency.

This operates much as the pseudo-package solution, but without
a pseudo-package required.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
@danielfdickinson danielfdickinson force-pushed the pr-fix-zabbix-symbols-in-config-without-zabbix branch from 83e1904 to 7126412 Compare March 16, 2026 08:10
@feckert
Copy link
Member

feckert commented Mar 16, 2026

LGTM

@feckert
Copy link
Member

feckert commented Mar 16, 2026

@hnyman What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants