summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/postgresql
Commit message (Collapse)AuthorAgeFilesLines
* postgresql: upgrade 14.17 -> 14.18Yogita Urade2025-07-022-3/+3
| | | | | | | | | | | | | Upgrade includes fix for CVE-2025-4207 Release notes: https://www.postgresql.org/docs/release/14.18/ 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for 14.18 Signed-off-by: Yogita Urade <yogita.urade@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: upgrade 14.14 -> 14.17Vijay Anusuri2025-03-062-3/+3
| | | | | | | | | | | | | | | License-Update: Update license year to 2025 Includes fix for CVE-2025-1094 Changelog: https://www.postgresql.org/docs/release/14.17/ Refreshed 0003-configure.ac-bypass-autoconf-2.69-version-check.patch for 14.17 Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: upgrade 14.13 -> 14.14Yogita Urade2024-12-312-4/+5
| | | | | | | | | | | | | Includes fix for CVE-2024-10976, CVE-2024-10977, CVE-2024-10978 and CVE-2024-10979 Changelog: https://www.postgresql.org/docs/release/14.14/ 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for 14.14 Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
* postgresql: upgrade 14.11 -> 14.13Vijay Anusuri2024-08-252-3/+3
| | | | | | | | | | | | | | Addresses CVEs CVE-2024-4317 & CVE-2024-7348 and other bug fixes. Release notes are available at: https://www.postgresql.org/docs/release/14.13/ https://www.postgresql.org/docs/release/14.12/ 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for new version. Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: Upgrade to 14.11Soumya Sambu2024-03-255-535/+5
| | | | | | | | | | | | | | | | Addresses CVEs and other bug fixes. Remove patches that are fixed in this release. Release notes are available at: https://www.postgresql.org/docs/release/14.10/ https://www.postgresql.org/docs/release/14.11/ 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for new version. License-Update: Copyright year updated Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: fix CVE-2023-5868 CVE-2023-5869 CVE-2023-5870Yogita Urade2023-12-134-0/+530
| | | | | | | | | | | | | | | | | | | | | | CVE-2023-5868: postgresql: Compute aggregate argument types correctly in transformAggregateCall() CVE-2023-5869: postgresql: Detect integer overflow while computing new array dimensions CVE-2023-5870: postgresql: Ban role pg_signal_backend from more superuser backend types. References: https://nvd.nist.gov/vuln/detail/CVE-2023-5868 https://nvd.nist.gov/vuln/detail/CVE-2023-5869 https://nvd.nist.gov/vuln/detail/CVE-2023-5870 Signed-off-by: Yogita Urade <yogita.urade@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: Update to 14.9Robert Joslyn2023-08-3011-479/+31
| | | | | | | | | | | | | | | | | This is a minor release to address CVEs and other bug fixes without new features. Remove patches that are fixed in this release. Release notes are available at: https://www.postgresql.org/docs/release/14.6/ https://www.postgresql.org/docs/release/14.7/ https://www.postgresql.org/docs/release/14.8/ https://www.postgresql.org/docs/release/14.9/ License-Update: Copyright year updated Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> [Fixup patch fuzzy] Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: fix CVE-2023-2454 & CVE-2023-2455vkumbhar2023-06-233-0/+355
| | | | | | | | | fixed Below security CVE: 1)CVE-2023-2454 postgresql: schema_element defeats protective search_path changes. 2)CVE-2023-2455 postgresql: row security policies disregard user ID changes after inlining. Signed-off-by: Vivek Kumbhar <vkumbhar@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: fix ptest failure of sysviews testManoj Saun2023-04-132-0/+43
| | | | | | | | | | | In postgresql sysview ptest are failing due to hidden debug info in pg_config table. The information is hidden due to existing patch 0001-config_info.c-not-expose-build-info.patch So for passing the test we need to reduce the row count in the sysviews test. Also for test results to be shown as pass we need to reduce the row count for the expected count in the sysviews.out file. Signed-off-by: Manoj Saun <manojsingh.saun@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: fix CVE-2022-41862Changqing Li2023-03-052-0/+51
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgreql: Fix pg_config not working after buildpaths patchSteffen Olsen2022-09-221-1/+10
| | | | | | | | | | | The patch for removing 'QA issues' with pg_config was incomplete, it did not change the number of items supposed to be in the configdata stucture. This leads to get_configdata function asserting, and pg_config command does not work Signed-off-by: Steffen Olsen <steffen.olsen@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 730c85613ec718919bc0d155addfb9a20af112ad) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: upgrade 14.4 -> 14.5Wang Mingyu2022-09-222-4/+4
| | | | | | | | | | 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for new version. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit c484ec130065705a1b63462bd9c6aa4d480545c2) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: make sure pam conf installed when pam enabledMingli Yu2022-09-151-1/+1
| | | | | | | | | | | | | | | | | | Update the pam check logic to make sure pam conf installed. Before the patch: root@intel-x86-64:~# rpm -ql postgresql | grep pam.d | grep postgresql root@intel-x86-64:~# After the patch: root@intel-x86-64:~# rpm -ql postgresql | grep pam.d | grep postgresql /etc/pam.d/postgresql root@intel-x86-64:~# Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit a755af4fb5ca2e158b00214bb18e27ba69c200fd) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: Fix the buildpaths issueMingli Yu2022-08-073-0/+119
| | | | | | | | | | | | | | | | Fixes: WARNING: postgresql-14.4-r0 do_package_qa: QA Issue: File /usr/bin/postgres in package postgresql contains reference to TMPDIR File /usr/bin/pg_config in package postgresql contains reference to TMPDIR [buildpaths] WARNING: postgresql-14.4-r0 do_package_qa: QA Issue: File /usr/include/pg_config.h in package libpq-dev contains reference to TMPDIR [buildpaths] WARNING: postgresql-14.4-r0 do_package_qa: QA Issue: File /usr/include/postgresql/server/pg_config.h in package postgresql-server-dev contains reference to TMPDIR File /usr/lib/postgresql/pgxs/src/Makefile.global in package postgresql-server-dev contains reference to TMPDIR [buildpaths] WARNING: postgresql-14.4-r0 do_package_qa: QA Issue: File /usr/lib/libpgcommon.a in package postgresql-staticdev contains reference to TMPDIR File /usr/lib/libpgcommon_shlib.a in package postgresql-staticdev contains reference to TMPDIR [buildpaths] Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 59eff6269c4f4c150d976054d585872c92f20207) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: ignore unrelated CVEDavide Gardenal2022-07-211-0/+4
| | | | | | | | | | CVE-2017-8806 doesn't apply to out configuration of postgresql so we can safely ignore it. Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit de4097f2304b2031265173c7d09aa1a2e983b81c) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: upgrade 14.3 -> 14.4wangmy2022-07-042-4/+4
| | | | | | | | | | 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for new version. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit a9db38fa9a1fc50eca653816a7bfeda0251f0b6b) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postgresql: upgrade 14.2 -> 14.3wangmy2022-05-302-4/+4
| | | | | | | | | | 0001-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for new version. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit b3aa90d11d0b6dbf705a0ed08d256e4980766902) Signed-off-by: Armin Kuster <akuster808@gmail.com>
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 14.1 -> 14.2Zheng Ruoqin2022-02-232-8/+6
| | | | | | | | refresh 0001-configure.ac-bypass-autoconf-2.69-version-check.patch License-Update: year updated to 2022 Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Fix build on riscvKhem Raj2022-01-252-0/+39
| | | | | | Remove duplicate code Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Update to 14.1Robert Joslyn2022-01-188-286/+57
| | | | | | | | | | | | | | | | | | | | | | | | Refresh patches, since upstream moved from configure.in to configure.ac. Remove CVE backports that no longer apply to the new version. Update SRC_URI to use https. Upstream redirects http to https anyway. Rework PACKAGECONFIG: * Reorder PACKAGECONFIG to be the same as the `./configure --help` output to make future updates easier. * Move zlib to a PACKAGECONFIG. Upstream enables it by default, so keep it enabled to preserve existing behavior. * Add PACKAGECONFIGs for ldap, systemd, gssapi, xslt, and lz4 * Update openssl to use `--with-ssl=openssl` because the `--with-openssl` form is deprecated. * Remove the nls config because gettext.bbclass already appends the desired option to EXTRA_OECONF based on the value of USE_NLS. Enable spinlocks on aarch64. Support was added in version 9.2.5 and should provide much better performance. Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: fix CVE-2021-23214,CVE-2021-23222Changqing Li2021-12-233-0/+249
| | | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 13.3 -> 13.4Changqing Li2021-09-142-4/+9
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-56/+56
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* postgresql: upgrade 13.2 -> 13.3zangrc2021-05-192-2/+2
| | | | | | | | Refresh the following patch: 0001-configure.in-bypass-autoconf-2.69-version-check.patch Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 13.1 -> 13.2zhengruoqin2021-02-225-26/+6
| | | | | | | | | | | | | | | -License-Update: Copyright year updated to 2021. Upgrade patches to fix ERROR: postgresql-13.2-r0 do_patch: Fuzz detected: Applying patch 0001-configure.in-bypass-autoconf-2.69-version-check.patch patching file configure.in Hunk #1 succeeded at 19 with fuzz 2. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: bypass autoconf version checkYi Fan Yu2021-02-052-0/+33
| | | | | | | allowing autoconf to be upgraded 2.69->2.71. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 12.4 -> 13.1changqing.li@windriver.com2020-12-292-10/+12
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Use /dev/urandom when openssl is not usedKhem Raj2020-12-231-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Inherit python3targetconfigKhem Raj2020-11-171-1/+1
| | | | | | | | | | it now ends up searching native python shared libraries and tries to link with it and fails on non-host architectures recipe-sysroot-native/usr/lib/libpython3.9.so: file not recognized: file format not recognized collect2: error: ld returned 1 exit status Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Update to 12.4Robert Joslyn2020-09-122-5/+2
| | | | | | | | | createlang, droplang, and the tsearch2 module were all removed in the 10.0 release. More details are in the release notes: https://www.postgresql.org/docs/10/release-10.html Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: remove vacuumlo from contribKonrad Weihmann2020-07-061-1/+1
| | | | | | | as it is already packaged in client package Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: 12.2 -> 12.3Wang Mingyu2020-06-053-53/+2
| | | | | | | | 0001-Use-pkg-config-for-libxml2-detection.patch removed since it is not available in 12.3 Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: 12.1 -> 12.2Wang Mingyu2020-03-132-12/+12
| | | | | | | -License-Update: Copyright year updated to 2020. Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Add python3 to dependsKhem Raj2020-01-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: Remove using python2Khem Raj2020-01-221-1/+1
| | | | | | | This change makes the parsing go though, we still might have build issues, which will be reported in world builds seprately Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: 12.0 -> 12.1Wang Mingyu2019-12-051-2/+2
| | | | | Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 11.5 -> 12.0Zheng Ruoqin2019-11-072-7/+11
| | | | | | | Update 0001-Use-pkg-config-for-libxml2-detection.patch for new version. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Clarify BSD license variantChristophe PRIOUZEAU2019-10-251-1/+1
| | | | | | | The License of postgresql is BSD-0-Clause. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: 11.4 -> 11.5Changqing Li2019-09-021-2/+2
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 11.3 -> 11.4Zang Ruochen2019-07-101-2/+2
| | | | | | | -Upgrade from postgresql_11.3.bb to postgresql_11.4.bb. Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: improve reproducibilityHongxu Jia2019-06-153-1/+43
| | | | | | | | | | | | | | | | | | | - Make pg_config not record var-CC, var-CFLAGS, and configure which contains build paths - Split pgxs in which Makefile.global contains build path from package postgresql to postgresql-server-dev, it refers ubuntu Here is we got from Ubuntu 18.04 $ dpkg -c /var/cache/apt/archives/postgresql-server-dev-10_10.8-0ubuntu0.18.04.1_amd64.deb -rwxr-xr-x root/root 30792 2019-05-07 17:20 ./usr/lib/postgresql/10/bin/pg_config drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/config/ drwxr-xr-x root/root 0 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/src/ -rw-r--r-- root/root 31309 2019-05-07 17:20 ./usr/lib/postgresql/10/lib/pgxs/src/Makefile.global Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Upgrade 11.2 -> 11.3Adrian Bunk2019-05-101-2/+2
| | | | | Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: fix compile errorChangqing Li2019-05-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration: MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips" DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32" require conf/multilib.conf SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}" DEBUG_BUILD = "1" EXTRA_IMAGE_FEATURES += "dbg-pkgs" with above configuration and option -Og, postgresql compile failed with: | make[4]: Nothing to be done for 'all'. | make[4]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/fe_utils' | {standard input}: Assembler messages: | {standard input}:58887: Error: branch out of range | <builtin>: recipe for target 'tab-complete.o' failed | make[3]: *** [tab-complete.o] Error 1 | make[3]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/bin/psql' | Makefile:41: recipe for target 'all-psql-recurse' failed | make[2]: *** [all-psql-recurse] Error 2 replace -Og with -O to fix this error Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Fix build for RISC-VKhem Raj2019-03-152-0/+42
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade 1.11.1 -> 1.11.2Changqing Li2019-02-222-10/+10
| | | | | | | License-Update: Copyright Year Update Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Update the regex to determine PGMAJORVERSION to match v10+ ↵Akram Hameed2019-01-151-2/+2
| | | | | | | | database clusters Older versions of postgresql would generate MAJVER.MINVER in new clusters. 10+ do not. Update the regex to determine PGMAJORVERSION as a single int. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: correctly build against target perlAlexander Kanavin2019-01-111-2/+6
| | | | | | | | Previously perl-native headers were erroneously included, which was causing issues with the new perl recipe. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: upgrade to 11.1Changqing Li2018-11-295-7636/+27
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postgresql: Allow successful run of postgresql-setupOtavio Salvador2018-11-262-4/+4
| | | | | | | | | | | | The postgresql-setup utility log-in on postgres user to create the database, however, the shell was set to bash and it wasn't being installed as runtime dependency. This rework this expectation to use busybox ash as shell and avoid the new dependency Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Khem Raj <raj.khem@gmail.com>