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 <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-11 18:20:14 -08:00
1 parent af05e0e2d1
commit 9f8509f420
1 file changed
+4
@@ -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() {