From 5215f56e5bed387575b35de65b78d815b96ba6f3 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 25 Feb 2023 10:35:27 +0100 Subject: [PATCH] package/postgresql: add host-pkgconf dependency host-pkgconf is mandatory to find lz4 and zstd resulting in the following build failure since commit 9cd2e6e090449f9d2f371d24152580c038892f3d: configure: error: in `/home/autobuild/autobuild/instance-5/output-1/build/postgresql-15.2': configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LZ4_CFLAGS and LZ4_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Fixes: - http://autobuild.buildroot.org/results/8744277ebe9910635ef8fe290c8ba4eee420b538 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/postgresql/postgresql.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk index 5e3601cb46..a2aed9a2eb 100644 --- a/package/postgresql/postgresql.mk +++ b/package/postgresql/postgresql.mk @@ -92,14 +92,14 @@ POSTGRESQL_CONF_OPTS += --without-libxml endif ifeq ($(BR2_PACKAGE_ZSTD),y) -POSTGRESQL_DEPENDENCIES += zstd +POSTGRESQL_DEPENDENCIES += host-pkgconf zstd POSTGRESQL_CONF_OPTS += --with-zstd else POSTGRESQL_CONF_OPTS += --without-zstd endif ifeq ($(BR2_PACKAGE_LZ4),y) -POSTGRESQL_DEPENDENCIES += lz4 +POSTGRESQL_DEPENDENCIES += host-pkgconf lz4 POSTGRESQL_CONF_OPTS += --with-lz4 else POSTGRESQL_CONF_OPTS += --without-lz4