diff options
Diffstat (limited to 'meta-networking')
12 files changed, 368 insertions, 172 deletions
diff --git a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch index e778e8158b..a33a6248a7 100644 --- a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch +++ b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch | |||
@@ -7,7 +7,7 @@ Subject: [PATCH] pyiec61850: Use CMAKE_INSTALL_LIBDIR from GNUInstallDirs in | |||
7 | This ensures that it gets installed in platform specified system libdir | 7 | This ensures that it gets installed in platform specified system libdir |
8 | all platforms do not use /usr/lib as assumed here e.g. ppc64 uses lib64 | 8 | all platforms do not use /usr/lib as assumed here e.g. ppc64 uses lib64 |
9 | 9 | ||
10 | Upstream-Status: Submitted [https://github.com/mz-automation/libiec61850/pull/376] | 10 | Upstream-Status: Denied [https://github.com/mz-automation/libiec61850/pull/376 - closed without a word] |
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | --- | 12 | --- |
13 | pyiec61850/CMakeLists.txt | 6 ++++-- | 13 | pyiec61850/CMakeLists.txt | 6 ++++-- |
@@ -15,15 +15,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
15 | 15 | ||
16 | --- a/pyiec61850/CMakeLists.txt | 16 | --- a/pyiec61850/CMakeLists.txt |
17 | +++ b/pyiec61850/CMakeLists.txt | 17 | +++ b/pyiec61850/CMakeLists.txt |
18 | @@ -31,7 +31,9 @@ endif() | 18 | @@ -31,14 +31,9 @@ swig_add_library(pyiec61850 |
19 | 19 | ||
20 | swig_link_libraries(iec61850 ${PYTHON_LIBRARIES} ${LIBS}) | 20 | swig_link_libraries(pyiec61850 ${LIBS}) |
21 | 21 | ||
22 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | 22 | -# Finding python modules install path |
23 | -install(TARGETS _iec61850 LIBRARY DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | 23 | -execute_process( |
24 | - COMMAND ${Python_EXECUTABLE} -c | ||
25 | - "from sysconfig import get_path; import sys; sys.stdout.write(get_path('platlib'))" | ||
26 | - OUTPUT_VARIABLE PYTHON_SITE_DIR | ||
27 | -) | ||
24 | +include(GNUInstallDirs) | 28 | +include(GNUInstallDirs) |
25 | + | ||
26 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
27 | +install(TARGETS _iec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}//python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
28 | 29 | ||
29 | add_test(test_pyiec61850 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | 30 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${PYTHON_SITE_DIR}) |
31 | -install(TARGETS pyiec61850 LIBRARY DESTINATION ${PYTHON_SITE_DIR}) | ||
32 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) | ||
33 | +install(TARGETS pyiec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) | ||
34 | |||
35 | add_test(test_pyiec61850 ${Python_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | ||
diff --git a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch deleted file mode 100644 index 3f0490cb80..0000000000 --- a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From d4ddfc7a350011b7944ed8d6bca80f164dfd1387 Mon Sep 17 00:00:00 2001 | ||
2 | From: Romain Naour <romain.naour@smile.fr> | ||
3 | Date: Fri, 10 Jul 2020 17:08:34 +0200 | ||
4 | Subject: [PATCH] pyiec61850: don't break CMAKE_INSTALL_PATH by trying to find | ||
5 | python modules install path (site-packages) | ||
6 | |||
7 | https://stackoverflow.com/questions/1242904/finding-python-site-packages-directory-with-cmake | ||
8 | |||
9 | Signed-off-by: Romain Naour <romain.naour@smile.fr> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | pyiec61850/CMakeLists.txt | 11 ++--------- | ||
14 | 1 file changed, 2 insertions(+), 9 deletions(-) | ||
15 | |||
16 | diff --git a/pyiec61850/CMakeLists.txt b/pyiec61850/CMakeLists.txt | ||
17 | index 159ef4b..d1732a1 100644 | ||
18 | --- a/pyiec61850/CMakeLists.txt | ||
19 | +++ b/pyiec61850/CMakeLists.txt | ||
20 | @@ -31,14 +31,7 @@ endif() | ||
21 | |||
22 | swig_link_libraries(iec61850 ${PYTHON_LIBRARIES} ${LIBS}) | ||
23 | |||
24 | -# Finding python modules install path | ||
25 | -execute_process( | ||
26 | - COMMAND ${PYTHON_EXECUTABLE} -c | ||
27 | - "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())" | ||
28 | - OUTPUT_VARIABLE PYTHON_SITE_DIR | ||
29 | -) | ||
30 | - | ||
31 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION ${PYTHON_SITE_DIR}) | ||
32 | -install(TARGETS _iec61850 LIBRARY DESTINATION ${PYTHON_SITE_DIR}) | ||
33 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
34 | +install(TARGETS _iec61850 LIBRARY DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
35 | |||
36 | add_test(test_pyiec61850 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | ||
37 | -- | ||
38 | 2.31.1 | ||
39 | |||
diff --git a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb index cfded66e41..c46ed88d83 100644 --- a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb +++ b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb | |||
@@ -13,25 +13,25 @@ SECTION = "console/network" | |||
13 | LICENSE = "GPL-3.0-only" | 13 | LICENSE = "GPL-3.0-only" |
14 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
15 | DEPENDS = "swig-native python3" | 15 | DEPENDS = "swig-native python3" |
16 | SRCREV = "6f557c490f0b46ab5d7ef1b01bb3bc9fab3f442f" | 16 | SRCREV = "a13961110b8238d2d8ea577c1fb7592ba3017ad8" |
17 | 17 | ||
18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https \ | 18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.6;protocol=https;tag=v${PV} \ |
19 | file://0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch \ | ||
20 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ | 19 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ |
21 | " | 20 | " |
22 | 21 | ||
23 | 22 | ||
24 | inherit cmake pkgconfig python3-dir python3native siteinfo | 23 | inherit cmake pkgconfig python3-dir python3native siteinfo python3targetconfig |
25 | 24 | ||
26 | EXTRA_OECMAKE = " \ | 25 | EXTRA_OECMAKE = " \ |
27 | -DBUILD_EXAMPLES=OFF \ | 26 | -DBUILD_EXAMPLES=OFF \ |
28 | -DBUILD_PYTHON_BINDINGS=ON \ | 27 | -DBUILD_PYTHON_BINDINGS=ON \ |
28 | -DPYTHON_BASEVERSION=${PYTHON_BASEVERSION} \ | ||
29 | " | 29 | " |
30 | 30 | ||
31 | RDEPENDS:${PN}-python = " python3-core " | 31 | RDEPENDS:${PN}-python = " python3-core " |
32 | RDEPENDS:${PN} = " python3-core " | 32 | RDEPENDS:${PN} = " python3-core " |
33 | 33 | ||
34 | FILES:${PN} += " \ | 34 | FILES:${PN} += " \ |
35 | ${PYTHON_SITEPACKAGES_DIR}/iec61850.py \ | 35 | ${PYTHON_SITEPACKAGES_DIR}/pyiec61850.py \ |
36 | ${PYTHON_SITEPACKAGES_DIR}/_iec61850.so \ | 36 | ${PYTHON_SITEPACKAGES_DIR}/_pyiec61850.so \ |
37 | " | 37 | " |
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb index 0213d131e5..a0ef63c958 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb | |||
@@ -93,7 +93,7 @@ PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" | |||
93 | PACKAGECONFIG[gpgme] = "--with-gpgme,--without-gpgme,gpgme" | 93 | PACKAGECONFIG[gpgme] = "--with-gpgme,--without-gpgme,gpgme" |
94 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb" | 94 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb" |
95 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | 95 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
96 | PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython," | 96 | PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython,python3-markdown" |
97 | PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5," | 97 | PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5," |
98 | 98 | ||
99 | SAMBA4_IDMAP_MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" | 99 | SAMBA4_IDMAP_MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" |
diff --git a/meta-networking/recipes-support/nbdkit/nbdkit_1.45.1.bb b/meta-networking/recipes-support/nbdkit/nbdkit_1.45.9.bb index 63194ad393..fa850e1a28 100644 --- a/meta-networking/recipes-support/nbdkit/nbdkit_1.45.1.bb +++ b/meta-networking/recipes-support/nbdkit/nbdkit_1.45.9.bb | |||
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=26250adec854bc317493f6fb98efe049" | |||
12 | SRC_URI = "git://gitlab.com/nbdkit/nbdkit.git;protocol=https;branch=master;tag=v${PV} \ | 12 | SRC_URI = "git://gitlab.com/nbdkit/nbdkit.git;protocol=https;branch=master;tag=v${PV} \ |
13 | file://0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch \ | 13 | file://0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch \ |
14 | " | 14 | " |
15 | SRCREV = "243c6911984abc82bb711d2e5ecb1a13c7ff93c4" | 15 | SRCREV = "2e2f933abf4e19842db0fdba2ac4030baea57686" |
16 | 16 | ||
17 | 17 | ||
18 | DEPENDS = "curl xz e2fsprogs zlib" | 18 | DEPENDS = "curl xz e2fsprogs zlib" |
@@ -31,3 +31,6 @@ EXTRA_OECONF = " --without-libvirt --without-libguestfs --disable-perl" | |||
31 | #EXTRA_OECONF += " --disable-tcl" | 31 | #EXTRA_OECONF += " --disable-tcl" |
32 | #EXTRA_OECONF += " --disable-lua" | 32 | #EXTRA_OECONF += " --disable-lua" |
33 | #EXTRA_OECONF += " --disable-vddk" | 33 | #EXTRA_OECONF += " --disable-vddk" |
34 | |||
35 | CVE_STATUS[CVE-2025-47711] = "fixed-version: the used revision contains the vulnerability fix" | ||
36 | CVE_STATUS[CVE-2025-47712] = "fixed-version: the used revision contains the vulnerability fix" | ||
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch deleted file mode 100644 index aad1b10b52..0000000000 --- a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From 2a79621f58bf1c4bc0166ccc044fcf343fb66b44 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rudi Heitbaum <rudi@heitbaum.com> | ||
3 | Date: Wed, 20 Nov 2024 10:40:03 +1100 | ||
4 | Subject: [PATCH] Fix build when compiling with -std=c23 | ||
5 | |||
6 | Fixes the build when using gcc 15 | ||
7 | |||
8 | Upstream-Status: Submitted [https://github.com/vmware/open-vm-tools/pull/751] | ||
9 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
10 | --- | ||
11 | open-vm-tools/lib/lock/ul.c | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/open-vm-tools/lib/lock/ul.c b/open-vm-tools/lib/lock/ul.c | ||
15 | index d376a98af..fc9fdb714 100644 | ||
16 | --- a/open-vm-tools/lib/lock/ul.c | ||
17 | +++ b/open-vm-tools/lib/lock/ul.c | ||
18 | @@ -29,7 +29,7 @@ | ||
19 | static Bool mxInPanic = FALSE; // track when involved in a panic | ||
20 | static Bool mxUserCollectLockingTree = FALSE; | ||
21 | |||
22 | -Bool (*MXUserTryAcquireForceFail)() = NULL; | ||
23 | +Bool (*MXUserTryAcquireForceFail)(const char *) = NULL; | ||
24 | |||
25 | static MX_Rank (*MXUserMxCheckRank)(void) = NULL; | ||
26 | static void (*MXUserMxLockLister)(void) = NULL; | ||
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.5.0.bb b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_13.0.5.bb index fa26a759dc..304d910940 100644 --- a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.5.0.bb +++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_13.0.5.bb | |||
@@ -25,7 +25,7 @@ LICENSE:modules/freebsd/vmxnet = "GPL-2.0-only" | |||
25 | LICENSE:modules/linux = "GPL-2.0-only" | 25 | LICENSE:modules/linux = "GPL-2.0-only" |
26 | LICENSE:modules/solaris = "CDDL-1.0" | 26 | LICENSE:modules/solaris = "CDDL-1.0" |
27 | 27 | ||
28 | SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stable-12.5.x \ | 28 | SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stable-13.0.x \ |
29 | file://tools.conf \ | 29 | file://tools.conf \ |
30 | file://vmtoolsd.service \ | 30 | file://vmtoolsd.service \ |
31 | file://vmtoolsd.init \ | 31 | file://vmtoolsd.init \ |
@@ -43,7 +43,6 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stabl | |||
43 | file://0012-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ | 43 | file://0012-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ |
44 | file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \ | 44 | file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \ |
45 | file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \ | 45 | file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \ |
46 | file://0001-Fix-build-when-compiling-with-std-c23.patch;patchdir=.. \ | ||
47 | " | 46 | " |
48 | 47 | ||
49 | UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" | 48 | UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" |
@@ -51,7 +50,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" | |||
51 | SRC_URI:append:libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \ | 50 | SRC_URI:append:libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \ |
52 | " | 51 | " |
53 | 52 | ||
54 | SRCREV = "f2ca37ef3510543172657b82493d1eceefa9a134" | 53 | SRCREV = "fbc80ffbd226b4a61bb8ea1c9a682b5c7614e3fd" |
55 | 54 | ||
56 | S = "${UNPACKDIR}/${BP}/open-vm-tools" | 55 | S = "${UNPACKDIR}/${BP}/open-vm-tools" |
57 | 56 | ||
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.6.14.bb b/meta-networking/recipes-support/openvpn/openvpn_2.6.15.bb index 8627c7812d..8a88282cd5 100644 --- a/meta-networking/recipes-support/openvpn/openvpn_2.6.14.bb +++ b/meta-networking/recipes-support/openvpn/openvpn_2.6.15.bb | |||
@@ -15,7 +15,7 @@ SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \ | |||
15 | 15 | ||
16 | UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads" | 16 | UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads" |
17 | 17 | ||
18 | SRC_URI[sha256sum] = "9eb6a6618352f9e7b771a9d38ae1631b5edfeed6d40233e243e602ddf2195e7a" | 18 | SRC_URI[sha256sum] = "e35513ee15995e3c71adfd8891b9f33522896c70b3baa2ed9a23c7a42c4d7bde" |
19 | 19 | ||
20 | CVE_STATUS[CVE-2020-27569] = "not-applicable-config: Applies only Aviatrix OpenVPN client, not openvpn" | 20 | CVE_STATUS[CVE-2020-27569] = "not-applicable-config: Applies only Aviatrix OpenVPN client, not openvpn" |
21 | 21 | ||
diff --git a/meta-networking/recipes-support/pgpool2/pgpool2/0001-fix-compiling-on-32-bit-systems.patch b/meta-networking/recipes-support/pgpool2/pgpool2/0001-fix-compiling-on-32-bit-systems.patch deleted file mode 100644 index 13db1856a6..0000000000 --- a/meta-networking/recipes-support/pgpool2/pgpool2/0001-fix-compiling-on-32-bit-systems.patch +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | From 523ca5546b0178be693943f2a3a880c0bd6ea239 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
3 | Date: Thu, 11 Sep 2025 12:36:29 +0200 | ||
4 | Subject: [PATCH] fix compiling on 32-bit systems | ||
5 | |||
6 | The timespec struct's tv_sec size can change between architectures. | ||
7 | Usually on 64 bit systems it's long, but on 32 bit systems it is frequently long long. | ||
8 | |||
9 | When the watchdog is trying to get the uptime, it is trying to get the value | ||
10 | as long - however on 32 bit systems this fails due to different time_t size: | ||
11 | |||
12 | | wd_json_data.c:540:66: error: passing argument 3 of 'json_get_long_value_for_key' from incompatible pointer type [-Wincompatible-pointer-types] | ||
13 | | 540 | if (json_get_long_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec)) | ||
14 | | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
15 | |||
16 | To account for this, introduce a new helper function to get a json value as | ||
17 | a time_t type. | ||
18 | |||
19 | Upstream-Status: Submitted [https://github.com/pgpool/pgpool2/pull/128] | ||
20 | |||
21 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
22 | --- | ||
23 | src/include/utils/json.h | 5 +++-- | ||
24 | src/utils/json.c | 14 ++++++++++++++ | ||
25 | src/watchdog/wd_json_data.c | 2 +- | ||
26 | 3 files changed, 18 insertions(+), 3 deletions(-) | ||
27 | |||
28 | diff --git a/src/include/utils/json.h b/src/include/utils/json.h | ||
29 | index 67cc0255a..93be83c3a 100644 | ||
30 | --- a/src/include/utils/json.h | ||
31 | +++ b/src/include/utils/json.h | ||
32 | @@ -311,10 +311,11 @@ extern "C" | ||
33 | #endif | ||
34 | |||
35 | /* pgpool-II extensions */ | ||
36 | -json_value *json_get_value_for_key(json_value * source, const char *key); | ||
37 | +json_value *json_get_value_for_key(json_value * source, const char *key); | ||
38 | int json_get_int_value_for_key(json_value * source, const char *key, int *value); | ||
39 | int json_get_long_value_for_key(json_value * source, const char *key, long *value); | ||
40 | -char *json_get_string_value_for_key(json_value * source, const char *key); | ||
41 | +char *json_get_string_value_for_key(json_value * source, const char *key); | ||
42 | int json_get_bool_value_for_key(json_value * source, const char *key, bool *value); | ||
43 | +int json_get_time_value_for_key(json_value * source, const char *key, time_t *value); | ||
44 | |||
45 | #endif | ||
46 | diff --git a/src/utils/json.c b/src/utils/json.c | ||
47 | index 319c8fdbf..bce99466c 100644 | ||
48 | --- a/src/utils/json.c | ||
49 | +++ b/src/utils/json.c | ||
50 | @@ -1204,6 +1204,20 @@ json_get_long_value_for_key(json_value * source, const char *key, long *value) | ||
51 | return 0; | ||
52 | } | ||
53 | |||
54 | +int | ||
55 | +json_get_time_value_for_key(json_value * source, const char *key, time_t *value) | ||
56 | +{ | ||
57 | + json_value *jNode; | ||
58 | + | ||
59 | + jNode = json_get_value_for_key(source, key); | ||
60 | + if (jNode == NULL) | ||
61 | + return -1; | ||
62 | + if (jNode->type != json_integer) | ||
63 | + return -1; | ||
64 | + *value = jNode->u.integer; | ||
65 | + return 0; | ||
66 | +} | ||
67 | + | ||
68 | /* | ||
69 | * pgpool extension: | ||
70 | * returns string value if found for the key. | ||
71 | diff --git a/src/watchdog/wd_json_data.c b/src/watchdog/wd_json_data.c | ||
72 | index 474fc37a4..53053cd4b 100644 | ||
73 | --- a/src/watchdog/wd_json_data.c | ||
74 | +++ b/src/watchdog/wd_json_data.c | ||
75 | @@ -537,7 +537,7 @@ get_watchdog_node_from_json(char *json_data, int data_len, char **authkey) | ||
76 | if (root == NULL || root->type != json_object) | ||
77 | goto ERROR_EXIT; | ||
78 | |||
79 | - if (json_get_long_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec)) | ||
80 | + if (json_get_time_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec)) | ||
81 | { | ||
82 | bool escalated; | ||
83 | long seconds_since_node_startup; | ||
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 new file mode 100644 index 0000000000..07930f4341 --- /dev/null +++ b/meta-networking/recipes-support/pgpool2/pgpool2/v1-0001-Make-time-calculations-always-long-long.patch | |||
@@ -0,0 +1,336 @@ | |||
1 | From 693208fa9f8481714040617746983741b7bf904d Mon Sep 17 00:00:00 2001 | ||
2 | From: Tatsuo Ishii <ishii@postgresql.org> | ||
3 | Date: Fri, 3 Oct 2025 21:10:50 +0900 | ||
4 | Subject: [PATCH v1] Make time calculations always long long. | ||
5 | |||
6 | Previously pgpool assumed that time_t to be a simple long. This causes | ||
7 | a lots of compile time warnings on certain systems, for example | ||
8 | OpenBSD because on the system time_t is __int64, which results in long | ||
9 | long. This commit upcasts such calculations to long long to avoid the | ||
10 | issue. | ||
11 | |||
12 | This way times can't get truncated and for the places where time_t is | ||
13 | actually used as a time and not a time diff this would allow pgpool to | ||
14 | keep working correctly post Y2038 on 64 bit clean time_t systems post | ||
15 | Y2038 (e.g. i386 OpenBSD). | ||
16 | |||
17 | Moreover, json_get_long_value_for_key is changed to | ||
18 | json_get_llong_value_for_key and changed the parameter to long long. | ||
19 | This makes it more in line _json_value's integer, which is defined as | ||
20 | int64. This should also give 32 bit platforms proper retrieval of the | ||
21 | max value of an integer and may or may not solve some weird integer | ||
22 | overflow issues. | ||
23 | |||
24 | Author: Martijn van Duren <pgpool@list.imperialat.at> | ||
25 | Reviewed-by: Tatsuo Ishii <ishii@postgresql.org> | ||
26 | Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2025-May/004584.html | ||
27 | |||
28 | From Yocto's perspective this patch also allows this application to | ||
29 | compile for 32-bit targets. | ||
30 | |||
31 | Upstream-Status: Submitted [https://www.postgresql.org/message-id/20251003.211957.2067537305399895611.ishii@postgresql.org] | ||
32 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
33 | |||
34 | --- | ||
35 | src/include/utils/json.h | 2 +- | ||
36 | src/include/watchdog/wd_commands.h | 2 +- | ||
37 | src/include/watchdog/wd_json_data.h | 4 ++-- | ||
38 | src/main/pgpool_logger.c | 2 +- | ||
39 | src/pcp_con/pcp_worker.c | 4 ++-- | ||
40 | src/protocol/pool_connection_pool.c | 12 ++++++------ | ||
41 | src/query_cache/pool_memqcache.c | 6 +++--- | ||
42 | src/utils/json.c | 2 +- | ||
43 | src/utils/pool_process_reporting.c | 2 +- | ||
44 | src/utils/pool_relcache.c | 2 +- | ||
45 | src/watchdog/watchdog.c | 4 ++-- | ||
46 | src/watchdog/wd_commands.c | 4 ++-- | ||
47 | src/watchdog/wd_heartbeat.c | 4 ++-- | ||
48 | src/watchdog/wd_json_data.c | 20 +++++++++++--------- | ||
49 | 14 files changed, 36 insertions(+), 34 deletions(-) | ||
50 | |||
51 | diff --git a/src/include/utils/json.h b/src/include/utils/json.h | ||
52 | index 67cc025..7e24382 100644 | ||
53 | --- a/src/include/utils/json.h | ||
54 | +++ b/src/include/utils/json.h | ||
55 | @@ -313,7 +313,7 @@ extern "C" | ||
56 | /* pgpool-II extensions */ | ||
57 | json_value *json_get_value_for_key(json_value * source, const char *key); | ||
58 | int json_get_int_value_for_key(json_value * source, const char *key, int *value); | ||
59 | -int json_get_long_value_for_key(json_value * source, const char *key, long *value); | ||
60 | +int json_get_llong_value_for_key(json_value * source, const char *key, long long *value); | ||
61 | char *json_get_string_value_for_key(json_value * source, const char *key); | ||
62 | int json_get_bool_value_for_key(json_value * source, const char *key, bool *value); | ||
63 | |||
64 | diff --git a/src/include/watchdog/wd_commands.h b/src/include/watchdog/wd_commands.h | ||
65 | index 34c5b9a..dd788da 100644 | ||
66 | --- a/src/include/watchdog/wd_commands.h | ||
67 | +++ b/src/include/watchdog/wd_commands.h | ||
68 | @@ -52,7 +52,7 @@ typedef struct WDGenericData | ||
69 | char *stringVal; | ||
70 | int intVal; | ||
71 | bool boolVal; | ||
72 | - long longVal; | ||
73 | + long long longVal; | ||
74 | } data; | ||
75 | } WDGenericData; | ||
76 | |||
77 | diff --git a/src/include/watchdog/wd_json_data.h b/src/include/watchdog/wd_json_data.h | ||
78 | index 7b53999..4ad4910 100644 | ||
79 | --- a/src/include/watchdog/wd_json_data.h | ||
80 | +++ b/src/include/watchdog/wd_json_data.h | ||
81 | @@ -51,8 +51,8 @@ extern bool parse_node_status_json(char *json_data, int data_len, int *nodeID, i | ||
82 | |||
83 | |||
84 | extern bool parse_beacon_message_json(char *json_data, int data_len, int *state, | ||
85 | - long *seconds_since_node_startup, | ||
86 | - long *seconds_since_current_state, | ||
87 | + long long *seconds_since_node_startup, | ||
88 | + long long *seconds_since_current_state, | ||
89 | int *quorumStatus, | ||
90 | int *standbyNodesCount, | ||
91 | bool *escalated); | ||
92 | diff --git a/src/main/pgpool_logger.c b/src/main/pgpool_logger.c | ||
93 | index 2060867..21c67a8 100644 | ||
94 | --- a/src/main/pgpool_logger.c | ||
95 | +++ b/src/main/pgpool_logger.c | ||
96 | @@ -50,7 +50,7 @@ | ||
97 | #include "main/pgpool_logger.h" | ||
98 | |||
99 | #define DEVNULL "/dev/null" | ||
100 | -typedef int64 pg_time_t; | ||
101 | +typedef time_t pg_time_t; | ||
102 | /* | ||
103 | * We read() into a temp buffer twice as big as a chunk, so that any fragment | ||
104 | * left after processing can be moved down to the front and we'll still have | ||
105 | diff --git a/src/pcp_con/pcp_worker.c b/src/pcp_con/pcp_worker.c | ||
106 | index de2658d..ddd892a 100644 | ||
107 | --- a/src/pcp_con/pcp_worker.c | ||
108 | +++ b/src/pcp_con/pcp_worker.c | ||
109 | @@ -933,9 +933,9 @@ inform_node_info(PCP_CONNECTION * frontend, char *buf) | ||
110 | |||
111 | snprintf(standby_delay_by_time_str, sizeof(standby_delay_by_time_str), "%d", bi->standby_delay_by_time); | ||
112 | |||
113 | - snprintf(standby_delay_str, sizeof(standby_delay_str), UINT64_FORMAT, bi->standby_delay); | ||
114 | + snprintf(standby_delay_str, sizeof(standby_delay_str), "%lld", (long long)bi->standby_delay); | ||
115 | |||
116 | - snprintf(status_changed_time_str, sizeof(status_changed_time_str), UINT64_FORMAT, bi->status_changed_time); | ||
117 | + snprintf(status_changed_time_str, sizeof(status_changed_time_str), "%lld", (long long)bi->status_changed_time); | ||
118 | |||
119 | pcp_write(frontend, "i", 1); | ||
120 | wsize = htonl(sizeof(code) + | ||
121 | diff --git a/src/protocol/pool_connection_pool.c b/src/protocol/pool_connection_pool.c | ||
122 | index 225294a..03e9a85 100644 | ||
123 | --- a/src/protocol/pool_connection_pool.c | ||
124 | +++ b/src/protocol/pool_connection_pool.c | ||
125 | @@ -299,10 +299,10 @@ pool_create_cp(void) | ||
126 | |||
127 | ereport(DEBUG1, | ||
128 | (errmsg("creating connection pool"), | ||
129 | - errdetail("user: %s database: %s closetime: %ld", | ||
130 | + errdetail("user: %s database: %s closetime: %lld", | ||
131 | CONNECTION_SLOT(p, main_node_id)->sp->user, | ||
132 | CONNECTION_SLOT(p, main_node_id)->sp->database, | ||
133 | - CONNECTION_SLOT(p, main_node_id)->closetime))); | ||
134 | + (long long)CONNECTION_SLOT(p, main_node_id)->closetime))); | ||
135 | |||
136 | if (CONNECTION_SLOT(p, main_node_id)->closetime < closetime) | ||
137 | { | ||
138 | @@ -363,7 +363,7 @@ pool_connection_pool_timer(POOL_CONNECTION_POOL * backend) | ||
139 | |||
140 | ereport(DEBUG1, | ||
141 | (errmsg("setting backend connection close timer"), | ||
142 | - errdetail("close time %ld", time(NULL)))); | ||
143 | + errdetail("close time %lld", (long long)time(NULL)))); | ||
144 | |||
145 | /* Set connection close time */ | ||
146 | for (i = 0; i < NUM_BACKENDS; i++) | ||
147 | @@ -421,7 +421,7 @@ pool_backend_timer(void) | ||
148 | now = time(NULL); | ||
149 | |||
150 | ereport(DEBUG1, | ||
151 | - (errmsg("backend timer handler called at %ld", now))); | ||
152 | + (errmsg("backend timer handler called at %lld", (long long)now))); | ||
153 | |||
154 | for (i = 0; i < pool_config->max_pool; i++, p++) | ||
155 | { | ||
156 | @@ -439,8 +439,8 @@ pool_backend_timer(void) | ||
157 | |||
158 | ereport(DEBUG1, | ||
159 | (errmsg("backend timer handler called"), | ||
160 | - errdetail("expire time: %ld", | ||
161 | - MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time))); | ||
162 | + errdetail("expire time: %lld", | ||
163 | + (long long)(MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time)))); | ||
164 | |||
165 | if (now >= (MAIN_CONNECTION(p)->closetime + pool_config->connection_life_time)) | ||
166 | { | ||
167 | diff --git a/src/query_cache/pool_memqcache.c b/src/query_cache/pool_memqcache.c | ||
168 | index cc70207..03a77b7 100644 | ||
169 | --- a/src/query_cache/pool_memqcache.c | ||
170 | +++ b/src/query_cache/pool_memqcache.c | ||
171 | @@ -280,7 +280,7 @@ pool_commit_cache(POOL_CONNECTION_POOL * backend, char *query, char *data, size_ | ||
172 | memqcache_expire = pool_config->memqcache_expire; | ||
173 | ereport(DEBUG1, | ||
174 | (errmsg("committing SELECT results to cache storage"), | ||
175 | - errdetail("memqcache_expire = %ld", memqcache_expire))); | ||
176 | + errdetail("memqcache_expire = %lld", (long long)memqcache_expire))); | ||
177 | |||
178 | if (pool_is_shmem_cache()) | ||
179 | { | ||
180 | @@ -2887,8 +2887,8 @@ static POOL_CACHEID * pool_find_item_on_shmem_cache(POOL_QUERY_HASH * query_hash | ||
181 | { | ||
182 | ereport(DEBUG1, | ||
183 | (errmsg("memcache finding item"), | ||
184 | - errdetail("cache expired: now: %ld timestamp: %ld", | ||
185 | - now, cih->timestamp + cih->expire))); | ||
186 | + errdetail("cache expired: now: %lld timestamp: %lld", | ||
187 | + (long long)now, (long long)(cih->timestamp + cih->expire)))); | ||
188 | pool_delete_item_shmem_cache(c); | ||
189 | return NULL; | ||
190 | } | ||
191 | diff --git a/src/utils/json.c b/src/utils/json.c | ||
192 | index 319c8fd..9336fde 100644 | ||
193 | --- a/src/utils/json.c | ||
194 | +++ b/src/utils/json.c | ||
195 | @@ -1191,7 +1191,7 @@ json_get_int_value_for_key(json_value * source, const char *key, int *value) | ||
196 | } | ||
197 | |||
198 | int | ||
199 | -json_get_long_value_for_key(json_value * source, const char *key, long *value) | ||
200 | +json_get_llong_value_for_key(json_value * source, const char *key, long long *value) | ||
201 | { | ||
202 | json_value *jNode; | ||
203 | |||
204 | diff --git a/src/utils/pool_process_reporting.c b/src/utils/pool_process_reporting.c | ||
205 | index 71f871b..5910999 100644 | ||
206 | --- a/src/utils/pool_process_reporting.c | ||
207 | +++ b/src/utils/pool_process_reporting.c | ||
208 | @@ -2052,7 +2052,7 @@ get_health_check_stats(int *nrows) | ||
209 | |||
210 | /* status last changed */ | ||
211 | t = bi->status_changed_time; | ||
212 | - ereport(LOG,(errmsg("status_changed_time %ld", t))); | ||
213 | + ereport(LOG,(errmsg("status_changed_time %lld", (long long)t))); | ||
214 | strftime(stats[i].last_status_change, POOLCONFIG_MAXDATELEN, "%F %T", localtime(&t)); | ||
215 | |||
216 | snprintf(stats[i].total_count, POOLCONFIG_MAXLONGCOUNTLEN, UINT64_FORMAT, health_check_stats[i].total_count); | ||
217 | diff --git a/src/utils/pool_relcache.c b/src/utils/pool_relcache.c | ||
218 | index 32362fc..1701cb5 100644 | ||
219 | --- a/src/utils/pool_relcache.c | ||
220 | +++ b/src/utils/pool_relcache.c | ||
221 | @@ -187,7 +187,7 @@ pool_search_relcache(POOL_RELCACHE * relcache, POOL_CONNECTION_POOL * backend, c | ||
222 | { | ||
223 | ereport(DEBUG1, | ||
224 | (errmsg("searching relcache"), | ||
225 | - errdetail("relcache for database:%s table:%s expired. now:%ld expiration time:%ld", dbname, table, now, relcache->cache[i].expire))); | ||
226 | + errdetail("relcache for database:%s table:%s expired. now:%lld expiration time:%lld", dbname, table, (long long)now, (long long)relcache->cache[i].expire))); | ||
227 | |||
228 | relcache->cache[i].refcnt = 0; | ||
229 | break; | ||
230 | diff --git a/src/watchdog/watchdog.c b/src/watchdog/watchdog.c | ||
231 | index beb5a15..a78cc25 100644 | ||
232 | --- a/src/watchdog/watchdog.c | ||
233 | +++ b/src/watchdog/watchdog.c | ||
234 | @@ -6656,8 +6656,8 @@ watchdog_state_machine_nw_isolation(WD_EVENTS event, WatchdogNode * wdNode, WDPa | ||
235 | static bool | ||
236 | beacon_message_received_from_node(WatchdogNode * wdNode, WDPacketData * pkt) | ||
237 | { | ||
238 | - long seconds_since_node_startup; | ||
239 | - long seconds_since_current_state; | ||
240 | + long long seconds_since_node_startup; | ||
241 | + long long seconds_since_current_state; | ||
242 | int quorum_status; | ||
243 | int standby_nodes_count; | ||
244 | bool escalated; | ||
245 | diff --git a/src/watchdog/wd_commands.c b/src/watchdog/wd_commands.c | ||
246 | index 1459558..c5cd1dc 100644 | ||
247 | --- a/src/watchdog/wd_commands.c | ||
248 | +++ b/src/watchdog/wd_commands.c | ||
249 | @@ -193,9 +193,9 @@ get_wd_runtime_variable_value(char* wd_authkey, char *varName) | ||
250 | |||
251 | case VALUE_DATA_TYPE_LONG: | ||
252 | { | ||
253 | - long longVal; | ||
254 | + long long longVal; | ||
255 | |||
256 | - if (json_get_long_value_for_key(root, WD_JSON_KEY_VALUE_DATA, &longVal)) | ||
257 | + if (json_get_llong_value_for_key(root, WD_JSON_KEY_VALUE_DATA, &longVal)) | ||
258 | { | ||
259 | ereport(WARNING, | ||
260 | (errmsg("get runtime variable value from watchdog failed"), | ||
261 | diff --git a/src/watchdog/wd_heartbeat.c b/src/watchdog/wd_heartbeat.c | ||
262 | index 09b1ef5..e42cff5 100644 | ||
263 | --- a/src/watchdog/wd_heartbeat.c | ||
264 | +++ b/src/watchdog/wd_heartbeat.c | ||
265 | @@ -850,8 +850,8 @@ packet_to_string_hb(WdHbPacket * pkt, char *str, int maxlen) | ||
266 | { | ||
267 | int len; | ||
268 | |||
269 | - len = snprintf(str, maxlen, "tv_sec=%ld tv_usec=%ld from=%s", | ||
270 | - pkt->send_time.tv_sec, pkt->send_time.tv_usec, pkt->from); | ||
271 | + len = snprintf(str, maxlen, "tv_sec=%lld tv_usec=%lld from=%s", | ||
272 | + (long long)pkt->send_time.tv_sec, (long long)pkt->send_time.tv_usec, pkt->from); | ||
273 | |||
274 | return len; | ||
275 | } | ||
276 | diff --git a/src/watchdog/wd_json_data.c b/src/watchdog/wd_json_data.c | ||
277 | index 474fc37..602e3bf 100644 | ||
278 | --- a/src/watchdog/wd_json_data.c | ||
279 | +++ b/src/watchdog/wd_json_data.c | ||
280 | @@ -530,6 +530,7 @@ get_watchdog_node_from_json(char *json_data, int data_len, char **authkey) | ||
281 | { | ||
282 | json_value *root = NULL; | ||
283 | char *ptr; | ||
284 | + long long longVal; | ||
285 | WatchdogNode *wdNode = palloc0(sizeof(WatchdogNode)); | ||
286 | |||
287 | root = json_parse(json_data, data_len); | ||
288 | @@ -537,19 +538,20 @@ get_watchdog_node_from_json(char *json_data, int data_len, char **authkey) | ||
289 | if (root == NULL || root->type != json_object) | ||
290 | goto ERROR_EXIT; | ||
291 | |||
292 | - if (json_get_long_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec)) | ||
293 | + if (json_get_llong_value_for_key(root, "StartupTimeSecs", &longVal)) | ||
294 | { | ||
295 | bool escalated; | ||
296 | - long seconds_since_node_startup; | ||
297 | - long seconds_since_current_state; | ||
298 | + long long seconds_since_node_startup; | ||
299 | + long long seconds_since_current_state; | ||
300 | struct timeval current_time; | ||
301 | |||
302 | + wdNode->startup_time.tv_sec = longVal; | ||
303 | gettimeofday(¤t_time, NULL); | ||
304 | |||
305 | /* The new version does not have StartupTimeSecs Key */ | ||
306 | - if (json_get_long_value_for_key(root, "SecondsSinceStartup", &seconds_since_node_startup)) | ||
307 | + if (json_get_llong_value_for_key(root, "SecondsSinceStartup", &seconds_since_node_startup)) | ||
308 | goto ERROR_EXIT; | ||
309 | - if (json_get_long_value_for_key(root, "SecondsSinceCurrentState", &seconds_since_current_state)) | ||
310 | + if (json_get_llong_value_for_key(root, "SecondsSinceCurrentState", &seconds_since_current_state)) | ||
311 | goto ERROR_EXIT; | ||
312 | if (json_get_bool_value_for_key(root, "Escalated", &escalated)) | ||
313 | goto ERROR_EXIT; | ||
314 | @@ -640,8 +642,8 @@ ERROR_EXIT: | ||
315 | bool | ||
316 | parse_beacon_message_json(char *json_data, int data_len, | ||
317 | int *state, | ||
318 | - long *seconds_since_node_startup, | ||
319 | - long *seconds_since_current_state, | ||
320 | + long long *seconds_since_node_startup, | ||
321 | + long long *seconds_since_current_state, | ||
322 | int *quorumStatus, | ||
323 | int *standbyNodesCount, | ||
324 | bool *escalated) | ||
325 | @@ -655,9 +657,9 @@ parse_beacon_message_json(char *json_data, int data_len, | ||
326 | |||
327 | if (json_get_int_value_for_key(root, "State", state)) | ||
328 | goto ERROR_EXIT; | ||
329 | - if (json_get_long_value_for_key(root, "SecondsSinceStartup", seconds_since_node_startup)) | ||
330 | + if (json_get_llong_value_for_key(root, "SecondsSinceStartup", seconds_since_node_startup)) | ||
331 | goto ERROR_EXIT; | ||
332 | - if (json_get_long_value_for_key(root, "SecondsSinceCurrentState", seconds_since_current_state)) | ||
333 | + if (json_get_llong_value_for_key(root, "SecondsSinceCurrentState", seconds_since_current_state)) | ||
334 | goto ERROR_EXIT; | ||
335 | if (json_get_bool_value_for_key(root, "Escalated", escalated)) | ||
336 | goto ERROR_EXIT; | ||
diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.5.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.6.3.bb index 5adb8a7bf0..6d83ce9bc4 100644 --- a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.5.bb +++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.6.3.bb | |||
@@ -13,12 +13,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" | |||
13 | SRC_URI = "https://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ | 13 | SRC_URI = "https://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ |
14 | file://0001-Fix-build-error-when-build-this-file.patch \ | 14 | file://0001-Fix-build-error-when-build-this-file.patch \ |
15 | file://0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch \ | 15 | file://0001-snprintf-Add-math.h-to-ensure-isnan-and-isinf-are-de.patch \ |
16 | file://0001-fix-compiling-on-32-bit-systems.patch \ | 16 | file://v1-0001-Make-time-calculations-always-long-long.patch \ |
17 | file://define_SIGNAL_ARGS.patch \ | 17 | file://define_SIGNAL_ARGS.patch \ |
18 | file://pgpool.sysconfig \ | 18 | file://pgpool.sysconfig \ |
19 | file://pgpool.service \ | 19 | file://pgpool.service \ |
20 | " | 20 | " |
21 | SRC_URI[sha256sum] = "95ffeeaeb6b0cebea8034e30fc1933fec7384b227ad511305eaccc5d090ff998" | 21 | SRC_URI[sha256sum] = "46688668b2ace67d8161a320256252d98698bc7d9788cc6727269d5720299f2c" |
22 | 22 | ||
23 | S = "${UNPACKDIR}/pgpool-II-${PV}" | 23 | S = "${UNPACKDIR}/pgpool-II-${PV}" |
24 | 24 | ||
diff --git a/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb b/meta-networking/recipes-support/spice/spice-guest-vdagent_0.23.0.bb index b13dd5d148..ae43624320 100644 --- a/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb +++ b/meta-networking/recipes-support/spice/spice-guest-vdagent_0.23.0.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "https://spice-space.org" | |||
3 | LICENSE = "GPL-3.0-only" | 3 | LICENSE = "GPL-3.0-only" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
5 | 5 | ||
6 | SRCREV = "aa08162f036840d3e33502dc0a836b03b9cec97c" | 6 | SRCREV = "761770bf10455563375a022315039779bf8aac36" |
7 | 7 | ||
8 | SRC_URI = "git://gitlab.freedesktop.org/spice/linux/vd_agent.git;protocol=https;branch=master" | 8 | SRC_URI = "git://gitlab.freedesktop.org/spice/linux/vd_agent.git;protocol=https;branch=master" |
9 | 9 | ||