uim: Stick to C17
PATCH 1/7 uim: Stick to C17
--- meta-oe/recipes-support/uim/uim_1.9.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/uim/uim_1.9.0.bb +2 -0
@@ -31,6 +31,8 @@ REQUIRED_DISTRO_FEATURES = "x11" GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3" +CFLAGS += "-std=gnu17" + EXTRA_OECONF += "--disable-emacs \ --with-libedit=${STAGING_EXECPREFIXDIR} \ --without-scim \
PATCH 2/7 fluent-bit: Upgrade to 4.0.1 release
Refresh and forward port patches
Add -std=gnu17 to fix build with GCC-15
---
...rivate-makefile-targets-in-CMakelist.patch | 16 ++++---------
...-not-hardcode-compilation-directorie.patch | 2 --
...ts.txt-Revise-init-manager-deduction.patch | 18 +++++++--------
...{fluentbit_3.2.8.bb => fluentbit_4.0.1.bb} | 23 +++++++++++--------
4 files changed, 26 insertions(+), 33 deletions(-)
rename meta-oe/recipes-extended/fluentbit/{fluentbit_3.2.8.bb => fluentbit_4.0.1.bb} (90%)meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch +4 -12
@@ -28,8 +28,6 @@ Upstream-Status: Submitted [https://github.com/fluent/fluent-bit/pull/9450] lib/monkey/CMakeLists.txt | 4 +--- 4 files changed, 7 insertions(+), 21 deletions(-) -diff --git a/lib/cfl/CMakeLists.txt b/lib/cfl/CMakeLists.txt -index 2193cb29c..e2a5cba37 100644 --- a/lib/cfl/CMakeLists.txt +++ b/lib/cfl/CMakeLists.txt @@ -40,12 +40,8 @@ if(NOT MSVC)
@@ -47,8 +45,6 @@ index 2193cb29c..e2a5cba37 100644 -diff --git a/lib/cmetrics/CMakeLists.txt b/lib/cmetrics/CMakeLists.txt -index 18582997d..8f7176dd6 100644 --- a/lib/cmetrics/CMakeLists.txt +++ b/lib/cmetrics/CMakeLists.txt @@ -60,12 +60,8 @@ if(NOT MSVC)
@@ -66,12 +62,10 @@ index 18582997d..8f7176dd6 100644 # Configuration options option(CMT_DEV "Enable development mode" No) -diff --git a/lib/ctraces/CMakeLists.txt b/lib/ctraces/CMakeLists.txt -index e47ba022d..0ddfd5f97 100644 --- a/lib/ctraces/CMakeLists.txt +++ b/lib/ctraces/CMakeLists.txt @@ -30,12 +30,8 @@ set(CTR_VERSION_MINOR 6) - set(CTR_VERSION_PATCH 0) + set(CTR_VERSION_PATCH 4) set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") -# Define __FILENAME__ consistently across Operating Systems
@@ -85,8 +79,6 @@ index e47ba022d..0ddfd5f97 100644 # Configuration options option(CTR_DEV "Enable development mode" No) -diff --git a/lib/monkey/CMakeLists.txt b/lib/monkey/CMakeLists.txt -index 028240bcc..b386cb726 100644 --- a/lib/monkey/CMakeLists.txt +++ b/lib/monkey/CMakeLists.txt @@ -15,10 +15,8 @@ include(GNUInstallDirs)
@@ -95,9 +87,9 @@ index 028240bcc..b386cb726 100644 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__='\"$$(subst ${CMAKE_SOURCE_DIR}/,,$$(abspath \$$<))\"'") -else() -+endif() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") --endif() +-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") + endif() ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") # Monkey Version set(MK_VERSION_MAJOR 1)
meta-oe/recipes-extended/fluentbit/fluentbit/0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch +0 -2
@@ -13,8 +13,6 @@ Upstream-Status: Pending include/fluent-bit/flb_info.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/include/fluent-bit/flb_info.h.in b/include/fluent-bit/flb_info.h.in -index 3a08f8051..aa6a48f29 100644 --- a/include/fluent-bit/flb_info.h.in +++ b/include/fluent-bit/flb_info.h.in @@ -23,7 +23,7 @@
meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch +8 -10
@@ -14,23 +14,21 @@ Upstream-Status: Inappropriate [configuration] src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 8404b65c1..0c7876058 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt -@@ -546,7 +546,7 @@ if(FLB_BINARY) +@@ -569,7 +569,7 @@ if(FLB_BINARY) set(SYSTEMD_UNITDIR /lib/systemd/system) endif() - if(SYSTEMD_UNITDIR) + if(@INIT_MANAGER_IS_SYSTEMD@) - set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service") - configure_file( - "${PROJECT_SOURCE_DIR}/init/systemd.in" -@@ -554,7 +554,7 @@ if(FLB_BINARY) - ) - install(FILES ${FLB_SYSTEMD_SCRIPT} COMPONENT binary DESTINATION ${SYSTEMD_UNITDIR}) - install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary) + if (FLB_AMAZON_LINUX2) + set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service") + configure_file( +@@ -594,7 +594,7 @@ if(FLB_BINARY) + install(FILES ${FLB_SYSTEMD_SCRIPT} COMPONENT binary DESTINATION ${SYSTEMD_UNITDIR}) + install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary) + endif() - elseif(IS_DIRECTORY /usr/share/upstart) + elseif(@INIT_MANAGER_IS_UPSTART@) set(FLB_UPSTART_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.conf")
meta-oe/recipes-extended/fluentbit/fluentbit_4.0.1.bb renamed from meta-oe/recipes-extended/fluentbit/fluentbit_3.2.8.bb +14 -9
@@ -17,9 +17,9 @@ DEPENDS = "\ " DEPENDS:append:libc-musl = " fts" -SRCREV = "d13e8e4ab2029fa92600b7d1d0da28f8dcc350eb" +SRCREV = "b12e507090273576d1156342780c7c6d358fa579" SRC_URI = "\ - git://github.com/fluent/fluent-bit.git;branch=3.2;protocol=https \ + git://github.com/fluent/fluent-bit.git;branch=master;protocol=https \ file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \ file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \ file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \
@@ -109,8 +109,8 @@ PACKAGECONFIG[windows-defaults] = "-DFLB_WINDOWS_DEFAULTS=Yes,-DFLB_WINDOWS_DEFA # individual plugins then to enable (e.g. using EXTRA_OECMAKE:append = " -DFLB_FOOBAR=ON") PACKAGECONFIG[minimal] = "-DFLB_MINIMAL=Yes,-DFLB_MINIMAL=No" -PACKAGECONFIG[in-kafka] = "-DFLB_IN_KAFKA=ON,-DFLB_IN_KAFKA=OFF,librdkafka curl" -PACKAGECONFIG[out-kafka] = "-DFLB_OUT_KAFKA=ON,-DFLB_OUT_KAFKA=OFF,librdkafka curl" +PACKAGECONFIG[in-kafka] = "-DFLB_KAFKA=ON -DFLB_IN_KAFKA=ON,-DFLB_KAFKA=OFF -DFLB_IN_KAFKA=OFF,librdkafka curl" +PACKAGECONFIG[out-kafka] = "-DFLB_KAFKA=ON -DFLB_OUT_KAFKA=ON,-DFLB_KAFKA=OFF -DFLB_OUT_KAFKA=OFF,librdkafka curl" SYSTEMD_SERVICE:${PN} = "fluent-bit.service"
@@ -124,13 +124,18 @@ FULL_OPTIMIZATION:remove = "${@'-O2' if bb.data.inherits_class('clang', d) else TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION}" TARGET_CC_ARCH:remove = "-D_FORTIFY_SOURCE=2" EXTRA_OECMAKE += "-DCMAKE_DEBUG_SRCDIR=${TARGET_DBGSRC_DIR}/" -EXTRA_OECMAKE:append:mips = " -DCMAKE_C_STANDARD_LIBRARIES=-latomic" -EXTRA_OECMAKE:append:powerpc = " -DCMAKE_C_STANDARD_LIBRARIES=-latomic" -EXTRA_OECMAKE:append:riscv32 = " -DCMAKE_C_STANDARD_LIBRARIES=-latomic" -EXTRA_OECMAKE:append:riscv64 = " -DCMAKE_C_STANDARD_LIBRARIES=-latomic" -EXTRA_OECMAKE:append:x86 = " -DCMAKE_C_STANDARD_LIBRARIES=-latomic" + SECURITY_STRINGFORMAT:remove = "${@bb.utils.contains('PACKAGECONFIG', 'aws-error-reporter', '-Werror=format-security', '', d)}" +# GCC-15 uses C23 std and it does not yet compile with C23 +CFLAGS += "-std=gnu17" +# 64bit atomics builtins do not exist in compiler on these arches +LDFLAGS:append:mips = " -latomic" +LDFLAGS:append:powerpc = " -latomic" +LDFLAGS:append:riscv32 = " -latomic" +LDFLAGS:append:riscv64 = " -latomic" +LDFLAGS:append:x86 = " -latomic" + do_configure:prepend() { sed -i \ -e 's#@INIT_MANAGER_IS_SYSTEMD@#'${@'TRUE' if d.getVar('INIT_MANAGER') == 'systemd' else 'FALSE'}'#' \
PATCH 3/7 renderdoc: Upgrade to 1.38
In reply to Khem RajLicense-Upgrade: Copyright year changed
Drop the upstream denied patch, its not needed with clang-20 either
---
...sor-Reorder-stdio.h-include-location.patch | 43 -------------------
.../{renderdoc_1.33.bb => renderdoc_1.38.bb} | 5 +--
2 files changed, 2 insertions(+), 46 deletions(-)
delete mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0001-jpeg-compressor-Reorder-stdio.h-include-location.patch
rename meta-oe/recipes-graphics/renderdoc/{renderdoc_1.33.bb => renderdoc_1.38.bb} (83%)meta-oe/recipes-graphics/renderdoc/renderdoc/0001-jpeg-compressor-Reorder-stdio.h-include-location.patch deleted +0 -43
@@ -1,43 +0,0 @@ -From 4eb26927eebebfc4df8789ba69f60f3c28b8ba33 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 2 Jul 2024 23:36:23 -0700 -Subject: [PATCH] jpeg-compressor: Reorder stdio.h include location - -Current, location ends up with compile errors with clang and glibc 2.40 -fortified headers - -| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/renderdoc/1.33/recipe-sysroot/usr/include/bits/stdio2.h:128:13: error: use of undeclared identifier '__builtin___vfprintf_chk'; did you mean '__builtin___sprintf_chk'? -| 128 | int __r = __builtin___vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, -| | ^ -| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/renderdoc/1.33/recipe-sysroot/usr/include/bits/stdio2.h:128:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'FILE *const __restrict' (aka 'jpge::_IO_FILE *const __restrict') -| 128 | int __r = __builtin___vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, -| | ^~~~~~~~ - -This re-ordering ensures that fortified function prototypes are used correctly. - -Upstream-Status: Submitted [https://github.com/baldurk/renderdoc/pull/3369] -Signed-off-by: Khem Raj <[email protected]> ---- - renderdoc/3rdparty/jpeg-compressor/jpge.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/renderdoc/3rdparty/jpeg-compressor/jpge.cpp b/renderdoc/3rdparty/jpeg-compressor/jpge.cpp -index 74d9d1006..d58e41664 100644 ---- a/renderdoc/3rdparty/jpeg-compressor/jpge.cpp -+++ b/renderdoc/3rdparty/jpeg-compressor/jpge.cpp -@@ -10,6 +10,7 @@ - - #include "jpge.h" - -+#include <stdio.h> - #include <stdlib.h> - #include <string.h> - -@@ -897,7 +898,6 @@ bool jpeg_encoder::process_scanline(const void* pScanline) - } - - // Higher level wrappers/examples (optional). --#include <stdio.h> - - class cfile_stream : public output_stream - {
meta-oe/recipes-graphics/renderdoc/renderdoc_1.38.bb renamed from meta-oe/recipes-graphics/renderdoc/renderdoc_1.33.bb +2 -3
@@ -2,12 +2,11 @@ SUMMARY = "RenderDoc recipe providing renderdoccmd" DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger" HOMEPAGE = "https://github.com/baldurk/renderdoc" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5536c2b72eeed14bafaf4d2a6c032b87" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=963d134bd809d24547253120513346d3" -SRCREV = "cae289323847ce0a84a0deca4958183567eee17e" +SRCREV = "34c3c40787f440da9c2947cd63a41e6c4d1f95b9" SRC_URI = " \ git://github.com/baldurk/${BPN}.git;protocol=https;branch=v1.x \ - file://0001-jpeg-compressor-Reorder-stdio.h-include-location.patch \ " S = "${WORKDIR}/git"
PATCH 4/7 geany: Upgrade to 2.0 release
In reply to Khem Raj---
...onfigure-Upgrade-to-a-modern-Gettext.patch | 11 +-
.../geany/geany/geany-2.0-gcc15.patch | 146 ++++++++++++++++++
.../geany/{geany_1.38.bb => geany_2.0.bb} | 3 +-
3 files changed, 153 insertions(+), 7 deletions(-)
create mode 100644 meta-oe/recipes-devtools/geany/geany/geany-2.0-gcc15.patch
rename meta-oe/recipes-devtools/geany/{geany_1.38.bb => geany_2.0.bb} (82%)meta-oe/recipes-devtools/geany/geany/0001-configure-Upgrade-to-a-modern-Gettext.patch +5 -6
@@ -11,12 +11,11 @@ Signed-off-by: Khem Raj <[email protected]> --- a/configure.ac +++ b/configure.ac -@@ -8,7 +8,7 @@ AC_CONFIG_AUX_DIR([build-aux]) - AC_CONFIG_MACRO_DIR([m4]) +@@ -9,6 +9,7 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11 -Wall parallel-tests subdir-objects]) AC_CONFIG_HEADERS([config.h]) -- -+AC_PROG_INTLTOOL - m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) - GEANY_PREFIX ++AC_PROG_INTLTOOL + # Silence "AC_LINK_IFELSE before AC_USE_SYSTEM_EXTENSIONS" warnings + # Note: Enables _GNU_SOURCE on Linux + AC_USE_SYSTEM_EXTENSIONS
meta-oe/recipes-devtools/geany/geany/geany-2.0-gcc15.patch new file +146 -0
146 lines not on this page · raw message
meta-oe/recipes-devtools/geany/geany_2.0.bb renamed from meta-oe/recipes-devtools/geany/geany_1.38.bb +2 -1
@@ -11,8 +11,9 @@ REQUIRED_DISTRO_FEATURES = "x11" SRC_URI = "https://download.geany.org/${BP}.tar.bz2 \ file://0001-configure-Upgrade-to-a-modern-Gettext.patch \ + file://geany-2.0-gcc15.patch \ " -SRC_URI[sha256sum] = "abff176e4d48bea35ee53037c49c82f90b6d4c23e69aed6e4a5ca8ccd3aad546" +SRC_URI[sha256sum] = "565b4cd2f0311c1e3a167ec71c4a32dba642e0fe554ae5bb6b8177b7a74ccc92" FILES:${PN} += "${datadir}/icons"
PATCH 5/7 geany-plugins: Upgrade to 2.0 release
In reply to Khem RajBackport build fixed for gcc-15
---
...anizer-fix-invalid-string-comparison.patch | 24 +++++
...rojectorganizer-fix-various-warnings.patch | 45 ++++++++++
...-Use-g_pattern_spec_match_string-ins.patch | 89 +++++++++++++++++++
.../geany-plugins-2.0-gcc15.patch | 30 +++++++
...y-plugins_1.38.bb => geany-plugins_2.0.bb} | 14 ++-
5 files changed, 193 insertions(+), 9 deletions(-)
create mode 100644 meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch
create mode 100644 meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch
create mode 100644 meta-oe/recipes-devtools/geany/geany-plugins/0003-projectorganizer-Use-g_pattern_spec_match_string-ins.patch
create mode 100644 meta-oe/recipes-devtools/geany/geany-plugins/geany-plugins-2.0-gcc15.patch
rename meta-oe/recipes-devtools/geany/{geany-plugins_1.38.bb => geany-plugins_2.0.bb} (94%)meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 8dfd7f2cba428f5eb232fbbe3427c64171bae0f4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= <[email protected]> +Date: Tue, 5 Mar 2024 18:36:37 +0100 +Subject: [PATCH 1/3] projectorganizer: fix invalid string comparison + +Upstream-Status: Backport [https://github.com/geany/geany-plugins/commit/8dfd7f2cba428f5eb232fbbe3427c64171bae0f4] +Signed-off-by: Khem Raj <[email protected]> +--- + projectorganizer/src/prjorg-sidebar.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/projectorganizer/src/prjorg-sidebar.c b/projectorganizer/src/prjorg-sidebar.c +index b6422f0..0139473 100644 +--- a/projectorganizer/src/prjorg-sidebar.c ++++ b/projectorganizer/src/prjorg-sidebar.c +@@ -346,7 +346,7 @@ static gchar *get_fallback_dir_of_selection(void) + { + locale_path = g_path_get_dirname(doc->real_path); + +- if (locale_path && locale_path == '.') ++ if (locale_path && *locale_path == '.') + { + g_free(locale_path); + locale_path = NULL;
meta-oe/recipes-devtools/geany/geany-plugins/0002-projectorganizer-fix-various-warnings.patch new file +45 -0
45 lines not on this page · raw message
meta-oe/recipes-devtools/geany/geany-plugins/0003-projectorganizer-Use-g_pattern_spec_match_string-ins.patch new file +89 -0
89 lines not on this page · raw message
meta-oe/recipes-devtools/geany/geany-plugins/geany-plugins-2.0-gcc15.patch new file +30 -0
@@ -0,0 +1,30 @@ +Fix build with GCC-15 + +Upstream-Status: Backport [https://github.com/geany/geany-plugins/pull/1389] +Signed-off-by: Khem Raj <[email protected]> +--- a/git-changebar/src/gcb-plugin.c ++++ b/git-changebar/src/gcb-plugin.c +@@ -1410,9 +1410,9 @@ read_setting_boolean (GKeyFile *kf, + const gchar *key, + gpointer value) + { +- gboolean *bool = value; ++ gboolean *boolean = value; + +- *bool = utils_get_setting_boolean (kf, group, key, *bool); ++ *boolean = utils_get_setting_boolean (kf, group, key, *boolean); + } + + static void +@@ -1421,9 +1421,9 @@ write_setting_boolean (GKeyFile *kf, + const gchar *key, + gconstpointer value) + { +- const gboolean *bool = value; ++ const gboolean *boolean = value; + +- g_key_file_set_boolean (kf, group, key, *bool); ++ g_key_file_set_boolean (kf, group, key, *boolean); + } + + /* loads @filename in @kf and return %FALSE if failed, emitting a warning
meta-oe/recipes-devtools/geany/geany-plugins_2.0.bb renamed from meta-oe/recipes-devtools/geany/geany-plugins_1.38.bb +5 -9
@@ -30,12 +30,12 @@ REQUIRED_DISTRO_FEATURES = "x11" SRC_URI = " \ https://plugins.geany.org/${BPN}/${BP}.tar.bz2 \ - file://0001-Use-pkg-config-to-find-gpgme.patch \ - file://0001-git-changebar-Adjust-structs-for-libgit2-1.4.x.patch \ - file://0001-geany.m4-Do-not-tinker-with-pkg-config-paths.patch \ - file://0001-scope-Use-0-instead-of-NULL-for-gboolean.patch \ + file://geany-plugins-2.0-gcc15.patch \ + file://0001-projectorganizer-fix-invalid-string-comparison.patch \ + file://0002-projectorganizer-fix-various-warnings.patch \ + file://0003-projectorganizer-Use-g_pattern_spec_match_string-ins.patch \ " -SRC_URI[sha256sum] = "1c578a7ebb390aa8882f195acd3d8da3ceb73925d291b28dec90cd3e5fd20586" +SRC_URI[sha256sum] = "9fc2ec5c99a74678fb9e8cdfbd245d3e2061a448d70fd110a6aefb62dd514705" do_configure:prepend() { rm -f ${S}/build/cache/glib-gettext.m4
@@ -75,8 +75,6 @@ PLUGINS += "${PN}-defineformat" LIC_FILES_CHKSUM += "file://defineformat/COPYING;md5=751419260aa954499f7abaabaa882bbe" FILES:${PN}-defineformat = "${libdir}/geany/defineformat.so" -# no gnome devhelp in some common layer -EXTRA_OECONF += "--disable-devhelp" #PLUGINS += "${PN}-devhelp" #LIC_FILES_CHKSUM += "file://devhelp/COPYING;md5=d32239bcb673463ab874e80d47fae504" #LICENSE:${PN}-devhelp = "GPLv3"
@@ -165,8 +163,6 @@ EXTRA_OECONF += "--disable-peg-markdown" #LIC_FILES_CHKSUM += "file://markdown/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" #FILES:${PN}-markdown = "${libdir}/geany/markdown.so" -# | checking whether the GTK version in use is compatible with plugin multiterm... no -EXTRA_OECONF += "--disable-multiterm" #PLUGINS += "${PN}-multiterm" #LIC_FILES_CHKSUM += "file://multiterm/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" #FILES:${PN}-multiterm = "${libdir}/geany/multiterm.so"
PATCH 6/7 python3-icu: Fix build with GCC-15
In reply to Khem Rajdrop is_trivial check
Fixes
| In file included from bases.cpp:32: | arg.h:856:37: error: static assertion failed | 856 | static_assert(std::is_trivial<T>::value); \ | | ~~~~~~~~~~~~~~~~~~~~^~~~~ | arg.h:859:1: note: in expansion of macro '_IS_POD' | 859 | _IS_POD(AnyPythonObject); | | ^~~~~~~
--- ...ove-assert-checking-for-trivial-type.patch | 26 +++++++++++++++++++ .../python/python3-icu_2.15.2.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patch
meta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 3d58fb48bb1cef2177aab8e291167638993495f4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 May 2025 21:27:34 -0700 +Subject: [PATCH] Remove assert checking for trivial type + +This fails with GCC-15, is_trivial is deprecated in C++26 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + arg.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/arg.h b/arg.h +index a493d11..6cb232d 100644 +--- a/arg.h ++++ b/arg.h +@@ -853,7 +853,6 @@ public: + }; + + #define _IS_POD(T) \ +- static_assert(std::is_trivial<T>::value); \ + static_assert(std::is_standard_layout<T>::value) + + _IS_POD(AnyPythonObject);
meta-python/recipes-devtools/python/python3-icu_2.15.2.bb +2 -1
@@ -12,7 +12,8 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" SRC_URI[sha256sum] = "561e77eedff17cec6839f26211f7a5ce3c071b776e8a0ec9d1207f46cbce598f" -SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch" +SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch \ + file://0001-Remove-assert-checking-for-trivial-type.patch" inherit pkgconfig pypi python_setuptools_build_meta
Re: [oe] [meta-python][PATCH 6/7] python3-icu: Fix build with GCC-15
FYI: In next release we should be able to drop this .patch as it should be resolved by:
https://gitlab.pyicu.org/main/pyicu/-/commit/82fa082b149db81c894e0d887c0fff67c3d2826f
Quoted 73 lines · Khem Raj via lists.openembedded.org
drop
is_trivialcheck
Fixes| In file included from bases.cpp:32: | arg.h:856:37: error: static assertion failed | 856 | static_assert(std::is_trivial<T>::value); \ | | ~~~~~~~~~~~~~~~~~~~~^~~~~ | arg.h:859:1: note: in expansion of macro '_IS_POD' | 859 | _IS_POD(AnyPythonObject); | | ^~~~~~~Signed-off-by Khem Raj <[email protected]>--- ...ove-assert-checking-for-trivial-type.patch | 26 +++++++++++++++++++ .../python/python3-icu_2.15.2.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patchmeta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patch new file +26
-0@@ -0,0 +1,26 @@ +From 3d58fb48bb1cef2177aab8e291167638993495f4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 May 2025 21:27:34 -0700 +Subject: [PATCH] Remove assert checking for trivial type + +This fails with GCC-15, is_trivial is deprecated in C++26 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + arg.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/arg.h b/arg.h +index a493d11..6cb232d 100644 +--- a/arg.h ++++ b/arg.h +@@ -853,7 +853,6 @@ public: + }; + + #define _IS_POD(T) \ +- static_assert(std::is_trivial<T>::value); \ + static_assert(std::is_standard_layout<T>::value) + + _IS_POD(AnyPythonObject);meta-python/recipes-devtools/python/python3-icu_2.15.2.bb +2
-2@@ -12,7 +12,8 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" SRC_URI[sha256sum] = "561e77eedff17cec6839f26211f7a5ce3c071b776e8a0ec9d1207f46cbce598f" -SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch" +SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch \ + file://0001-Remove-assert-checking-for-trivial-type.patch" inherit pkgconfig pypi python_setuptools_build_meta -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#117295): https://lists.openembedded.org/g/openembedded-devel/message/117295
Mute This Topic: https://lists.openembedded.org/mt/112625197/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 6/7] python3-icu: Fix build with GCC-15
Quoted 5 lines · Martin Jansa
FYI: In next release we should be able to drop this .patch as it should be resolved by:
https://gitlab.pyicu.org/main/pyicu/-/commit/82fa082b149db81c894e0d887c0fff67c3d2826f
Thanks Martin, I think its better to replace my patch with what got applied upstream
care to send a patch?
Quoted 75 lines
Quoted 73 lines · Khem Raj via lists.openembedded.org
drop
is_trivialcheck
Fixes| In file included from bases.cpp:32: | arg.h:856:37: error: static assertion failed | 856 | static_assert(std::is_trivial<T>::value); \ | | ~~~~~~~~~~~~~~~~~~~~^~~~~ | arg.h:859:1: note: in expansion of macro '_IS_POD' | 859 | _IS_POD(AnyPythonObject); | | ^~~~~~~Signed-off-by Khem Raj <[email protected]>--- ...ove-assert-checking-for-trivial-type.patch | 26 +++++++++++++++++++ .../python/python3-icu_2.15.2.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patchmeta-python/recipes-devtools/python/python3-icu/0001-Remove-assert-checking-for-trivial-type.patch new file +26
-0@@ -0,0 +1,26 @@ +From 3d58fb48bb1cef2177aab8e291167638993495f4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 May 2025 21:27:34 -0700 +Subject: [PATCH] Remove assert checking for trivial type + +This fails with GCC-15, is_trivial is deprecated in C++26 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + arg.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/arg.h b/arg.h +index a493d11..6cb232d 100644 +--- a/arg.h ++++ b/arg.h +@@ -853,7 +853,6 @@ public: + }; + + #define _IS_POD(T) \ +- static_assert(std::is_trivial<T>::value); \ + static_assert(std::is_standard_layout<T>::value) + + _IS_POD(AnyPythonObject);meta-python/recipes-devtools/python/python3-icu_2.15.2.bb +2
-2@@ -12,7 +12,8 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" SRC_URI[sha256sum] = "561e77eedff17cec6839f26211f7a5ce3c071b776e8a0ec9d1207f46cbce598f" -SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch" +SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch \ + file://0001-Remove-assert-checking-for-trivial-type.patch" inherit pkgconfig pypi python_setuptools_build_meta -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#117295): https://lists.openembedded.org/g/openembedded-devel/message/117295
Mute This Topic: https://lists.openembedded.org/mt/112625197/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 7/7 pcp: Upgrade to 6.3.7 release
In reply to Khem Raj* Fix packaging scripts needing bash separately
* Fix packaging QA errors about staticlibs and dev-so
* Add a patch to use native pmcpp during target build
---
...cp-native_6.0.5.bb => pcp-native_6.3.7.bb} | 3 +-
meta-oe/recipes-support/pcp/pcp.inc | 6 ++--
...1-bind2-Use-pmcpp-from-native-builds.patch | 30 ++++++++++++++++
...ndency-order-of-header-and-sourcefil.patch | 11 ++----
.../pcp/{pcp_6.0.5.bb => pcp_6.3.7.bb} | 36 ++++++++++++++-----
5 files changed, 65 insertions(+), 21 deletions(-)
rename meta-oe/recipes-support/pcp/{pcp-native_6.0.5.bb => pcp-native_6.3.7.bb} (93%)
create mode 100644 meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch
rename meta-oe/recipes-support/pcp/{pcp_6.0.5.bb => pcp_6.3.7.bb} (89%)meta-oe/recipes-support/pcp/pcp-native_6.3.7.bb renamed from meta-oe/recipes-support/pcp/pcp-native_6.0.5.bb +2 -1
@@ -44,5 +44,6 @@ do_install () { PCP_LIBADM_DIR=${D}/${libdir} \ PCP_LIB_DIR=${D}/${libdir} \ PCP_MAN_DIR=${D}/${mandir} \ - PCP_DOC_DIR=${D}/${docdir} + PCP_DOC_DIR=${D}/${docdir} \ + PCP_SYSTEMDUNIT_DIR=${D}${systemd_system_unitdir} }
meta-oe/recipes-support/pcp/pcp.inc +2 -4
@@ -7,13 +7,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=37ab75b580d5aad4ada04260efa3702f \ " COMPATIBLE_HOST:libc-musl = "null" -SRC_URI = "git://github.com/performancecopilot/pcp;branch=main;protocol=https \ +SRC_URI = "git://github.com/performancecopilot/pcp;branch=stable;protocol=https \ file://0001-configure-Limit-the-header-search-to-sysroot.patch \ file://0001-htop-Change-dependency-order-of-header-and-sourcefil.patch \ file://config.linux \ " -SRCREV = "c13558fd0df54438cbb87cf303dc279cb58816c2" +SRCREV = "d8d97b79ee47d9dfb076a3242564ed3cae04eba9" S = "${WORKDIR}/git"
@@ -39,5 +39,3 @@ EXTRA_OECONF:append = "\ PACKAGECONFIG[qt5] = "--with-qt=yes --with-qt3d=yes,--with-qt=no --with-qt3d=no,qtbase qt3d" PACKAGECONFIG ?= "" - -PARALLEL_MAKE = ""
meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 4c79ea13b8456155e1acd6a53a2586b6c2c32e05 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 May 2025 14:27:30 -0700 +Subject: [PATCH] bind2: Use pmcpp from native builds + +This is needed for cross compiling. Fixes +| ./mk.rewrite +| ./mk.rewrite: line 41: ../../pmcpp/pmcpp.static: No such file or directory +| Error: pmcpp failed +| make[3]: *** [GNUmakefile:54: rewrite.conf] Error 1 + +Upstream-Status: Inappropriate [Cross-compiling specific] +Signed-off-by: Khem Raj <[email protected]> +--- + src/pmdas/bind2/mk.rewrite | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pmdas/bind2/mk.rewrite b/src/pmdas/bind2/mk.rewrite +index 36e8dc1e61..142a75a824 100755 +--- a/src/pmdas/bind2/mk.rewrite ++++ b/src/pmdas/bind2/mk.rewrite +@@ -38,7 +38,7 @@ inlist == 1 { print }' \ + -e 's/[ ][ ]*\([0-9][0-9]*\)/ { pmid -> BIND2.0.\1 }/' \ + ) >$tmp.tmp + +-if PCP_CONF=../../include/pcp.conf ../../pmcpp/pmcpp.static -P <$tmp.tmp >>rewrite.conf ++if PCP_CONF=../../include/pcp.conf pmcpp -P <$tmp.tmp >>rewrite.conf + then + : + else
meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch +3 -8
@@ -16,14 +16,12 @@ Signed-off-by: Khem Raj <[email protected]> src/pcp/htop/GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/src/pcp/htop/GNUmakefile b/src/pcp/htop/GNUmakefile -index 6b7c0c5..5153c63 100644 --- a/src/pcp/htop/GNUmakefile +++ b/src/pcp/htop/GNUmakefile -@@ -186,8 +186,8 @@ CFGMETERS = $(patsubst %,pcp/meters/%,$(METERS)) - CFGCOLUMNS = $(patsubst %,pcp/columns/%,$(COLUMNS)) +@@ -210,8 +210,8 @@ CFGCOLUMNS = $(patsubst %,pcp/columns/%, + CFGSCREENS = $(patsubst %,pcp/screens/%,$(SCREENS)) - CFGXFILES = $(CFGMETERS) $(CFGCOLUMNS) + CFGXFILES = $(CFGMETERS) $(CFGCOLUMNS) $(CFGSCREENS) -TOPXFILES = $(TOPCFILES) $(TOPHFILES) $(DOCFILES) -SUBXFILES = $(SUBCFILES) $(SUBHFILES) +TOPXFILES = $(TOPHFILES) $(TOPCFILES) $(DOCFILES)
@@ -31,6 +29,3 @@ index 6b7c0c5..5153c63 100644 CFILES = $(TOPCFILES) $(SUBCFILES) HFILES = $(TOPHFILES) $(SUBHFILES) LDIRT = $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) \ --- -2.41.0 -
meta-oe/recipes-support/pcp/pcp_6.3.7.bb renamed from meta-oe/recipes-support/pcp/pcp_6.0.5.bb +28 -8
@@ -13,12 +13,16 @@ DEPENDS += "perl-native bison-native flex-native python3-native python3-setuptoo SRC_URI += "file://0001-Remove-unsuitble-part-for-cross-compile.patch \ file://pass-options-to-AR.patch \ file://fix_parallel_make.patch \ + file://0001-bind2-Use-pmcpp-from-native-builds.patch \ " export PCP_DIR = "${RECIPE_SYSROOT_NATIVE}" #export PCP_RUN_DIR = "${RECIPE_SYSROOT_NATIVE}" -EXTRA_OEMAKE = "CC="${CC}" LD="${LD}"" -inherit useradd systemd features_check python3targetconfig +EXTRA_OEMAKE = '\ + CC="${CC}" LD="${LD}" CROSS_COMPILING="yes" \ + PCP_SYSTEMDUNIT_DIR=${systemd_system_unitdir} \ +' +inherit useradd systemd features_check python3targetconfig gtk-icon-cache # Needs libx11 REQUIRED_DISTRO_FEATURES = "x11"
@@ -48,6 +52,7 @@ USERADD_PARAM:${PN}-testsuite = "--system --home ${localstatedir}/lib/pcp/testsu --user-group pcpqa" RDEPENDS:${PN} += "perl" +RDEPENDS:${PN}-xsos += "${PN} bash" RDEPENDS:${PN}-testsuite += "${PN} bash perl" RDEPENDS:python3-${PN} += "${PN} python3"
@@ -69,6 +74,7 @@ do_compile:prepend() { ${S}/src/include/builddefs sed -i -e "s,TOPDIR)/python3-pcp.list,TOPDIR)/python3-pcp.list --install-lib=${PYTHON_SITEPACKAGES_DIR},g" ${S}/src/python/GNUmakefile export PYTHON=python3 + export PATH=${PATH}:${RECIPE_SYSROOT_NATIVE}${libexecdir}/pcp/bin #export PYTHON3=${STAGING_BINDIR_NATIVE}/python3-native/python3 }
@@ -85,10 +91,6 @@ do_install () { rm -rf ${D}${localstatedir}/lib/pcp/pmcd rm -rf ${D}${localstatedir}/lib/pcp/tmp rm -rf ${D}${localstatedir}/run - mv ${D}${docdir}/C* ${D}${docdir}/pcp-doc/ - mv ${D}${docdir}/I* ${D}${docdir}/pcp-doc/ - mv ${D}${docdir}/R* ${D}${docdir}/pcp-doc/ - mv ${D}${docdir}/V* ${D}${docdir}/pcp-doc/ sed -i "s#PCP_AWK_PROG=.*#PCP_AWK_PROG=awk#" ${D}/${sysconfdir}/pcp.conf sed -i "s#PCP_SORT_PROG=.*#PCP_SORT_PROG=sort#" ${D}/${sysconfdir}/pcp.conf sed -i "s#PCP_ECHO_PROG=.*#PCP_ECHO_PROG=echo#" ${D}/${sysconfdir}/pcp.conf
@@ -99,7 +101,8 @@ do_install () { -e 's#${TMPDIR}##g' ${D}${includedir}/pcp/builddefs } -PACKAGES += " ${PN}-export-zabbix-agent ${PN}-testsuite \ +PACKAGE_BEFORE_PN = "${PN}-xsos" +PACKAGES =+ " ${PN}-export-zabbix-agent ${PN}-testsuite \ libpcp-gui2 libpcp-gui2-dev \ libpcp-import1 libpcp-archive1 \ libpcp-mmv1 libpcp-mmv1-dev \
@@ -109,7 +112,7 @@ PACKAGES += " ${PN}-export-zabbix-agent ${PN}-testsuite \ libpcp3 libpcp3-dev python3-${PN}\ " FILES:libpcp-gui2 = "${libdir}/libpcp_gui.so.2 \ -" +" FILES:libpcp-archive1 = "${libdir}/libpcp_archive.so.1 \ " FILES:libpcp-gui2-dev = " \
@@ -118,6 +121,8 @@ FILES:libpcp-gui2-dev = " \ ${includedir}/pmafm.h \ ${includedir}/pmtime.h \ " +INSANE_SKIP:libpcp-gui2-dev = "staticdev" + FILES:libpcp-mmv1 = " \ ${libdir}/libpcp_mmv.so.1 \ "
@@ -130,6 +135,8 @@ FILES:libpcp-mmv1-dev = " \ ${datadir}/man/man3/mmv_* \ ${datadir}/man/man5/mmv.5.gz \ " +INSANE_SKIP:libpcp-mmv1-dev = "staticdev" + FILES:libpcp-import1 = " \ ${libdir}/libpcp_import.so.1 \ "
@@ -145,6 +152,8 @@ FILES:libpcp-pmda3-dev = " \ ${datadir}/man/man3/PMDA.3.gz \ ${datadir}/man/man3/pmda* \ " +INSANE_SKIP:libpcp-pmda3-dev = "staticdev" + FILES:libpcp-trace2 = " \ ${libdir}/libpcp_trace.so.2 \ "
@@ -155,6 +164,8 @@ FILES:libpcp-trace2-dev = " \ ${libdir}/libpcp_trace.so \ ${datadir}/man/man3/pmtrace* \ " +INSANE_SKIP:libpcp-trace2-dev = "staticdev" + FILES:libpcp-web1 = " \ ${libdir}/libpcp_web.so.1 \ "
@@ -166,10 +177,15 @@ FILES:libpcp-web1-dev = " \ ${datadir}/man/man3/pmhttp* \ ${datadir}/man/man3/pmjson* \ " +INSANE_SKIP:libpcp-web1-dev = "staticdev" + FILES:libpcp3 = " \ ${libdir}/libpcp.so.3 \ " +FILES:${PN}-xsos = " \ + ${libexecdir}/pcp/bin/pcp-xsos \ +" FILES:${PN} = " \ ${sysconfdir}/pcp \ ${sysconfdir}/cron.d \
@@ -179,6 +195,7 @@ FILES:${PN} = " \ ${datadir}/bash-completion \ ${datadir}/pcp-gui \ ${datadir}/zsh \ + ${datadir}/icons \ ${systemd_system_unitdir}/ \ ${libdir}/pcp/ \ ${libdir}/sysusers.d/pcp.conf \
@@ -192,6 +209,7 @@ FILES:${PN} = " \ ${localstatedir}/lib/pcp/pmdas/ \ ${localstatedir}/lib/pcp/pmns \ ${libdir}/libpcp_fault.so.3 \ + ${nonarch_libdir}/tmpfiles.d/pcp-reboot-init.conf \ " FILES:${PN}-export-zabbix-agent += " \
@@ -200,6 +218,8 @@ FILES:${PN}-export-zabbix-agent += " \ ${mandir}/man3/zbxpcp.3.gz \ ${libdir}/zabbix \ " +INSANE_SKIP:${PN}-export-zabbix-agent = "dev-so" + FILES:${PN}-testsuite = "${localstatedir}/lib/pcp/testsuite/ ${libdir}/sysusers.d/pcp-testsuite.conf" FILES:python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}" FILES:${PN}-dev += " \