diff options
| author | Changqing Li <changqing.li@windriver.com> | 2024-03-05 14:34:43 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-03-05 11:02:03 -0800 |
| commit | f88e5b146e0fd4f6d79423d6718e4875643c4ba8 (patch) | |
| tree | 49c2dd4bfe126d09ee26f2866931075e04ec3da6 /meta-oe/recipes-dbs/postgresql/postgresql.inc | |
| parent | 0d9351e9290f6750e44ab52536bbe9268d5afac3 (diff) | |
| download | meta-openembedded-f88e5b146e0fd4f6d79423d6718e4875643c4ba8.tar.gz | |
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>
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/postgresql.inc')
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 15ecdeeb2e..868a2e443c 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
| @@ -54,7 +54,7 @@ pkg_postinst:${PN} () { | |||
| 54 | 54 | ||
| 55 | PACKAGECONFIG ??= " \ | 55 | PACKAGECONFIG ??= " \ |
| 56 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ | 56 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ |
| 57 | openssl python uuid libxml tcl perl zlib \ | 57 | openssl python uuid libxml tcl perl zlib icu \ |
| 58 | " | 58 | " |
| 59 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," | 59 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," |
| 60 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" | 60 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" |
| @@ -69,6 +69,7 @@ PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt" | |||
| 69 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | 69 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 70 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" | 70 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" |
| 71 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" | 71 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" |
| 72 | PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu" | ||
| 72 | 73 | ||
| 73 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ | 74 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ |
| 74 | --datadir=${datadir}/${BPN} \ | 75 | --datadir=${datadir}/${BPN} \ |
| @@ -229,6 +230,16 @@ do_install:append() { | |||
| 229 | SSTATE_SCAN_FILES += "Makefile.global" | 230 | SSTATE_SCAN_FILES += "Makefile.global" |
| 230 | SSTATE_SCAN_FILES:remove = "*_config" | 231 | SSTATE_SCAN_FILES:remove = "*_config" |
| 231 | 232 | ||
| 233 | postgresql_fix_sources () { | ||
| 234 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \ | ||
| 235 | ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do | ||
| 236 | if [ -e $f ]; then | ||
| 237 | sed -i -e 's#${B}/../${P}#${TARGET_DBGSRC_DIR}#g' $f | ||
| 238 | fi | ||
| 239 | done | ||
| 240 | } | ||
| 241 | PACKAGESPLITFUNCS =+ "postgresql_fix_sources" | ||
| 242 | |||
| 232 | PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ | 243 | PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ |
| 233 | libecpg-compat libecpg-compat-dev \ | 244 | libecpg-compat libecpg-compat-dev \ |
| 234 | libecpg libecpg-dev libecpg-staticdev libecpg-doc \ | 245 | libecpg libecpg-dev libecpg-staticdev libecpg-doc \ |
