[Buildroot] [PATCH 1/1] package/postgresql: add host-pkgconf dependency

Fabrice Fontaine fontaine.fabrice at gmail.com
Sat Feb 25 09:35:27 UTC 2023


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 <fontaine.fabrice at gmail.com>
---
 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 1e9e4b83df..f087c0c964 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
-- 
2.39.1




More information about the buildroot mailing list