php8: the PHP8 compilation options are only saved if PHP8 is also built#28288
php8: the PHP8 compilation options are only saved if PHP8 is also built#28288mhei merged 2 commits intoopenwrt:masterfrom
Conversation
2d876bc to
a2db341
Compare
The php8 Makefile is already quite large. To improve readability, move config section to a separate 'Config.in' file. To ensure that the PHP8 option is only saved in '.config' if PHP8 has been selected for building. A depends on 'PACKAGE_php8' is added to the configuration option in the 'Config.in' file. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
a2db341 to
9164b83
Compare
There was a problem hiding this comment.
Pull request overview
This PR addresses an issue where PHP8 compilation options were being saved to .config even when PHP8 itself was not selected for building. The fix introduces a dependency constraint to ensure PHP8 configuration options are only displayed when the php8 package is selected.
Key changes:
- Moved PHP8 configuration options from inline Makefile definition to a separate
Config.infile - Added
depends on PACKAGE_php8constraint to the configuration menu - Updated zabbix-server-frontend dependency to prevent recursive dependency issues
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lang/php8/Makefile | Bumped PKG_RELEASE and replaced inline config with source reference to Config.in |
| lang/php8/Config.in | New file containing PHP8 configuration options with PACKAGE_php8 dependency constraint |
| admin/zabbix/Makefile | Bumped PKG_RELEASE and changed php8 dependency syntax to resolve recursive dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Only show zabbix-server-frontend if the build dependency 'PACKEGE_php8' is fulfilled. This means that 'zabbix-server-frotend' can only be selected if PHP has also been enabled for building. This change is needed to fix the following recursive dependency warning. error: recursive dependency detected! symbol PACKAGE_php8 is selected by PACKAGE_zabbix-server-frontend symbol PACKAGE_zabbix-server-frontend depends on PHP8_DOM symbol PHP8_DOM depends on PACKAGE_php8 For a resolution refer to Documentation/kbuild/kconfig-language.rst Signed-off-by: Florian Eckert <fe@dev.tdt.de>
9164b83 to
eaac456
Compare
Ups you are right. |
|
I also was not aware (anymore) that we can add a |
📦 Package Details
Maintainer: @neheb @danielfdickinson
Description:
Even if PHP8 has not been selected for building, the default PHP compile option is stored in '.config'.
That's not what I would expect. Therefore, a dependency is added that checks whether the php8 package has also been selected for building. With this change, the PHP8 compile options are only saved if they have also been selected for building. Additional, the whole thing was also moved to a 'Config.in' file to improve clarity.
This change requires the
zabbix-server-frontendto be adjusted as well. Otherwise, I get the following output when callingmake menuconf.The zabbix-server-frotend can now only be selected if PACKAGE_php8 is enabled for building.
🧪 Run Testing Details
✅ Formalities