From patchwork Wed Dec 10 17:48:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Tyagi X-Patchwork-Id: 76240 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA850D3C93E for ; Wed, 10 Dec 2025 17:49:13 +0000 (UTC) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2023.1765388947537522135 for ; Wed, 10 Dec 2025 09:49:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E0bvtkTW; spf=pass (domain: gmail.com, ip: 209.85.210.171, mailfrom: ankur.tyagi85@gmail.com) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7f0db5700b2so62013b3a.0 for ; Wed, 10 Dec 2025 09:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765388947; x=1765993747; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5ErX+X1XoKfWk0ptQla7W1N0ityqttTKaljk6VAOu9Q=; b=E0bvtkTW0hsB4G4Hliaa5YbgV50y3rUwUYbrJacc6HqxuGVGZU0ophUeq3BD0XhkPX 88hLZKDY439rMhIRUP1SGHdEex04LGNF7DJYbULMWeQqo+BWr43wK+1mw4HKMdx+g19F xtG1DJSkwctNa1pFGQkbQf7tow78Tiv3Ki3sKrxFuKqbzUoFUyyT24eKjEcD4Ew7Bd18 9wt2QY/9t5nS91NDfpH2JtR0E1b1uWMbPtMxyMfoiHqcFu694gVMk4V0rssolMIMBc/O BZG5qwrj1cDPFkKI8LrG/K57Si9IXh+z2yR0jPAs48WfhJLYeTzzShXTttSGT4UyCtfW c4gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765388947; x=1765993747; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5ErX+X1XoKfWk0ptQla7W1N0ityqttTKaljk6VAOu9Q=; b=RsFfy9c3e9Uv4kj+uwuE8jr4vRqCbg+MCU/WiqAe3+vxDfX+REjWVGQj5nX351JAW3 V2S2HecLSO52IcXv1NXtH8jVBgeYvBRPL6LN/aS0N4j1+eeSTkkjSLphIBdywB8pePIe 4rB8zpfWWgOKBLx0P3JnfS1HJaeFqysIaRltSYyM0z6epXHvD3IqyzungxwpVfyljt5W lNDaxVAOim7AJXpfGOZX9zdBL3K8wrDRu9ZH7FZnL5JEQcAMjHGILP1ceR3Dgnd6q/eq OkEcooa4lNcGxnxRakVTsgTIeFPmBVF7SN9afqWyi5KSec6s8XPb8tM3pmJ1CVSwUaoR c4Dw== X-Gm-Message-State: AOJu0YwIVQgSEyKT7sQNyEUXsPhXkcQY/mEnEOgOJH8+ga7WO3ydXSiZ GqOTS3PLMGUBUpWIrqxWxlnEsAVOgeelAqLQxGi9HVfC7C2OpZu9ce6qoStJIYwL X-Gm-Gg: ASbGncsQfmaO0Trlc0OLrzeYKkwKFdc2SxSjHXyaL4auN7AcDnkM8ece4KUc8jkoED2 MSlJJJ9NNUnzx00XaYe+fAEb1vmJJoL2yutK1nmM8DPCdOEdjkrEKnsZIpfllq8Ehbs7Pfo+CZY e4853+YCyod6/27Yln+yzbKLOL6XKYnp50bEnwE0vNzN59P7qdUHspoC0sMaQnbQ8hBAfFA4jsZ SM1O8DOaYddJ48R+s7/DksQ0vE8zdX2iccgbkFVt5mpvYYKaGyc7MYbPPOvvoo8U6r/KI7IjJ24 S5pEnr1KKgcK1ECIQO4jGtrHcLuZ80x/nPPNC4iU0aEgyad28ZTOH3y/LxAzZ2FqlHIh+XpYnm0 fRkNcYgfj5XJHZQwPYxBreqDO+XsykaCWqK0kmpK0SJRunBXKrW9NquPRkvAcdpxUkQnjCFpPeo vwn45dL9Lft316CryRUF2AEpxKB8aZMr/rMg== X-Google-Smtp-Source: AGHT+IEEbIy1ay6RBgYqEa2sWk8HT2du76Bitw9kweWElgRzJRnN/L6tZ8QbQw51oERcvFtUyGHgbQ== X-Received: by 2002:a05:6a20:3d11:b0:2cd:a43f:78fb with SMTP id adf61e73a8af0-366e2b90189mr3268817637.48.1765388946590; Wed, 10 Dec 2025 09:49:06 -0800 (PST) Received: from NVAPF55DW0D-IPD.. ([122.161.48.114]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c0c264211cbsm124658a12.11.2025.12.10.09.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 09:49:05 -0800 (PST) From: ankur.tyagi85@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Liu Yiding , Khem Raj , Ankur Tyagi Subject: [oe][meta-networking][whinlatter][PATCH 04/10] pgpool2: 4.6.3 -> 4.6.4 Date: Wed, 10 Dec 2025 23:18:41 +0530 Message-ID: <20251210174847.2828731-4-ankur.tyagi85@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251210174847.2828731-1-ankur.tyagi85@gmail.com> References: <20251210174847.2828731-1-ankur.tyagi85@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 10 Dec 2025 17:49:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/122570 From: Liu Yiding Drop 0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch and v1-0001-Make-time-calculations-always-long-long.patch as those were merged upstream. Signed-off-by: Liu Yiding Signed-off-by: Khem Raj (cherry picked from commit 7fb4910ccb6a156bf67eb773ff1b421b30536b58) Signed-off-by: Ankur Tyagi --- ...h.h-to-ensure-isnan-and-isinf-are-de.patch | 40 --- ...e-time-calculations-always-long-long.patch | 336 ------------------ .../{pgpool2_4.6.3.bb => pgpool2_4.6.4.bb} | 4 +- 3 files changed, 1 insertion(+), 379 deletions(-) delete mode 100644 meta-networking/recipes-support/pgpool2/pgpool2/0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch delete mode 100644 meta-networking/recipes-support/pgpool2/pgpool2/v1-0001-Make-time-calculations-always-long-long.patch rename meta-networking/recipes-support/pgpool2/{pgpool2_4.6.3.bb => pgpool2_4.6.4.bb} (89%) diff --git a/meta-networking/recipes-support/pgpool2/pgpool2/0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch b/meta-networking/recipes-support/pgpool2/pgpool2/0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch deleted file mode 100644 index 1fdf91227b..0000000000 --- a/meta-networking/recipes-support/pgpool2/pgpool2/0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch +++ /dev/null @@ -1,40 +0,0 @@ -From c0b6ae020ad87040b5bc6fbae94fb815f10884d2 Mon Sep 17 00:00:00 2001 -From: Gyorgy Sarvari -Date: Thu, 11 Sep 2025 11:58:02 +0200 -Subject: [PATCH] snprintf: Add math.h to ensure isnan and isinf are defined - -When building for 32-bit arm arch, compilation fails with the following error: -| snprintf.c: In function 'fmtfloat': -| snprintf.c:1232:13: error: implicit declaration of function 'isnan' [-Wimplicit-function-declaration] -| 1232 | if (isnan(value)) -| | ^~~~~ -| snprintf.c:50:1: note: include '' or provide a declaration of 'isnan' -| 49 | #include "postgresql/server/port.h" -| +++ |+#include -| 50 | -| snprintf.c:1254:21: error: implicit declaration of function 'isinf' [-Wimplicit-function-declaration] -| 1254 | if (isinf(value)) -| | ^~~~~ -| snprintf.c:1254:21: note: include '' or provide a declaration of 'isinf' - -To avoid the error, add math.h to snprintf.c. - -Upstream-Status: Submitted [https://github.com/pgpool/pgpool2/pull/128] - -Signed-off-by: Gyorgy Sarvari ---- - src/parser/snprintf.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/parser/snprintf.c b/src/parser/snprintf.c -index 6dd4a50..cce7951 100644 ---- a/src/parser/snprintf.c -+++ b/src/parser/snprintf.c -@@ -36,6 +36,7 @@ - #include "c.h" - #endif - -+#include - #include - #include - #include diff --git a/meta-networking/recipes-support/pgpool2/pgpool2/v1-0001-Make-time-calculations-always-long-long.patch b/meta-networking/recipes-support/pgpool2/pgpool2/v1-0001-Make-time-calculations-always-long-long.patch deleted file mode 100644 index 07930f4341..0000000000 --- a/meta-networking/recipes-support/pgpool2/pgpool2/v1-0001-Make-time-calculations-always-long-long.patch +++ /dev/null @@ -1,336 +0,0 @@ -From 693208fa9f8481714040617746983741b7bf904d Mon Sep 17 00:00:00 2001 -From: Tatsuo Ishii -Date: Fri, 3 Oct 2025 21:10:50 +0900 -Subject: [PATCH v1] Make time calculations always long long. - -Previously pgpool assumed that time_t to be a simple long. This causes -a lots of compile time warnings on certain systems, for example -OpenBSD because on the system time_t is __int64, which results in long -long. This commit upcasts such calculations to long long to avoid the -issue. - -This way times can't get truncated and for the places where time_t is -actually used as a time and not a time diff this would allow pgpool to -keep working correctly post Y2038 on 64 bit clean time_t systems post -Y2038 (e.g. i386 OpenBSD). - -Moreover, json_get_long_value_for_key is changed to -json_get_llong_value_for_key and changed the parameter to long long. -This makes it more in line _json_value's integer, which is defined as -int64. This should also give 32 bit platforms proper retrieval of the -max value of an integer and may or may not solve some weird integer -overflow issues. - -Author: Martijn van Duren -Reviewed-by: Tatsuo Ishii -Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2025-May/004584.html - -From Yocto's perspective this patch also allows this application to -compile for 32-bit targets. - -Upstream-Status: Submitted [https://www.postgresql.org/message-id/20251003.211957.2067537305399895611.ishii@postgresql.org] -Signed-off-by: Gyorgy Sarvari - ---- - src/include/utils/json.h | 2 +- - src/include/watchdog/wd_commands.h | 2 +- - src/include/watchdog/wd_json_data.h | 4 ++-- - src/main/pgpool_logger.c | 2 +- - src/pcp_con/pcp_worker.c | 4 ++-- - src/protocol/pool_connection_pool.c | 12 ++++++------ - src/query_cache/pool_memqcache.c | 6 +++--- - src/utils/json.c | 2 +- - src/utils/pool_process_reporting.c | 2 +- - src/utils/pool_relcache.c | 2 +- - src/watchdog/watchdog.c | 4 ++-- - src/watchdog/wd_commands.c | 4 ++-- - src/watchdog/wd_heartbeat.c | 4 ++-- - src/watchdog/wd_json_data.c | 20 +++++++++++--------- - 14 files changed, 36 insertions(+), 34 deletions(-) - -diff --git a/src/include/utils/json.h b/src/include/utils/json.h -index 67cc025..7e24382 100644 ---- a/src/include/utils/json.h -+++ b/src/include/utils/json.h -@@ -313,7 +313,7 @@ extern "C" - /* pgpool-II extensions */ - json_value *json_get_value_for_key(json_value * source, const char *key); - int json_get_int_value_for_key(json_value * source, const char *key, int *value); --int json_get_long_value_for_key(json_value * source, const char *key, long *value); -+int json_get_llong_value_for_key(json_value * source, const char *key, long long *value); - char *json_get_string_value_for_key(json_value * source, const char *key); - int json_get_bool_value_for_key(json_value * source, const char *key, bool *value); - -diff --git a/src/include/watchdog/wd_commands.h b/src/include/watchdog/wd_commands.h -index 34c5b9a..dd788da 100644 ---- a/src/include/watchdog/wd_commands.h -+++ b/src/include/watchdog/wd_commands.h -@@ -52,7 +52,7 @@ typedef struct WDGenericData - char *stringVal; - int intVal; - bool boolVal; -- long longVal; -+ long long longVal; - } data; - } WDGenericData; - -diff --git a/src/include/watchdog/wd_json_data.h b/src/include/watchdog/wd_json_data.h -index 7b53999..4ad4910 100644 ---- a/src/include/watchdog/wd_json_data.h -+++ b/src/include/watchdog/wd_json_data.h -@@ -51,8 +51,8 @@ extern bool parse_node_status_json(char *json_data, int data_len, int *nodeID, i - - - extern bool parse_beacon_message_json(char *json_data, int data_len, int *state, -- long *seconds_since_node_startup, -- long *seconds_since_current_state, -+ long long *seconds_since_node_startup, -+ long long *seconds_since_current_state, - int *quorumStatus, - int *standbyNodesCount, - bool *escalated); -diff --git a/src/main/pgpool_logger.c b/src/main/pgpool_logger.c -index 2060867..21c67a8 100644 ---- a/src/main/pgpool_logger.c -+++ b/src/main/pgpool_logger.c -@@ -50,7 +50,7 @@ - #include "main/pgpool_logger.h" - - #define DEVNULL "/dev/null" --typedef int64 pg_time_t; -+typedef time_t pg_time_t; - /* - * We read() into a temp buffer twice as big as a chunk, so that any fragment - * left after processing can be moved down to the front and we'll still have -diff --git a/src/pcp_con/pcp_worker.c b/src/pcp_con/pcp_worker.c -index de2658d..ddd892a 100644 ---- a/src/pcp_con/pcp_worker.c -+++ b/src/pcp_con/pcp_worker.c -@@ -933,9 +933,9 @@ inform_node_info(PCP_CONNECTION * frontend, char *buf) - - snprintf(standby_delay_by_time_str, sizeof(standby_delay_by_time_str), "%d", bi->standby_delay_by_time); - -- snprintf(standby_delay_str, sizeof(standby_delay_str), UINT64_FORMAT, bi->standby_delay); -+ snprintf(standby_delay_str, sizeof(standby_delay_str), "%lld", (long long)bi->standby_delay); - -- snprintf(status_changed_time_str, sizeof(status_changed_time_str), UINT64_FORMAT, bi->status_changed_time); -+ snprintf(status_changed_time_str, sizeof(status_changed_time_str), "%lld", (long long)bi->status_changed_time); - - pcp_write(frontend, "i", 1); - wsize = htonl(sizeof(code) + -diff --git a/src/protocol/pool_connection_pool.c b/src/protocol/pool_connection_pool.c -index 225294a..03e9a85 100644 ---- a/src/protocol/pool_connection_pool.c -+++ b/src/protocol/pool_connection_pool.c -@@ -299,10 +299,10 @@ pool_create_cp(void) - - ereport(DEBUG1, - (errmsg("creating connection pool"), -- errdetail("user: %s database: %s closetime: %ld", -+ errdetail("user: %s database: %s closetime: %lld", - CONNECTION_SLOT(p, main_node_id)->sp->user, - CONNECTION_SLOT(p, main_node_id)->sp->database, -- CONNECTION_SLOT(p, main_node_id)->closetime))); -+ (long long)CONNECTION_SLOT(p, main_node_id)->closetime))); - - if (CONNECTION_SLOT(p, main_node_id)->closetime < closetime) - { -@@ -363,7 +363,7 @@ pool_connection_pool_timer(POOL_CONNECTION_POOL * backend) - - ereport(DEBUG1, - (errmsg("setting backend connection close timer"), -- errdetail("close time %ld", time(NULL)))); -+ errdetail("close time %lld", (long long)time(NULL)))); - - /* Set connection close time */ - for (i = 0; i < NUM_BACKENDS; i++) -@@ -421,7 +421,7 @@ pool_backend_timer(void) - now = time(NULL); - - ereport(DEBUG1, -- (errmsg("backend timer handler called at %ld", now))); -+ (errmsg("backend timer handler called at %lld", (long long)now))); - - for (i = 0; i < pool_config->max_pool; i++, p++) - { -@@ -439,8 +439,8 @@ pool_backend_timer(void) - - ereport(DEBUG1, - (errmsg("backend timer handler called"), -- errdetail("expire time: %ld", -- MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time))); -+ errdetail("expire time: %lld", -+ (long long)(MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time)))); - - if (now >= (MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time)) - { -diff --git a/src/query_cache/pool_memqcache.c b/src/query_cache/pool_memqcache.c -index cc70207..03a77b7 100644 ---- a/src/query_cache/pool_memqcache.c -+++ b/src/query_cache/pool_memqcache.c -@@ -280,7 +280,7 @@ pool_commit_cache(POOL_CONNECTION_POOL * backend, char *query, char *data, size_ - memqcache_expire = pool_config->memqcache_expire; - ereport(DEBUG1, - (errmsg("committing SELECT results to cache storage"), -- errdetail("memqcache_expire = %ld", memqcache_expire))); -+ errdetail("memqcache_expire = %lld", (long long)memqcache_expire))); - - if (pool_is_shmem_cache()) - { -@@ -2887,8 +2887,8 @@ static POOL_CACHEID * pool_find_item_on_shmem_cache(POOL_QUERY_HASH * query_hash - { - ereport(DEBUG1, - (errmsg("memcache finding item"), -- errdetail("cache expired: now: %ld timestamp: %ld", -- now, cih->timestamp + cih->expire))); -+ errdetail("cache expired: now: %lld timestamp: %lld", -+ (long long)now, (long long)(cih->timestamp + cih->expire)))); - pool_delete_item_shmem_cache(c); - return NULL; - } -diff --git a/src/utils/json.c b/src/utils/json.c -index 319c8fd..9336fde 100644 ---- a/src/utils/json.c -+++ b/src/utils/json.c -@@ -1191,7 +1191,7 @@ json_get_int_value_for_key(json_value * source, const char *key, int *value) - } - - int --json_get_long_value_for_key(json_value * source, const char *key, long *value) -+json_get_llong_value_for_key(json_value * source, const char *key, long long *value) - { - json_value *jNode; - -diff --git a/src/utils/pool_process_reporting.c b/src/utils/pool_process_reporting.c -index 71f871b..5910999 100644 ---- a/src/utils/pool_process_reporting.c -+++ b/src/utils/pool_process_reporting.c -@@ -2052,7 +2052,7 @@ get_health_check_stats(int *nrows) - - /* status last changed */ - t = bi->status_changed_time; -- ereport(LOG,(errmsg("status_changed_time %ld", t))); -+ ereport(LOG,(errmsg("status_changed_time %lld", (long long)t))); - strftime(stats[i].last_status_change, POOLCONFIG_MAXDATELEN, "%F %T", localtime(&t)); - - snprintf(stats[i].total_count, POOLCONFIG_MAXLONGCOUNTLEN, UINT64_FORMAT, health_check_stats[i].total_count); -diff --git a/src/utils/pool_relcache.c b/src/utils/pool_relcache.c -index 32362fc..1701cb5 100644 ---- a/src/utils/pool_relcache.c -+++ b/src/utils/pool_relcache.c -@@ -187,7 +187,7 @@ pool_search_relcache(POOL_RELCACHE * relcache, POOL_CONNECTION_POOL * backend, c - { - ereport(DEBUG1, - (errmsg("searching relcache"), -- errdetail("relcache for database:%s table:%s expired. now:%ld expiration time:%ld", dbname, table, now, relcache->cache[i].expire))); -+ errdetail("relcache for database:%s table:%s expired. now:%lld expiration time:%lld", dbname, table, (long long)now, (long long)relcache->cache[i].expire))); - - relcache->cache[i].refcnt = 0; - break; -diff --git a/src/watchdog/watchdog.c b/src/watchdog/watchdog.c -index beb5a15..a78cc25 100644 ---- a/src/watchdog/watchdog.c -+++ b/src/watchdog/watchdog.c -@@ -6656,8 +6656,8 @@ watchdog_state_machine_nw_isolation(WD_EVENTS event, WatchdogNode * wdNode, WDPa - static bool - beacon_message_received_from_node(WatchdogNode * wdNode, WDPacketData * pkt) - { -- long seconds_since_node_startup; -- long seconds_since_current_state; -+ long long seconds_since_node_startup; -+ long long seconds_since_current_state; - int quorum_status; - int standby_nodes_count; - bool escalated; -diff --git a/src/watchdog/wd_commands.c b/src/watchdog/wd_commands.c -index 1459558..c5cd1dc 100644 ---- a/src/watchdog/wd_commands.c -+++ b/src/watchdog/wd_commands.c -@@ -193,9 +193,9 @@ get_wd_runtime_variable_value(char* wd_authkey, char *varName) - - case VALUE_DATA_TYPE_LONG: - { -- long longVal; -+ long long longVal; - -- if (json_get_long_value_for_key(root, WD_JSON_KEY_VALUE_DATA, &longVal)) -+ if (json_get_llong_value_for_key(root, WD_JSON_KEY_VALUE_DATA, &longVal)) - { - ereport(WARNING, - (errmsg("get runtime variable value from watchdog failed"), -diff --git a/src/watchdog/wd_heartbeat.c b/src/watchdog/wd_heartbeat.c -index 09b1ef5..e42cff5 100644 ---- a/src/watchdog/wd_heartbeat.c -+++ b/src/watchdog/wd_heartbeat.c -@@ -850,8 +850,8 @@ packet_to_string_hb(WdHbPacket * pkt, char *str, int maxlen) - { - int len; - -- len = snprintf(str, maxlen, "tv_sec=%ld tv_usec=%ld from=%s", -- pkt->send_time.tv_sec, pkt->send_time.tv_usec, pkt->from); -+ len = snprintf(str, maxlen, "tv_sec=%lld tv_usec=%lld from=%s", -+ (long long)pkt->send_time.tv_sec, (long long)pkt->send_time.tv_usec, pkt->from); - - return len; - } -diff --git a/src/watchdog/wd_json_data.c b/src/watchdog/wd_json_data.c -index 474fc37..602e3bf 100644 ---- a/src/watchdog/wd_json_data.c -+++ b/src/watchdog/wd_json_data.c -@@ -530,6 +530,7 @@ get_watchdog_node_from_json(char *json_data, int data_len, char **authkey) - { - json_value *root = NULL; - char *ptr; -+ long long longVal; - WatchdogNode *wdNode = palloc0(sizeof(WatchdogNode)); - - root = json_parse(json_data, data_len); -@@ -537,19 +538,20 @@ get_watchdog_node_from_json(char *json_data, int data_len, char **authkey) - if (root == NULL || root->type != json_object) - goto ERROR_EXIT; - -- if (json_get_long_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec)) -+ if (json_get_llong_value_for_key(root, "StartupTimeSecs", &longVal)) - { - bool escalated; -- long seconds_since_node_startup; -- long seconds_since_current_state; -+ long long seconds_since_node_startup; -+ long long seconds_since_current_state; - struct timeval current_time; - -+ wdNode->startup_time.tv_sec = longVal; - gettimeofday(¤t_time, NULL); - - /* The new version does not have StartupTimeSecs Key */ -- if (json_get_long_value_for_key(root, "SecondsSinceStartup", &seconds_since_node_startup)) -+ if (json_get_llong_value_for_key(root, "SecondsSinceStartup", &seconds_since_node_startup)) - goto ERROR_EXIT; -- if (json_get_long_value_for_key(root, "SecondsSinceCurrentState", &seconds_since_current_state)) -+ if (json_get_llong_value_for_key(root, "SecondsSinceCurrentState", &seconds_since_current_state)) - goto ERROR_EXIT; - if (json_get_bool_value_for_key(root, "Escalated", &escalated)) - goto ERROR_EXIT; -@@ -640,8 +642,8 @@ ERROR_EXIT: - bool - parse_beacon_message_json(char *json_data, int data_len, - int *state, -- long *seconds_since_node_startup, -- long *seconds_since_current_state, -+ long long *seconds_since_node_startup, -+ long long *seconds_since_current_state, - int *quorumStatus, - int *standbyNodesCount, - bool *escalated) -@@ -655,9 +657,9 @@ parse_beacon_message_json(char *json_data, int data_len, - - if (json_get_int_value_for_key(root, "State", state)) - goto ERROR_EXIT; -- if (json_get_long_value_for_key(root, "SecondsSinceStartup", seconds_since_node_startup)) -+ if (json_get_llong_value_for_key(root, "SecondsSinceStartup", seconds_since_node_startup)) - goto ERROR_EXIT; -- if (json_get_long_value_for_key(root, "SecondsSinceCurrentState", seconds_since_current_state)) -+ if (json_get_llong_value_for_key(root, "SecondsSinceCurrentState", seconds_since_current_state)) - goto ERROR_EXIT; - if (json_get_bool_value_for_key(root, "Escalated", escalated)) - goto ERROR_EXIT; diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.6.3.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.6.4.bb similarity index 89% rename from meta-networking/recipes-support/pgpool2/pgpool2_4.6.3.bb rename to meta-networking/recipes-support/pgpool2/pgpool2_4.6.4.bb index 6d83ce9bc4..0d7f1e0342 100644 --- a/meta-networking/recipes-support/pgpool2/pgpool2_4.6.3.bb +++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.6.4.bb @@ -12,13 +12,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" SRC_URI = "https://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ file://0001-Fix-build-error-when-build-this-file.patch \ - file://0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch \ - file://v1-0001-Make-time-calculations-always-long-long.patch \ file://define_SIGNAL_ARGS.patch \ file://pgpool.sysconfig \ file://pgpool.service \ " -SRC_URI[sha256sum] = "46688668b2ace67d8161a320256252d98698bc7d9788cc6727269d5720299f2c" +SRC_URI[sha256sum] = "ef0d2e91a9a11d737c6476247219e679f718bec53550646189594ef9aefd298d" S = "${UNPACKDIR}/pgpool-II-${PV}"