diff mbox series

[meta-networking] pgpool2: Do not embed recipe sysroot libdir in pgpool_setup

Message ID 20261112015219.3610805-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-networking] pgpool2: Do not embed recipe sysroot libdir in pgpool_setup | expand

Commit Message

Khem Raj Nov. 12, 2026, 1:52 a.m. UTC
configure takes PGSQL_LIB_DIR from pg_config, which points into the
recipe sysroot. The pgpool_setup script uses it as its default
LD_LIBRARY_PATH, triggering the buildpaths QA error:

File /usr/bin/pgpool_setup in package pgpool2 contains reference to TMPDIR [buildpaths]

Override PGSQL_LIB_DIR with ${libdir} at make time. The link flags use
the configure-substituted @PGSQL_LIB_DIR@, so linking against libpq in
the sysroot is unaffected; only the generated scripts pick up the
override.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
index d5f1f75d4e..4fb9a18db7 100644
--- a/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
+++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
@@ -35,6 +35,10 @@  PACKAGECONFIG[postgresql] = "--with-pgsql-includedir=${STAGING_INCDIR}/postgresq
 EXTRA_OECONF += "--disable-static \
 	         --disable-rpath \
 	        "
+
+# Use the target libdir in pgpool_setup instead of the recipe sysroot one
+EXTRA_OEMAKE += "PGSQL_LIB_DIR=${libdir}"
+
 FILES:${PN} += "${datadir}/pgpool-II/ "

 do_configure:append() {