pgpool2: Upgrade to 4.5.1
PATCH 1/3 pgpool2: Upgrade to 4.5.1
Signed-off-by Khem Raj <[email protected]>
---
...own-type-name-fd_set-error-with-musl.patch | 33 -------------------
.../{pgpool2_4.4.1.bb => pgpool2_4.5.1.bb} | 8 ++---
2 files changed, 2 insertions(+), 39 deletions(-)
delete mode 100644 meta-networking/recipes-support/pgpool2/pgpool2/0001-pgpool2-Fix-unknown-type-name-fd_set-error-with-musl.patch
rename meta-networking/recipes-support/pgpool2/{pgpool2_4.4.1.bb => pgpool2_4.5.1.bb} (87%)meta-networking/recipes-support/pgpool2/pgpool2/0001-pgpool2-Fix-unknown-type-name-fd_set-error-with-musl.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 5d335b5ddd052f047759cae0e9b94ec49f9f3884 Mon Sep 17 00:00:00 2001 -From: Lei Maohui <[email protected]> -Date: Mon, 20 Mar 2023 02:03:04 +0000 -Subject: [PATCH] pgpool2: Fix unknown type name 'fd_set' error with musl. - -| read.c: In function 'read_until_ready_for_query': -| read.c:53:24: error: storage size of 'timeoutval' isn't known -| 53 | struct timeval timeoutval; -| | ^~~~~~~~~~ -| read.c:54:9: error: unknown type name 'fd_set' -| 54 | fd_set readmask; -| | ^~~~~~ - -Upstream-Status: Inappropriate [embedded specific] -Signed-off-by: Lei Maohui <[email protected]> ---- - src/tools/pgproto/read.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/tools/pgproto/read.c b/src/tools/pgproto/read.c -index c7fb548..4efe641 100644 ---- a/src/tools/pgproto/read.c -+++ b/src/tools/pgproto/read.c -@@ -19,6 +19,7 @@ - #include "../../include/config.h" - #include "pgproto/pgproto.h" - #include <unistd.h> -+#include <sys/select.h> - #include <stdlib.h> - #include <stdio.h> - #include <string.h> --- -2.34.1
meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb renamed from meta-networking/recipes-support/pgpool2/pgpool2_4.4.1.bb +2 -6
@@ -1,4 +1,4 @@ -SUMMARY = "a language independent connection pool server for PostgreSQL." +SUMMARY = "A language independent connection pool server for PostgreSQL." DESCRIPTION = "Pgpool-II is a middleware that works between PostgreSQL \ servers and a PostgreSQL database client. It is distributed \
@@ -12,11 +12,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" SRC_URI = "http://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ file://0001-Fix-build-error-when-build-this-file.patch \ - file://0001-pgpool2-Fix-unknown-type-name-fd_set-error-with-musl.patch \ file://pgpool.sysconfig \ file://pgpool.service \ " -SRC_URI[sha256sum] = "4b379bbba8e178128a1cee4a5bd1ae116dedb3da6121b728c18f0f54c881f328" +SRC_URI[sha256sum] = "8e14b0558a15dae8767c8e1acee3f2f6c7c08ebfffda66a359367eaaa56c3936" S = "${WORKDIR}/pgpool-II-${PV}"
@@ -34,9 +33,6 @@ PACKAGECONFIG[postgresql] = "--with-pgsql-includedir=${STAGING_INCDIR}/postgresq EXTRA_OECONF += "--disable-static \ --disable-rpath \ " - -CFLAGS:append = " -fcommon " - FILES:${PN} += "${datadir}/pgpool-II/ " do_configure:append() {
Signature · 1 line
2.44.0
PATCH 2/3 pgpool2: Fix build with postgresql 16+
Signed-off-by Khem Raj <[email protected]>
--- .../pgpool2/pgpool2/define_SIGNAL_ARGS.patch | 25 +++++++++++++++++++ .../recipes-support/pgpool2/pgpool2_4.5.1.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta-networking/recipes-support/pgpool2/pgpool2/define_SIGNAL_ARGS.patch
meta-networking/recipes-support/pgpool2/pgpool2/define_SIGNAL_ARGS.patch new file +25 -0
@@ -0,0 +1,25 @@ +Define SIGNAL_ARGS if its not defined, this is flagged with +newer C compilers e.g. clang18, where if it is not defined +then it ends up with compiler errors + +/usr/include/postgresql/server/port.h:488:28: error: a parameter l +ist without types is only allowed in a function definition +| 488 | typedef void (*pqsigfunc) (SIGNAL_ARGS); +| | ^ + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> + +--- a/src/include/pool_type.h ++++ b/src/include/pool_type.h +@@ -125,7 +125,9 @@ extern void ExceptionalCondition(const c + #define LONGALIGN(LEN) TYPEALIGN(ALIGNOF_LONG, (LEN)) + #define DOUBLEALIGN(LEN) TYPEALIGN(ALIGNOF_DOUBLE, (LEN)) + #define MAXALIGN(LEN) TYPEALIGN(MAXIMUM_ALIGNOF, (LEN)) +- ++#ifndef SIGNAL_ARGS ++#define SIGNAL_ARGS int postgres_signal_arg ++#endif + /* + * It seems that sockaddr_storage is now commonly used in place of sockaddr. + * So, define it if it is not define yet, and create new SockAddr structure
meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb +1 -0
@@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" SRC_URI = "http://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ file://0001-Fix-build-error-when-build-this-file.patch \ + file://define_SIGNAL_ARGS.patch \ file://pgpool.sysconfig \ file://pgpool.service \ "
Signature · 1 line
2.44.0
PATCH 3/3 emacs: Add packageconfig for selinux support
In reply to Khem RajDisable it by default, since selinux may not be present on build hosts and it can result in non-deterministic behavior during build.
Signed-off-by Khem Raj <[email protected]>
--- meta-oe/recipes-support/emacs/emacs_29.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-support/emacs/emacs_29.1.bb +1 -0
@@ -18,6 +18,7 @@ CVE_STATUS[CVE-2007-6109] = "fixed-version: The CPE in the NVD database doesn't PACKAGECONFIG[gnutls] = "--with-gnutls=yes,--with-gnutls=no,gnutls" PACKAGECONFIG[kerberos] = "--with-kerberos=yes,--with-kerberos=no,krb5" PACKAGECONFIG[libgmp] = "--with-libgmp=yes,--with-libgmp=no,gmp" +PACKAGECONFIG[selinux] = "--with-selinux=yes,--with-selinux=no,libselinux" PACKAGECONFIG ??= "gnutls kerberos libgmp"
Signature · 1 line
2.44.0