mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-14 03:57:15 +00:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user