diff options
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch | 26 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch | 13 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch | 13 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch | 18 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch | 9 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 26 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql_17.5.bb (renamed from meta-oe/recipes-dbs/postgresql/postgresql_16.3.bb) | 5 |
7 files changed, 71 insertions, 39 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch b/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch new file mode 100644 index 0000000000..89a509087f --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From f0d8240dbf594e6dfab31fd7d70ce340ac365a65 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 3 Nov 2024 15:50:50 -0800 | ||
4 | Subject: [PATCH] tcl.m4: Recognize tclsh9 | ||
5 | |||
6 | Add missing support to recognize tclsh9 as supported | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | config/tcl.m4 | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/config/tcl.m4 b/config/tcl.m4 | ||
15 | index 9de31a5..568fd45 100644 | ||
16 | --- a/config/tcl.m4 | ||
17 | +++ b/config/tcl.m4 | ||
18 | @@ -4,7 +4,7 @@ | ||
19 | |||
20 | |||
21 | AC_DEFUN([PGAC_PATH_TCLSH], | ||
22 | -[PGAC_PATH_PROGS(TCLSH, [tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84]) | ||
23 | +[PGAC_PATH_PROGS(TCLSH, [tclsh tcl tclsh9.0 tclsh90 tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84]) | ||
24 | AC_ARG_VAR(TCLSH, [Tcl interpreter program (tclsh)])dnl | ||
25 | if test x"$TCLSH" = x""; then | ||
26 | AC_MSG_ERROR([Tcl shell not found]) | ||
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 9df4d073ff..4382741da9 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 @@ | |||
1 | From 30b1b37d309f67ba6d58f2197bd917107bc7d56c Mon Sep 17 00:00:00 2001 | 1 | From 84febaf9330fe99802f75bcd0606ac7d86c35b25 Mon Sep 17 00:00:00 2001 |
2 | From: Yi Fan Yu <yifan.yu@windriver.com> | 2 | From: Yi Fan Yu <yifan.yu@windriver.com> |
3 | Date: Fri, 5 Feb 2021 17:15:42 -0500 | 3 | Date: Fri, 5 Feb 2021 17:15:42 -0500 |
4 | Subject: [PATCH 3/5] configure.ac: bypass autoconf 2.69 version check | 4 | Subject: [PATCH] configure.ac: bypass autoconf 2.69 version check |
5 | 5 | ||
6 | for upgrade to autoconf 2.71 | 6 | for upgrade to autoconf 2.71 |
7 | 7 | ||
@@ -13,20 +13,17 @@ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> | |||
13 | 1 file changed, 4 deletions(-) | 13 | 1 file changed, 4 deletions(-) |
14 | 14 | ||
15 | diff --git a/configure.ac b/configure.ac | 15 | diff --git a/configure.ac b/configure.ac |
16 | index 401ce30..27f382d 100644 | 16 | index 493d5cd..f0fa973 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.3], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) | 21 | AC_INIT([PostgreSQL], [17.5], [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 | -- | ||
31 | 2.25.1 | ||
32 | |||
diff --git a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch index ff0582ab80..d94f028036 100644 --- a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch +++ b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 5be3ffdf767c1efcbfd2d1be87aa83f2e37e348e Mon Sep 17 00:00:00 2001 | 1 | From 62733bdc9346651637d9e5ac7cbf8d7311ef5d97 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Mon, 1 Aug 2022 15:44:38 +0800 | 3 | Date: Mon, 1 Aug 2022 15:44:38 +0800 |
4 | Subject: [PATCH 4/5] config_info.c: not expose build info | 4 | Subject: [PATCH] config_info.c: not expose build info |
5 | 5 | ||
6 | Don't collect the build information to fix the buildpaths issue. | 6 | Don't collect the build information to fix the buildpaths issue. |
7 | 7 | ||
@@ -14,10 +14,10 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
14 | 2 files changed, 2 insertions(+), 70 deletions(-) | 14 | 2 files changed, 2 insertions(+), 70 deletions(-) |
15 | 15 | ||
16 | diff --git a/configure.ac b/configure.ac | 16 | diff --git a/configure.ac b/configure.ac |
17 | index 27f382d..3dd6bb1 100644 | 17 | index f0fa973..8ccd8bc 100644 |
18 | --- a/configure.ac | 18 | --- a/configure.ac |
19 | +++ b/configure.ac | 19 | +++ b/configure.ac |
20 | @@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2023, PostgreSQL Global Development Group]) | 20 | @@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2024, PostgreSQL Global Development Group]) |
21 | AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) | 21 | AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) |
22 | AC_CONFIG_AUX_DIR(config) | 22 | AC_CONFIG_AUX_DIR(config) |
23 | AC_PREFIX_DEFAULT(/usr/local/pgsql) | 23 | AC_PREFIX_DEFAULT(/usr/local/pgsql) |
@@ -27,7 +27,7 @@ index 27f382d..3dd6bb1 100644 | |||
27 | [PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`] | 27 | [PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`] |
28 | [PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`] | 28 | [PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`] |
29 | diff --git a/src/common/config_info.c b/src/common/config_info.c | 29 | diff --git a/src/common/config_info.c b/src/common/config_info.c |
30 | index 09e78a6..86e4230 100644 | 30 | index 89c1ccb..a2206de 100644 |
31 | --- a/src/common/config_info.c | 31 | --- a/src/common/config_info.c |
32 | +++ b/src/common/config_info.c | 32 | +++ b/src/common/config_info.c |
33 | @@ -38,7 +38,7 @@ get_configdata(const char *my_exec_path, size_t *configdata_len) | 33 | @@ -38,7 +38,7 @@ get_configdata(const char *my_exec_path, size_t *configdata_len) |
@@ -114,6 +114,3 @@ index 09e78a6..86e4230 100644 | |||
114 | configdata[i].name = pstrdup("VERSION"); | 114 | configdata[i].name = pstrdup("VERSION"); |
115 | configdata[i].setting = pstrdup("PostgreSQL " PG_VERSION); | 115 | configdata[i].setting = pstrdup("PostgreSQL " PG_VERSION); |
116 | i++; | 116 | i++; |
117 | -- | ||
118 | 2.25.1 | ||
119 | |||
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 @@ | |||
1 | From 1a8b94140988d2ee5ff987b0bb3e7c3e936b8c01 Mon Sep 17 00:00:00 2001 | 1 | From d1fb37569b5a8c21968f69164e8bc6e4bb0185eb Mon Sep 17 00:00:00 2001 |
2 | From: Manoj Saun <manojsingh.saun@windriver.com> | 2 | From: Manoj Saun <manojsingh.saun@windriver.com> |
3 | Date: Wed, 22 Mar 2023 08:07:26 +0000 | 3 | Date: Wed, 22 Mar 2023 08:07:26 +0000 |
4 | Subject: [PATCH 5/5] postgresql: fix ptest failure of sysviews | 4 | Subject: [PATCH] postgresql: fix ptest failure of sysviews |
5 | 5 | ||
6 | The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info | 6 | The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info |
7 | in pg_config table which reduces the count of rows from pg_config and leads to | 7 | in 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 | ||
21 | diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out | 21 | diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out |
22 | index 001c6e7..8256898 100644 | 22 | index 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 |
34 | diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql | 34 | diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql |
35 | index 351e469..84c113e 100644 | 35 | index 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 | -- |
48 | 2.25.1 | 48 | 2.34.1 |
49 | 49 | ||
diff --git a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch index 1f735f322b..a2f0500a8c 100644 --- a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch +++ b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 56b830edecff1cac5f8a8a956e7a7eeef2aa7c17 Mon Sep 17 00:00:00 2001 | 1 | From 1a9416bae71aa935797add3fa11407732ad010c0 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 27 Nov 2018 13:25:15 +0800 | 3 | Date: Tue, 27 Nov 2018 13:25:15 +0800 |
4 | Subject: [PATCH] not check libperl under cross compiling | 4 | Subject: [PATCH] not check libperl under cross compiling |
@@ -20,10 +20,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
21 | 21 | ||
22 | diff --git a/configure.ac b/configure.ac | 22 | diff --git a/configure.ac b/configure.ac |
23 | index fba79ee..7170f26 100644 | 23 | index f398184..493d5cd 100644 |
24 | --- a/configure.ac | 24 | --- a/configure.ac |
25 | +++ b/configure.ac | 25 | +++ b/configure.ac |
26 | @@ -2297,7 +2297,7 @@ Use --without-tcl to disable building PL/Tcl.]) | 26 | @@ -2336,7 +2336,7 @@ Use --without-tcl to disable building PL/Tcl.]) |
27 | fi | 27 | fi |
28 | 28 | ||
29 | # check for <perl.h> | 29 | # check for <perl.h> |
@@ -32,6 +32,3 @@ index fba79ee..7170f26 100644 | |||
32 | ac_save_CPPFLAGS=$CPPFLAGS | 32 | ac_save_CPPFLAGS=$CPPFLAGS |
33 | CPPFLAGS="$CPPFLAGS $perl_includespec" | 33 | CPPFLAGS="$CPPFLAGS $perl_includespec" |
34 | AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], | 34 | AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], |
35 | -- | ||
36 | 2.34.1 | ||
37 | |||
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 2dd7dd6fda..040b3d5e34 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
@@ -19,7 +19,7 @@ DESCRIPTION = "\ | |||
19 | " | 19 | " |
20 | HOMEPAGE = "http://www.postgresql.com" | 20 | HOMEPAGE = "http://www.postgresql.com" |
21 | LICENSE = "0BSD" | 21 | LICENSE = "0BSD" |
22 | DEPENDS = "libnsl2 readline tzcode-native" | 22 | DEPENDS = "libnsl2 tzcode-native perl bison-native" |
23 | 23 | ||
24 | ARM_INSTRUCTION_SET = "arm" | 24 | ARM_INSTRUCTION_SET = "arm" |
25 | 25 | ||
@@ -37,9 +37,9 @@ LEAD_SONAME = "libpq.so" | |||
37 | export LDFLAGS_SL = "${LDFLAGS}" | 37 | export LDFLAGS_SL = "${LDFLAGS}" |
38 | export LDFLAGS_EX_BE = "-Wl,--export-dynamic" | 38 | export LDFLAGS_EX_BE = "-Wl,--export-dynamic" |
39 | 39 | ||
40 | inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header | 40 | inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext perl-version multilib_header |
41 | 41 | ||
42 | CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6" | 42 | CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR}" |
43 | 43 | ||
44 | SYSTEMD_SERVICE:${PN} = "postgresql.service" | 44 | SYSTEMD_SERVICE:${PN} = "postgresql.service" |
45 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" | 45 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" |
@@ -55,7 +55,7 @@ pkg_postinst:${PN} () { | |||
55 | 55 | ||
56 | PACKAGECONFIG ??= " \ | 56 | PACKAGECONFIG ??= " \ |
57 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ | 57 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ |
58 | openssl python uuid libxml tcl perl zlib icu \ | 58 | openssl python uuid libxml perl zlib icu readline \ |
59 | " | 59 | " |
60 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," | 60 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," |
61 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" | 61 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" |
@@ -71,8 +71,9 @@ PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | |||
71 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" | 71 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" |
72 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" | 72 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" |
73 | PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu" | 73 | PACKAGECONFIG[icu] = "--with-icu,--without-icu,icu,icu" |
74 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" | ||
74 | 75 | ||
75 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ | 76 | EXTRA_OECONF += "--disable-rpath \ |
76 | --datadir=${datadir}/${BPN} \ | 77 | --datadir=${datadir}/${BPN} \ |
77 | --sysconfdir=${sysconfdir}/${BPN} \ | 78 | --sysconfdir=${sysconfdir}/${BPN} \ |
78 | " | 79 | " |
@@ -122,10 +123,18 @@ python populate_packages:prepend() { | |||
122 | 123 | ||
123 | } | 124 | } |
124 | 125 | ||
126 | # Same as the function in cpan-base.bbclass (but without the perl RDEPENDS) | ||
127 | def is_target(d): | ||
128 | if not bb.data.inherits_class('native', d): | ||
129 | return "yes" | ||
130 | return "no" | ||
131 | |||
125 | # This will make native perl use target settings (for include dirs etc.) | 132 | # This will make native perl use target settings (for include dirs etc.) |
126 | export PERLCONFIGTARGET = "${@is_target(d)}" | 133 | export PERLCONFIGTARGET = "${@is_target(d)}" |
127 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" | 134 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" |
128 | 135 | ||
136 | EXTRA_AUTORECONF += "-I config" | ||
137 | |||
129 | do_configure() { | 138 | do_configure() { |
130 | # do_configure | 139 | # do_configure |
131 | autotools_do_configure | 140 | autotools_do_configure |
@@ -168,6 +177,11 @@ do_configure() { | |||
168 | 177 | ||
169 | do_compile:append() { | 178 | do_compile:append() { |
170 | oe_runmake -C contrib all | 179 | oe_runmake -C contrib all |
180 | |||
181 | for f in `find ${B} -name "*.[c|h]"`; | ||
182 | do | ||
183 | sed -i -e 's,${B}/../,,' $f | ||
184 | done | ||
171 | } | 185 | } |
172 | 186 | ||
173 | # server needs to configure user and group | 187 | # server needs to configure user and group |
@@ -235,7 +249,7 @@ postgresql_fix_sources () { | |||
235 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \ | 249 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/Util.c \ |
236 | ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do | 250 | ${PKGD}${TARGET_DBGSRC_DIR}/src/pl/plperl/SPI.c; do |
237 | if [ -e $f ]; then | 251 | if [ -e $f ]; then |
238 | sed -i -e 's#${B}/../${P}#${TARGET_DBGSRC_DIR}#g' $f | 252 | sed -i -e 's#${B}/../${BP}#${TARGET_DBGSRC_DIR}#g' $f |
239 | fi | 253 | fi |
240 | done | 254 | done |
241 | } | 255 | } |
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_16.3.bb b/meta-oe/recipes-dbs/postgresql/postgresql_17.5.bb index 6df719cd98..b7fce886f8 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_16.3.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_17.5.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require postgresql.inc | 1 | require postgresql.inc |
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=89afbb2d7716371015101c2b2cb4297a" | 3 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d5dd73e90ee1a572679460ee67233fcc" |
4 | 4 | ||
5 | SRC_URI += "\ | 5 | SRC_URI += "\ |
6 | file://not-check-libperl.patch \ | 6 | file://not-check-libperl.patch \ |
@@ -9,8 +9,9 @@ SRC_URI += "\ | |||
9 | file://0003-configure.ac-bypass-autoconf-2.69-version-check.patch \ | 9 | file://0003-configure.ac-bypass-autoconf-2.69-version-check.patch \ |
10 | file://0004-config_info.c-not-expose-build-info.patch \ | 10 | file://0004-config_info.c-not-expose-build-info.patch \ |
11 | file://0005-postgresql-fix-ptest-failure-of-sysviews.patch \ | 11 | file://0005-postgresql-fix-ptest-failure-of-sysviews.patch \ |
12 | file://0001-tcl.m4-Recognize-tclsh9.patch \ | ||
12 | " | 13 | " |
13 | 14 | ||
14 | SRC_URI[sha256sum] = "331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585" | 15 | SRC_URI[sha256sum] = "fcb7ab38e23b264d1902cb25e6adafb4525a6ebcbd015434aeef9eda80f528d8" |
15 | 16 | ||
16 | CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Ddoesn't apply to out configuration of postgresql so we can safely ignore it." | 17 | CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Ddoesn't apply to out configuration of postgresql so we can safely ignore it." |