summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch12
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch18
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql.inc9
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql_17.4.bb (renamed from meta-oe/recipes-dbs/postgresql/postgresql_16.8.bb)2
4 files changed, 23 insertions, 18 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
index 9584cfcb16..92ac335a7b 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
@@ -1,7 +1,7 @@
1From 30b1b37d309f67ba6d58f2197bd917107bc7d56c Mon Sep 17 00:00:00 2001 1From 5ce7d8398f6aff41eee8c8c80eeaad2fcb3da1fc Mon Sep 17 00:00:00 2001
2From: Yi Fan Yu <yifan.yu@windriver.com> 2From: Yi Fan Yu <yifan.yu@windriver.com>
3Date: Fri, 5 Feb 2021 17:15:42 -0500 3Date: Fri, 5 Feb 2021 17:15:42 -0500
4Subject: [PATCH 3/5] configure.ac: bypass autoconf 2.69 version check 4Subject: [PATCH] configure.ac: bypass autoconf 2.69 version check
5 5
6for upgrade to autoconf 2.71 6for upgrade to autoconf 2.71
7 7
@@ -13,20 +13,20 @@ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
13 1 file changed, 4 deletions(-) 13 1 file changed, 4 deletions(-)
14 14
15diff --git a/configure.ac b/configure.ac 15diff --git a/configure.ac b/configure.ac
16index df61ab4..b795f8c 100644 16index a8a61c5..27c2760 100644
17--- a/configure.ac 17--- a/configure.ac
18+++ b/configure.ac 18+++ b/configure.ac
19@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros 19@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
20 20
21 AC_INIT([PostgreSQL], [16.8], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) 21 AC_INIT([PostgreSQL], [17.4], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])
22 22
23-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required. 23-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
24-Untested combinations of 'autoconf' and PostgreSQL versions are not 24-Untested combinations of 'autoconf' and PostgreSQL versions are not
25-recommended. You can remove the check from 'configure.ac' but it is then 25-recommended. You can remove the check from 'configure.ac' but it is then
26-your responsibility whether the result works or not.])]) 26-your responsibility whether the result works or not.])])
27 AC_COPYRIGHT([Copyright (c) 1996-2023, PostgreSQL Global Development Group]) 27 AC_COPYRIGHT([Copyright (c) 1996-2024, PostgreSQL Global Development Group])
28 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) 28 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
29 AC_CONFIG_AUX_DIR(config) 29 AC_CONFIG_AUX_DIR(config)
30-- 30--
312.40.0 312.34.1
32 32
diff --git a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
index af36da4927..8219fc80e9 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
@@ -1,7 +1,7 @@
1From 1a8b94140988d2ee5ff987b0bb3e7c3e936b8c01 Mon Sep 17 00:00:00 2001 1From d1fb37569b5a8c21968f69164e8bc6e4bb0185eb Mon Sep 17 00:00:00 2001
2From: Manoj Saun <manojsingh.saun@windriver.com> 2From: Manoj Saun <manojsingh.saun@windriver.com>
3Date: Wed, 22 Mar 2023 08:07:26 +0000 3Date: Wed, 22 Mar 2023 08:07:26 +0000
4Subject: [PATCH 5/5] postgresql: fix ptest failure of sysviews 4Subject: [PATCH] postgresql: fix ptest failure of sysviews
5 5
6The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info 6The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info
7in pg_config table which reduces the count of rows from pg_config and leads to 7in pg_config table which reduces the count of rows from pg_config and leads to
@@ -19,12 +19,12 @@ Signed-off-by: Manoj Saun <manojsingh.saun@windriver.com>
19 2 files changed, 2 insertions(+), 2 deletions(-) 19 2 files changed, 2 insertions(+), 2 deletions(-)
20 20
21diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out 21diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out
22index 001c6e7..8256898 100644 22index 2176a54..a84bc27 100644
23--- a/src/test/regress/expected/sysviews.out 23--- a/src/test/regress/expected/sysviews.out
24+++ b/src/test/regress/expected/sysviews.out 24+++ b/src/test/regress/expected/sysviews.out
25@@ -29,7 +29,7 @@ select name, ident, parent, level, total_bytes >= free_bytes 25@@ -52,7 +52,7 @@ from pg_backend_memory_contexts where name = 'Caller tuples';
26 (1 row)
27 26
27 rollback;
28 -- At introduction, pg_config had 23 entries; it may grow 28 -- At introduction, pg_config had 23 entries; it may grow
29-select count(*) > 20 as ok from pg_config; 29-select count(*) > 20 as ok from pg_config;
30+select count(*) > 13 as ok from pg_config; 30+select count(*) > 13 as ok from pg_config;
@@ -32,11 +32,11 @@ index 001c6e7..8256898 100644
32 ---- 32 ----
33 t 33 t
34diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql 34diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql
35index 351e469..84c113e 100644 35index b047fb5..d1e3999 100644
36--- a/src/test/regress/sql/sysviews.sql 36--- a/src/test/regress/sql/sysviews.sql
37+++ b/src/test/regress/sql/sysviews.sql 37+++ b/src/test/regress/sql/sysviews.sql
38@@ -18,7 +18,7 @@ select name, ident, parent, level, total_bytes >= free_bytes 38@@ -33,7 +33,7 @@ from pg_backend_memory_contexts where name = 'Caller tuples';
39 from pg_backend_memory_contexts where level = 0; 39 rollback;
40 40
41 -- At introduction, pg_config had 23 entries; it may grow 41 -- At introduction, pg_config had 23 entries; it may grow
42-select count(*) > 20 as ok from pg_config; 42-select count(*) > 20 as ok from pg_config;
@@ -45,5 +45,5 @@ index 351e469..84c113e 100644
45 -- We expect no cursors in this test; see also portals.sql 45 -- We expect no cursors in this test; see also portals.sql
46 select count(*) = 0 as ok from pg_cursors; 46 select count(*) = 0 as ok from pg_cursors;
47-- 47--
482.25.1 482.34.1
49 49
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index e19f2f48e2..7bbcaca443 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -19,7 +19,7 @@ DESCRIPTION = "\
19" 19"
20HOMEPAGE = "http://www.postgresql.com" 20HOMEPAGE = "http://www.postgresql.com"
21LICENSE = "0BSD" 21LICENSE = "0BSD"
22DEPENDS = "libnsl2 tzcode-native perl" 22DEPENDS = "libnsl2 tzcode-native perl bison-native"
23 23
24ARM_INSTRUCTION_SET = "arm" 24ARM_INSTRUCTION_SET = "arm"
25 25
@@ -73,7 +73,7 @@ PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl
73PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu" 73PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu"
74PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" 74PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
75 75
76EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ 76EXTRA_OECONF += "--disable-rpath \
77 --datadir=${datadir}/${BPN} \ 77 --datadir=${datadir}/${BPN} \
78 --sysconfdir=${sysconfdir}/${BPN} \ 78 --sysconfdir=${sysconfdir}/${BPN} \
79" 79"
@@ -175,6 +175,11 @@ do_configure() {
175 175
176do_compile:append() { 176do_compile:append() {
177 oe_runmake -C contrib all 177 oe_runmake -C contrib all
178
179 for f in `find ${B} -name "*.[c|h]"`;
180 do
181 sed -i -e 's,${B}/../,,' $f
182 done
178} 183}
179 184
180# server needs to configure user and group 185# server needs to configure user and group
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_16.8.bb b/meta-oe/recipes-dbs/postgresql/postgresql_17.4.bb
index 0843d90750..b1c95ed244 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql_16.8.bb
+++ b/meta-oe/recipes-dbs/postgresql/postgresql_17.4.bb
@@ -12,6 +12,6 @@ SRC_URI += "\
12 file://0001-tcl.m4-Recognize-tclsh9.patch \ 12 file://0001-tcl.m4-Recognize-tclsh9.patch \
13" 13"
14 14
15SRC_URI[sha256sum] = "9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8" 15SRC_URI[sha256sum] = "c4605b73fea11963406699f949b966e5d173a7ee0ccaef8938dec0ca8a995fe7"
16 16
17CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Ddoesn't apply to out configuration of postgresql so we can safely ignore it." 17CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Ddoesn't apply to out configuration of postgresql so we can safely ignore it."