openwrt / openwrt/packages

php8: must build all modules or build fails

Open
#30,308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug release/24.10
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

php8

Maintainer

@mhei

OpenWrt Version

24.10.6

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce
  1. Extract SDK for 24.10-SNAPSHOT
  2. `./scripts/feeds update -a && ./scripts/feeds -install -p packages -f zabbix
  3. make menuconfig
  4. Select all Zabbix, and only top-level php8
  5. Select zabbix frontend as well
  6. make download && make
  7. PHP8 build fails with missing library
  8. Add the library and build
  9. PHP8 build fails with another missing library
  10. Add all modules and build
  11. PHP8 succeeds as does the rest of the build
Actual Behaviour

The dependencies for the modules appear to be needed by the main compile, even if the modules that require them are not selected for build (e.g. php8-mod-gmp, php8-mod-sodium, etc).

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported php8 build in the OpenWrt 24.10 SDK with only top-level php8 and the selected Zabbix packages, then inspect the php8 package and module dependency declarations alongside the build errors. Done means php8 and the selected packages build successfully without selecting every php8 module or manually adding missing libraries.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.