diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2023-02-20 15:41:50 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-02-20 00:23:02 -0800 |
commit | 46304f5a870c3d8e02d1afcea83dee0f721e2a67 (patch) | |
tree | a7d58554713fd15d2511ebcf4e5ff4ad5c539c74 /meta-oe/recipes-dbs | |
parent | 8f068d3509e7e5232614ae5f1abe86a31f450bae (diff) | |
download | meta-openembedded-46304f5a870c3d8e02d1afcea83dee0f721e2a67.tar.gz |
postgresql: upgrade 14.5 -> 15.2
0001-Add-support-for-RISC-V.patch
0001-configure.ac-bypass-autoconf-2.69-version-check.patch
refreshed for 15.2.
remove_duplicate.patch
removed since it's included in 15.2.
License-Update: Copyright year updated to 2023.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch | 15 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0001-configure.ac-bypass-autoconf-2.69-version-check.patch | 10 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/remove_duplicate.patch | 38 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb (renamed from meta-oe/recipes-dbs/postgresql/postgresql_14.5.bb) | 5 |
4 files changed, 16 insertions, 52 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch index 90b741949..8ba685cfe 100644 --- a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch +++ b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch | |||
@@ -6,11 +6,11 @@ Subject: [PATCH] Add support for RISC-V. | |||
6 | The architecture is sufficiently similar to aarch64 that simply | 6 | The architecture is sufficiently similar to aarch64 that simply |
7 | extending the existing aarch64 macro works. | 7 | extending the existing aarch64 macro works. |
8 | --- | 8 | --- |
9 | src/include/storage/s_lock.h | 5 +++-- | 9 | src/include/storage/s_lock.h | 6 +++--- |
10 | 1 file changed, 3 insertions(+), 2 deletions(-) | 10 | 1 file changed, 3 insertions(+), 3 deletions(-) |
11 | 11 | ||
12 | diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h | 12 | diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h |
13 | index dccbd29..ad60429 100644 | 13 | index 4d3ffc7..22e27bf 100644 |
14 | --- a/src/include/storage/s_lock.h | 14 | --- a/src/include/storage/s_lock.h |
15 | +++ b/src/include/storage/s_lock.h | 15 | +++ b/src/include/storage/s_lock.h |
16 | @@ -317,11 +317,12 @@ tas(volatile slock_t *lock) | 16 | @@ -317,11 +317,12 @@ tas(volatile slock_t *lock) |
@@ -27,15 +27,16 @@ index dccbd29..ad60429 100644 | |||
27 | #ifdef HAVE_GCC__SYNC_INT32_TAS | 27 | #ifdef HAVE_GCC__SYNC_INT32_TAS |
28 | #define HAS_TEST_AND_SET | 28 | #define HAS_TEST_AND_SET |
29 | 29 | ||
30 | @@ -338,7 +339,7 @@ tas(volatile slock_t *lock) | 30 | @@ -355,8 +356,7 @@ spin_delay(void) |
31 | #define S_UNLOCK(lock) __sync_lock_release(lock) | ||
32 | 31 | ||
32 | #endif /* __aarch64__ || __aarch64 */ | ||
33 | #endif /* HAVE_GCC__SYNC_INT32_TAS */ | 33 | #endif /* HAVE_GCC__SYNC_INT32_TAS */ |
34 | -#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */ | 34 | -#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */ |
35 | - | ||
35 | +#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */ | 36 | +#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */ |
36 | 37 | ||
37 | 38 | /* S/390 and S/390x Linux (32- and 64-bit zSeries) */ | |
38 | /* | 39 | #if defined(__s390__) || defined(__s390x__) |
39 | -- | 40 | -- |
40 | 2.34.1 | 41 | 2.34.1 |
41 | 42 | ||
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-configure.ac-bypass-autoconf-2.69-version-check.patch b/meta-oe/recipes-dbs/postgresql/files/0001-configure.ac-bypass-autoconf-2.69-version-check.patch index 4a576d717..467b5c4f5 100644 --- a/meta-oe/recipes-dbs/postgresql/files/0001-configure.ac-bypass-autoconf-2.69-version-check.patch +++ b/meta-oe/recipes-dbs/postgresql/files/0001-configure.ac-bypass-autoconf-2.69-version-check.patch | |||
@@ -8,23 +8,25 @@ for upgrade to autoconf 2.71 | |||
8 | Upstream-Status: Inappropriate [disable feature] | 8 | Upstream-Status: Inappropriate [disable feature] |
9 | 9 | ||
10 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> | 10 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> |
11 | |||
12 | --- | 11 | --- |
13 | configure.ac | 4 ---- | 12 | configure.ac | 4 ---- |
14 | 1 file changed, 4 deletions(-) | 13 | 1 file changed, 4 deletions(-) |
15 | 14 | ||
16 | diff --git a/configure.ac b/configure.ac | 15 | diff --git a/configure.ac b/configure.ac |
17 | index ffe878e..c39799b 100644 | 16 | index 48d7256..9bee38f 100644 |
18 | --- a/configure.ac | 17 | --- a/configure.ac |
19 | +++ b/configure.ac | 18 | +++ b/configure.ac |
20 | @@ -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 |
21 | 20 | ||
22 | AC_INIT([PostgreSQL], [14.5], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) | 21 | AC_INIT([PostgreSQL], [15.2], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) |
23 | 22 | ||
24 | -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. |
25 | -Untested combinations of 'autoconf' and PostgreSQL versions are not | 24 | -Untested combinations of 'autoconf' and PostgreSQL versions are not |
26 | -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 |
27 | -your responsibility whether the result works or not.])]) | 26 | -your responsibility whether the result works or not.])]) |
28 | AC_COPYRIGHT([Copyright (c) 1996-2021, PostgreSQL Global Development Group]) | 27 | AC_COPYRIGHT([Copyright (c) 1996-2022, PostgreSQL Global Development Group]) |
29 | AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) | 28 | AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) |
30 | AC_CONFIG_AUX_DIR(config) | 29 | AC_CONFIG_AUX_DIR(config) |
30 | -- | ||
31 | 2.34.1 | ||
32 | |||
diff --git a/meta-oe/recipes-dbs/postgresql/files/remove_duplicate.patch b/meta-oe/recipes-dbs/postgresql/files/remove_duplicate.patch deleted file mode 100644 index 92a3dcc71..000000000 --- a/meta-oe/recipes-dbs/postgresql/files/remove_duplicate.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | Remove duplicate code for riscv | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | |||
6 | --- a/src/include/storage/s_lock.h | ||
7 | +++ b/src/include/storage/s_lock.h | ||
8 | @@ -341,30 +341,6 @@ tas(volatile slock_t *lock) | ||
9 | #endif /* HAVE_GCC__SYNC_INT32_TAS */ | ||
10 | #endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */ | ||
11 | |||
12 | - | ||
13 | -/* | ||
14 | - * RISC-V likewise uses __sync_lock_test_and_set(int *, int) if available. | ||
15 | - */ | ||
16 | -#if defined(__riscv) | ||
17 | -#ifdef HAVE_GCC__SYNC_INT32_TAS | ||
18 | -#define HAS_TEST_AND_SET | ||
19 | - | ||
20 | -#define TAS(lock) tas(lock) | ||
21 | - | ||
22 | -typedef int slock_t; | ||
23 | - | ||
24 | -static __inline__ int | ||
25 | -tas(volatile slock_t *lock) | ||
26 | -{ | ||
27 | - return __sync_lock_test_and_set(lock, 1); | ||
28 | -} | ||
29 | - | ||
30 | -#define S_UNLOCK(lock) __sync_lock_release(lock) | ||
31 | - | ||
32 | -#endif /* HAVE_GCC__SYNC_INT32_TAS */ | ||
33 | -#endif /* __riscv */ | ||
34 | - | ||
35 | - | ||
36 | /* S/390 and S/390x Linux (32- and 64-bit zSeries) */ | ||
37 | #if defined(__s390__) || defined(__s390x__) | ||
38 | #define HAS_TEST_AND_SET | ||
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_14.5.bb b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb index 1551d3405..befb0caec 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_14.5.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb | |||
@@ -1,17 +1,16 @@ | |||
1 | require postgresql.inc | 1 | require postgresql.inc |
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=75af6e3eeec4a06cdd2e578673236fc3" | 3 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=c31f662bb2bfb3b4187fe9a53e0ffe7c" |
4 | 4 | ||
5 | SRC_URI += "\ | 5 | SRC_URI += "\ |
6 | file://not-check-libperl.patch \ | 6 | file://not-check-libperl.patch \ |
7 | file://0001-Add-support-for-RISC-V.patch \ | 7 | file://0001-Add-support-for-RISC-V.patch \ |
8 | file://0001-Improve-reproducibility.patch \ | 8 | file://0001-Improve-reproducibility.patch \ |
9 | file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \ | 9 | file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \ |
10 | file://remove_duplicate.patch \ | ||
11 | file://0001-config_info.c-not-expose-build-info.patch \ | 10 | file://0001-config_info.c-not-expose-build-info.patch \ |
12 | " | 11 | " |
13 | 12 | ||
14 | SRC_URI[sha256sum] = "d4f72cb5fb857c9a9f75ec8cf091a1771272802f2178f0b2e65b7b6ff64f4a30" | 13 | SRC_URI[sha256sum] = "99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7" |
15 | 14 | ||
16 | CVE_CHECK_IGNORE += "\ | 15 | CVE_CHECK_IGNORE += "\ |
17 | CVE-2017-8806 \ | 16 | CVE-2017-8806 \ |