From e139c3692580e40aff8e54672bc585ed2b79a67e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 30 May 2026 19:30:22 +0200 Subject: [PATCH] package/php: propagate postgresql dependencies properly Commit 9e7172ceac1e93a7167031a50edbff813c4b4774 bumped postgresql and had to disable postgresql on Sparc. This dependency was unfortunately not properly propagated to BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL, causing the following Kconfig warning: WARNING: unmet direct dependencies detected for BR2_PACKAGE_POSTGRESQL Depends on [n]: BR2_USE_MMU [=y] && !BR2_sparc [=y] && BR2_USE_WCHAR [=y] && BR2_ENABLE_LOCALE [=y] && BR2_TOOLCHAIN_HAS_THREADS_NPTL [=y] && !BR2_STATIC_LIBS [=n] && !BR2_OPTIMIZE_FAST [=n] Selected by [y]: - BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL [=y] && BR2_PACKAGE_PHP [=y] && BR2_PACKAGE_PHP_EXT_PDO [=y] && BR2_USE_MMU [=y] && BR2_USE_WCHAR [=y] && BR2_ENABLE_LOCALE [=y] && BR2_TOOLCHAIN_HAS_THREADS_NPTL [=y] && !BR2_STATIC_LIBS [=n] && !BR2_OPTIMIZE_FAST [=n] We fix this by properly propagating the dependency. Signed-off-by: Thomas Petazzoni --- package/php/Config.ext | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/php/Config.ext b/package/php/Config.ext index 8948ff3484..c96ce5f34a 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -169,6 +169,7 @@ config BR2_PACKAGE_PHP_EXT_PDO_MYSQL config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL bool "PostgreSQL" depends on BR2_USE_MMU # postgresql + depends on !BR2_sparc # postgresql depends on BR2_USE_WCHAR # postgresql depends on BR2_ENABLE_LOCALE # postgresql depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # postgresql @@ -180,6 +181,7 @@ config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL comment "PostgreSQL drivers need a toolchain w/ wchar, dynamic library" depends on BR2_USE_MMU + depends on !BR2_sparc depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR comment "PostgreSQL drivers can't be built with Optimize for fast"