kumquat-buildroot/package/php/Config.in
Fabrice Fontaine 37ac285cc1 package/php: add BR2_PACKAGE_PHP_ARCH_SUPPORTS
fiber (https://wiki.php.net/rfc/fibers) has been added in version 8.1.0
with
c276c16b66

fiber uses asm on supported architectures or needs ucontext since
8fd747a2a0

As result, the following build failure is raised without ucontext_t on
architectures not supported by asm since bump to version 8.1.7 in commit
0ddfece7f7:

/home/giuliobenetti/autobuild/run/instance-3/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: Zend/zend_fibers.o: in function `zend_fiber_init_context':
zend_fibers.c:(.text+0x68a): undefined reference to `getcontext'

As fiber can't be disabled (only fiber-asm), add
BR2_PACKAGE_PHP_ARCH_SUPPORTS to reflect this new dependency

Fixes:
 - http://autobuild.buildroot.org/results/f4077bae8f879828e343475318cd2ddb99e09ba4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-07-23 21:10:45 +02:00

71 lines
1.8 KiB
Plaintext

config BR2_PACKAGE_PHP_ARCH_SUPPORTS
bool
# see fiber_cpu in configure.ac
default y if BR2_aarch64 || BR2_aarch64_be
default y if BR2_arm || BR2_armeb
default y if BR2_i386 || BR2_x86_64
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
default y if BR2_RISCV_64
default y if BR2_s390x
default y if BR2_TOOLCHAIN_HAS_UCONTEXT
config BR2_PACKAGE_PHP
bool "php"
depends on BR2_PACKAGE_PHP_ARCH_SUPPORTS
# PHP uses -export-dynamic, which breaks with elf2flt with a
# message like "ld.real: section .junk LMA [...,...] overlaps
# section .text LMA [...,...]"
depends on !BR2_BINFMT_FLAT
depends on BR2_USE_WCHAR
select BR2_PACKAGE_PHP_SAPI_CGI if \
!BR2_PACKAGE_PHP_SAPI_APACHE && \
!BR2_PACKAGE_PHP_SAPI_CLI && \
!BR2_PACKAGE_PHP_SAPI_FPM && \
BR2_USE_MMU
select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
select BR2_PACKAGE_PCRE2
help
PHP is a widely-used general-purpose scripting
language that is especially suited for Web development
and can be embedded into HTML.
http://www.php.net
if BR2_PACKAGE_PHP
config BR2_PACKAGE_PHP_SAPI_APACHE
bool "Apache interface"
depends on BR2_PACKAGE_APACHE
help
Apache module
config BR2_PACKAGE_PHP_SAPI_CGI
bool "CGI interface"
# CGI uses fork()
depends on BR2_USE_MMU
help
Common Gateway Interface
config BR2_PACKAGE_PHP_SAPI_CLI
bool "CLI interface"
help
Command Line Interface
config BR2_PACKAGE_PHP_SAPI_FPM
bool "FPM interface"
depends on BR2_USE_MMU
# "Sparc v8 and predecessors are not and will not be supported"
depends on !BR2_sparc
help
PHP-FPM (FastCGI Process Manager)
source "package/php/Config.ext"
endif
comment "php needs a toolchain w/ wchar"
depends on BR2_PACKAGE_PHP_ARCH_SUPPORTS
depends on !BR2_BINFMT_FLAT
depends on !BR2_USE_WCHAR