From 9f8509f42036309e28653cf91aea682fe516f060 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 11 Nov 2026 17:36:55 -0800 Subject: [PATCH] pgpool2: Do not embed recipe sysroot libdir in pgpool_setup 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 --- meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb | 4 ++++ 1 file changed, 4 insertions(+) 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() {