mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
postgresql: upgrade 15.5 -> 16.2
License-Update: Update lincense year to 2024 In version 16.2, ICU support is enabled by default, add PACKAGECONFIG icu to align with upstream, enable icu by default. And fix buildpaths QA warning. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -54,7 +54,7 @@ pkg_postinst:${PN} () {
|
||||
|
||||
PACKAGECONFIG ??= " \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \
|
||||
openssl python uuid libxml tcl perl zlib \
|
||||
openssl python uuid libxml tcl perl zlib icu \
|
||||
"
|
||||
PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native,"
|
||||
PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl"
|
||||
@@ -69,6 +69,7 @@ PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt"
|
||||
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
|
||||
PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4"
|
||||
PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl"
|
||||
PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu"
|
||||
|
||||
EXTRA_OECONF += "--enable-thread-safety --disable-rpath \
|
||||
--datadir=${datadir}/${BPN} \
|
||||
@@ -229,6 +230,16 @@ do_install:append() {
|
||||
SSTATE_SCAN_FILES += "Makefile.global"
|
||||
SSTATE_SCAN_FILES:remove = "*_config"
|
||||
|
||||
postgresql_fix_sources () {
|
||||
for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do
|
||||
if [ -e $f ]; then
|
||||
sed -i -e 's#${B}/../${P}#${TARGET_DBGSRC_DIR}#g' $f
|
||||
fi
|
||||
done
|
||||
}
|
||||
PACKAGESPLITFUNCS =+ "postgresql_fix_sources"
|
||||
|
||||
PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
|
||||
libecpg-compat libecpg-compat-dev \
|
||||
libecpg libecpg-dev libecpg-staticdev libecpg-doc \
|
||||
|
||||
Reference in New Issue
Block a user