networkmanager-openconnect: only require webkit2gtk for the auth dialog
PATCH 101/128 networkmanager-openconnect: only require webkit2gtk for the auth dialog
The webkit2gtk pkg-config check was unconditional, but WEBKIT is only used by the GNOME auth dialog. Move it under the with-gnome guard
add webkitgtk3 to the gnome PACKAGECONFIG deps
ship the D-Bus system policy file.
--- ...quire-webkit2gtk-when-building-the-a.patch | 54 +++++++++++++++++++ .../networkmanager-openconnect_1.2.10.bb | 7 ++- 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect/0001-configure-only-require-webkit2gtk-when-building-the-a.patch
meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect/0001-configure-only-require-webkit2gtk-when-building-the-a.patch new file +54 -0
@@ -0,0 +1,54 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 23 Jun 2026 00:00:00 +0000 +Subject: [PATCH] configure: only require webkit2gtk when building the auth + dialog + +The webkit2gtk pkg-config module (webkit2gtk-4.1 / -4.0) is only ever used +by the GNOME authentication dialog (auth-dialog/nm-openconnect-auth-dialog), +which is built only when WITH_GNOME && WITH_AUTHDLG. However configure.ac +runs PKG_CHECK_MODULES(WEBKIT, ...) unconditionally, so a VPN-service-only +build configured with --without-gnome (and hence without the auth dialog) +still hard-fails with: + + configure: error: Neither webkit2gtk-4.0 nor webkit2gtk-4.1 found + +Move the WEBKIT check inside the "with_authdlg" block (next to the +OPENCONNECT check which is already guarded the same way) so that webkit2gtk +is only required when the auth dialog is actually being built. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 1111111..2222222 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -145,10 +145,6 @@ if test x"$with_gtk4" != xno; then + PKG_CHECK_MODULES(LIBNMA_GTK4, libnma-gtk4 >= 1.8.33) + fi + +-PKG_CHECK_MODULES(WEBKIT, webkit2gtk-4.1, [wekbit=4.1], +- [PKG_CHECK_MODULES(WEBKIT, webkit2gtk-4.0, +- [webkit=4.0], AC_MSG_ERROR(Neither webkit2gtk-4.0 nor wekit2gtk-4.1 found))]) +- + PKG_CHECK_MODULES(LIBNM, libnm >= 1.2.0) + LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2" + LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_4" +@@ -165,6 +161,10 @@ else + fi + if test x"$with_authdlg" != xno; then + PKG_CHECK_MODULES(OPENCONNECT, openconnect >= 3.02) ++ PKG_CHECK_MODULES(WEBKIT, webkit2gtk-4.1, [webkit=4.1], ++ [PKG_CHECK_MODULES(WEBKIT, webkit2gtk-4.0, ++ [webkit=4.0], ++ AC_MSG_ERROR(Neither webkit2gtk-4.0 nor webkit2gtk-4.1 found))]) + fi + AM_CONDITIONAL(WITH_AUTHDLG, test x"$with_authdlg" != xno) + +-- +2.43.0
meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.10.bb +5 -2
@@ -9,14 +9,16 @@ DEPENDS = "glib-2.0-native intltool-native libxml2 networkmanager openconnect" GNOMEBASEBUILDCLASS = "autotools" inherit gnomebase useradd -SRC_URI = "${GNOME_MIRROR}/NetworkManager-openconnect/${@gnome_verdir("${PV}")}/NetworkManager-openconnect-${PV}.tar.xz" +SRC_URI = "${GNOME_MIRROR}/NetworkManager-openconnect/${@gnome_verdir("${PV}")}/NetworkManager-openconnect-${PV}.tar.xz \ + file://0001-configure-only-require-webkit2gtk-when-building-the-a.patch \ +" SRC_URI[sha256sum] = "844b6bf64ecadb97b4a68c776db89aa5e6ee7e59bd24b0180228406863136464" S = "${UNPACKDIR}/NetworkManager-openconnect-${PV}" # meta-gnome in layers is required using gnome: -PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 gcr3 libnma libsecret," +PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 gcr3 libnma libsecret webkitgtk3," PACKAGECONFIG[gtk4] = "--with-gtk4,--without-gtk4,gtk4," do_configure:append() {
@@ -35,6 +37,7 @@ USERADD_PARAM:${PN} = "--system nm-openconnect" FILES:${PN} += " \ ${libdir}/NetworkManager/*.so \ ${nonarch_libdir}/NetworkManager/VPN/nm-openconnect-service.name \ + ${datadir}/dbus-1/system.d \ " FILES:${PN}-staticdev += " \
PATCH 102/128 weechat: fix cross Python detection
Inherit python3targetconfig
point CMake's FindPython at the target sysroot libpython/headers so Embed component resolves when cross compiling.
--- meta-networking/recipes-irc/weechat/weechat_4.9.2.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
meta-networking/recipes-irc/weechat/weechat_4.9.2.bb +9 -1
@@ -10,7 +10,7 @@ SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz" SRC_URI[sha256sum] = "d1389a9e521bda0c4ebfa108e2abf885ee6c5150c385299f5dca0181a43a0914" -inherit cmake pkgconfig +inherit cmake pkgconfig python3targetconfig PACKAGECONFIG ??= " ncurses python" PACKAGECONFIG[ncurses] = "-DENABLE_NCURSES=ON,-DENABLE_NCURSES=OFF,ncurses"
@@ -21,6 +21,14 @@ EXTRA_OECMAKE:append = " -DENABLE_PHP=OFF -DENABLE_TCL=OFF -DENABLE_LUA=OFF \ -DENABLE_GUILE=OFF -DENABLE_PERL=OFF -DENABLE_ASPELL=ON \ -DLIBDIR=${libdir}" +# CMake's FindPython queries the (native) interpreter for the Development.Embed +# component, which then fails to locate the cross (target) libpython/headers. +# Point it explicitly at the target sysroot library and include directory. +EXTRA_OECMAKE:append = " \ + -DPython_INCLUDE_DIR=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ + -DPython_LIBRARY=${STAGING_LIBDIR}/libpython${PYTHON_BASEVERSION}.so \ +" + do_configure:prepend(){ # Make sure we get dependencies from recipe-sysroot sed -i -e 's# /usr/bin# ${RECIPE_SYSROOT}/${bindir}/#g' ${S}/cmake/FindPerl.cmake
PATCH 103/128 android-libboringssl: Use discarded-qualifiers that works with clang
In reply to Khem Rajclang names this -Wno-incompatible-pointer-types-discards-qualifiers; the GCC spelling is an unknown -W option under -Werror, which broke every configure try_compile (including pthread detection).
--- .../android-libboringssl_14.0.0+r45.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/android-libboringssl/android-libboringssl_14.0.0+r45.bb +6 -1
@@ -23,7 +23,12 @@ S = "${UNPACKDIR}/android-platform-external-boringssl-${PV}/src" inherit cmake -CFLAGS:append = " -Wno-discarded-qualifiers" +# -Wno-discarded-qualifiers is a GCC spelling; clang names this warning +# -Wno-incompatible-pointer-types-discards-qualifiers. BoringSSL compiles with +# -Werror -Werror=unknown-warning-option, so an unknown -W option breaks every +# configure try_compile (including the pthread/Threads detection). +CFLAGS:append:toolchain-gcc = " -Wno-discarded-qualifiers" +CFLAGS:append:toolchain-clang = " -Wno-incompatible-pointer-types-discards-qualifiers" OECMAKE_TARGET_COMPILE = "crypto ssl"
PATCH 104/128 breakpad: fix build with GCC 16
In reply to Khem RajMove ModuleFactory::CreateModule out of line.
--- ...ove-CreateModule-out-of-line-to-fix-.patch | 95 +++++++++++++++++++ .../breakpad/breakpad_2023.06.01.bb | 1 + 2 files changed, 96 insertions(+) create mode 100644 meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch
meta-oe/recipes-devtools/breakpad/breakpad/0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch new file +95 -0
@@ -0,0 +1,95 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 23 Jun 2026 00:00:00 +0000 +Subject: [PATCH] module_factory: move CreateModule out of line to fix vtable + link error + +module_factory.h defines BasicModuleFactory::CreateModule and +FastModuleFactory::CreateModule inline. These inline functions +construct a {Basic,Fast}SourceLineResolver::Module, whose only +out-of-line virtual ("key") function lives in +{basic,fast}_source_line_resolver.cc. Consequently every translation +unit that includes module_factory.h (notably +source_line_resolver_base.cc) emits an undefined reference to the +Module vtable. + +With newer linkers (and --as-needed) the binaries that link +source_line_resolver_base.o but not fast_source_line_resolver.o, such +as microdump_stackwalk, fail to link with: + + undefined reference to `vtable for + google_breakpad::FastSourceLineResolver::Module' + +Move the CreateModule definitions out of the header into the +respective .cc files, which already include module_factory.h and which +are also where the Module vtables are emitted. This way +source_line_resolver_base.o no longer references the Fast/Basic Module +vtables. + +Upstream-Status: Submitted [https://github.com/google/breakpad] +Signed-off-by: Khem Raj <[email protected]> +--- + src/processor/basic_source_line_resolver.cc | 5 +++++ + src/processor/fast_source_line_resolver.cc | 5 +++++ + src/processor/module_factory.h | 8 ++------ + 3 files changed, 12 insertions(+), 6 deletions(-) + +diff --git a/src/processor/basic_source_line_resolver.cc b/src/processor/basic_source_line_resolver.cc +index 1111111..2222222 100644 +--- a/src/processor/basic_source_line_resolver.cc ++++ b/src/processor/basic_source_line_resolver.cc +@@ -108,6 +108,11 @@ static const char* kWhitespace = " \r\n"; + static const int kMaxErrorsPrinted = 5; + static const int kMaxErrorsBeforeBailing = 100; + ++BasicSourceLineResolver::Module* BasicModuleFactory::CreateModule( ++ const string& name) const { ++ return new BasicSourceLineResolver::Module(name); ++} ++ + BasicSourceLineResolver::BasicSourceLineResolver() : + SourceLineResolverBase(new BasicModuleFactory) { } + +diff --git a/src/processor/fast_source_line_resolver.cc b/src/processor/fast_source_line_resolver.cc +index 1111111..2222222 100644 +--- a/src/processor/fast_source_line_resolver.cc ++++ b/src/processor/fast_source_line_resolver.cc +@@ -60,6 +60,11 @@ using std::unique_ptr; + + namespace google_breakpad { + ++FastSourceLineResolver::Module* FastModuleFactory::CreateModule( ++ const string& name) const { ++ return new FastSourceLineResolver::Module(name); ++} ++ + FastSourceLineResolver::FastSourceLineResolver() + : SourceLineResolverBase(new FastModuleFactory) { } + +diff --git a/src/processor/module_factory.h b/src/processor/module_factory.h +index 1111111..2222222 100644 +--- a/src/processor/module_factory.h ++++ b/src/processor/module_factory.h +@@ -52,18 +52,14 @@ class BasicModuleFactory : public ModuleFactory { + public: + virtual ~BasicModuleFactory() { } + virtual BasicSourceLineResolver::Module* CreateModule( +- const string& name) const { +- return new BasicSourceLineResolver::Module(name); +- } ++ const string& name) const; + }; + + class FastModuleFactory : public ModuleFactory { + public: + virtual ~FastModuleFactory() { } + virtual FastSourceLineResolver::Module* CreateModule( +- const string& name) const { +- return new FastSourceLineResolver::Module(name); +- } ++ const string& name) const; + }; + + } // namespace google_breakpad +-- +2.49.0
meta-oe/recipes-devtools/breakpad/breakpad_2023.06.01.bb +1 -0
@@ -38,6 +38,7 @@ SRC_URI = "git://github.com/google/breakpad;name=breakpad;branch=main;protocol=h file://mcontext.patch \ file://0001-Remove-HAVE_GETCONTEXT-check-to-add-local-implementa.patch \ file://0001-Fixed-missing-include-for-std-find_if.patch \ + file://0001-module_factory-move-CreateModule-out-of-line-to-fix-.patch \ file://0001-lss-Match-syscalls-to-match-musl.patch;patchdir=src/third_party/lss \ file://mips_asm_sgidefs.patch;patchdir=src/third_party/lss \ "
PATCH 105/128 poke: fix cross configure of bundled jitter
In reply to Khem RajThe bundled jitter sub-configure runs a gnulib AC_RUN_IFELSE strcasecmp test that aborts under cross compilation use the cached result.
--- meta-oe/recipes-devtools/poke/poke_4.3.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-devtools/poke/poke_4.3.bb +4 -0
@@ -20,6 +20,10 @@ EXTRA_OECONF = "--disable-gui \ --with-libreadline-prefix=${STAGING_INCDIR} \ " +# The bundled jitter sub-configure runs a gnulib AC_RUN_IFELSE test for +# strcasecmp which aborts under cross compilation; provide the cached result. +CACHED_CONFIGUREVARS += "gl_cv_func_strcasecmp_works=yes" + PACKAGECONFIG[mi] = "--enable-mi,--disable-mi,json-c" PACKAGES =+ "${PN}-emacs ${PN}-vim"
PATCH 106/128 pstack: include <cstdint> for fixed-width integer types
In reply to Khem RajGCC 16 / libstdc++ no longer transitively pulls in cstdint so reader.h fails to find uintmax_t/intmax_t.
--- ...clude-cstdint-for-uintmax_t-intmax_t.patch | 35 +++++++++++++++++++ .../recipes-devtools/pstack/pstack_2.12.2.bb | 4 ++- meta-oe/recipes-devtools/pstack/pstack_git.bb | 1 + 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/pstack/files/0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch
meta-oe/recipes-devtools/pstack/files/0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 23 Jun 2026 00:00:00 +0000 +Subject: [PATCH] reader.h: include <cstdint> for uintmax_t/intmax_t + +GCC 16 / newer libstdc++ no longer transitively pull in <cstdint> via +other standard headers. reader.h uses uintmax_t and intmax_t (in the +readULEB128/readSLEB128 prototypes) without directly including the +header that declares them, which fails to compile with: + + error: 'uintmax_t' was not declared in this scope + error: 'intmax_t' was not declared in this scope + +Include <cstdint> explicitly to provide these fixed-width integer types. + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + libpstack/reader.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libpstack/reader.h b/libpstack/reader.h +index 1111111..2222222 100644 +--- a/libpstack/reader.h ++++ b/libpstack/reader.h +@@ -1,6 +1,7 @@ + #ifndef pstack_reader_h + #define pstack_reader_h + ++#include <cstdint> + #include <climits> + #include <iostream> + #include <memory> +-- +2.49.0
meta-oe/recipes-devtools/pstack/pstack_2.12.2.bb +3 -1
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=671019a96ba80415b696240ed2ca5e80" DEPENDS = "tcl virtual/libx11 libxt zip-native" -SRC_URI = "git://github.com/peadar/pstack;branch=v2.12-maint;tag=v${PV};protocol=https;tag=v${PV}" +SRC_URI = "git://github.com/peadar/pstack;branch=v2.12-maint;tag=v${PV};protocol=https;tag=v${PV} \ + file://0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch \ + " SRCREV = "98c4ddb7f0faa5221ea0a5f38105fc2a2f5cbfe7" PACKAGES =+ "${PN}-lib"
meta-oe/recipes-devtools/pstack/pstack_git.bb +1 -0
@@ -5,4 +5,5 @@ PV = "2.11" SRC_URI = "git://github.com/peadar/pstack.git;branch=master;protocol=https \ file://0001-tests-fix-the-issue-of-cross-compilation-failure.patch \ + file://0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch \ "
PATCH 107/128 gd: guard GCC-only -Wno-error=maybe-uninitialized
In reply to Khem Rajclang does not recognise -Wmaybe-uninitialized and errors on the -Wno-error form under -Werror,-Wunknown-warning-option apply it only for the gcc toolchain.
--- meta-oe/recipes-support/gd/gd_2.3.3.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/gd/gd_2.3.3.bb +4 -2
@@ -43,9 +43,11 @@ EXTRA_OECONF += "--disable-rpath" EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"' -CFLAGS += "-Wno-error=maybe-uninitialized" +# -Wmaybe-uninitialized is a GCC-only option; clang does not recognise it and +# errors out on -Wno-error=maybe-uninitialized (-Werror,-Wunknown-warning-option). +CFLAGS += "${@bb.utils.contains('TOOLCHAIN', 'gcc', '-Wno-error=maybe-uninitialized', '', d)}" -DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" +DEBUG_OPTIMIZATION:append = " ${@bb.utils.contains('TOOLCHAIN', 'gcc', '-Wno-error=maybe-uninitialized', '', d)}" do_install:append:class-target() { # cleanup buildpaths from gdlib.pc
PATCH 108/128 genimage: set pipefail shell explicitly for cross builds
In reply to Khem Rajconfigure cannot probe for a pipefail-capable shell when cross compiling; pass --with-shell=/bin/bash and add bash to runtime deps.
--- meta-oe/recipes-support/genimage/genimage_20.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta-oe/recipes-support/genimage/genimage_20.bb +6 -1
@@ -12,10 +12,15 @@ DEPENDS = "libconfuse" SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/genimage-${PV}.tar.xz" SRC_URI[sha256sum] = "397545be2fa52d482c5fba9a11897c61324bfc559ea0efb700b9edba7a807b55" -EXTRA_OECONF = "--enable-largefile" +# When cross compiling, configure cannot probe for a shell that supports +# "set -o pipefail", so it must be specified explicitly. genimage uses this +# shell at runtime to run command pipelines, so point it at bash. +EXTRA_OECONF = "--enable-largefile --with-shell=/bin/bash" inherit pkgconfig autotools gettext github-releases +RDEPENDS:${PN}:append:class-target = " bash" + GITHUB_BASE_URI = "https://github.com/pengutronix/genimage/releases" UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)*)"
PATCH 109/128 mbuffer: build in-tree so mkversion.sh is found
In reply to Khem Rajmbuffer's Makefile invokes 'bash mkversion.sh' with no path which only works in the source tree so set B = S.
--- meta-oe/recipes-support/mbuffer/mbuffer_20260511.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-oe/recipes-support/mbuffer/mbuffer_20260511.bb +5 -0
@@ -14,6 +14,11 @@ SRC_URI[sha256sum] = "13bab36f39408f7a08fb368913290ad0f117c934bab602094e18fcc123 inherit autotools +# mbuffer's Makefile generates version.h by invoking "bash mkversion.sh" +# with no path, which only works when building in the source tree (the +# script is not found via VPATH in a separate build dir). +B = "${S}" + PACKAGECONFIG ??= "" PACKAGECONFIG[md5] = "--enable-md5,--disable-md5,openssl"
PATCH 110/128 minifi-cpp: fix fmt branch and retarget gcc-16 patch
In reply to Khem Rajfmt renamed its default branch master -> main, so the SRCREV was unreachable.
Also retarget 0001-Fix-build-with-gcc-16 to minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h after the source-tree restructure in 0.99.2.
--- .../minifi-cpp/files/0001-Fix-build-with-gcc-16.patch | 10 +++++----- .../recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-)
meta-oe/recipes-extended/minifi-cpp/files/0001-Fix-build-with-gcc-16.patch +5 -5
@@ -8,7 +8,7 @@ Fixes: 38 | virtual int getRealtimeUsec(uint64_t* usec_out) noexcept = 0; | ^~~~~~~~ - libminifi/include/core/RepositoryMetricsSource.h:29:5: error: 'uint64_t' does not name a type + minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h:29:5: error: 'uint64_t' does not name a type | 29 | uint64_t table_readers_size{}; | | ^~~~~~~~
@@ -17,7 +17,7 @@ Upstream-Status: Submitted [https://github.com/apache/nifi-minifi-cpp/pull/2194] Signed-off-by: Mingli Yu <[email protected]> --- extensions/systemd/libwrapper/LibWrapper.h | 1 + - libminifi/include/core/RepositoryMetricsSource.h | 1 + + minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h | 1 + 2 files changed, 2 insertions(+) diff --git a/extensions/systemd/libwrapper/LibWrapper.h b/extensions/systemd/libwrapper/LibWrapper.h
@@ -32,10 +32,10 @@ index d7e7b7c..c8af00e 100644 #include "../Common.h" #include "utils/gsl.h" -diff --git a/libminifi/include/core/RepositoryMetricsSource.h b/libminifi/include/core/RepositoryMetricsSource.h +diff --git a/minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h b/minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h index 6c933b7..f39fccf 100644 ---- a/libminifi/include/core/RepositoryMetricsSource.h -+++ b/libminifi/include/core/RepositoryMetricsSource.h +--- a/minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h ++++ b/minifi-api/include/minifi-cpp/core/RepositoryMetricsSource.h @@ -20,6 +20,7 @@ #include <string>
meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git;protocol=https;branch=mai git://github.com/gsl-lite/gsl-lite.git;protocol=https;branch=master;name=gsl-lite;destsuffix=${S}/thirdparty/gsl-lite-src \ git://github.com/HowardHinnant/date.git;protocol=https;branch=master;name=date;destsuffix=${S}/thirdparty/date-src \ git://github.com/chriskohlhoff/asio.git;protocol=https;branch=master;name=asio;destsuffix=${S}/thirdparty/asio-src \ - git://github.com/fmtlib/fmt.git;protocol=https;branch=master;name=fmt;destsuffix=${S}/thirdparty/fmt-src \ + git://github.com/fmtlib/fmt.git;protocol=https;branch=main;name=fmt;destsuffix=${S}/thirdparty/fmt-src \ git://github.com/gabime/spdlog.git;protocol=https;branch=v1.x;tag=v1.15.3;name=spdlog;destsuffix=${S}/thirdparty/spdlog-src \ git://github.com/danielaparker/jsoncons.git;protocol=https;branch=master;name=jsoncons;destsuffix=${S}/thirdparty/jsoncons-src \ ${DEBIAN_MIRROR}/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz;name=ossp-uuid;subdir=${S}/thirdparty \
PATCH 111/128 python3-croniter: refresh trove-classifiers patch
In reply to Khem RajRegenerate 0001-Allow-using-newer-versions-of-trove-classifiers so it applies to 6.2.2.
--- ...r-versions-of-trove-classifiers-and-.patch | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python3-croniter/0001-Allow-using-newer-versions-of-trove-classifiers-and-.patch +24 -9
@@ -1,28 +1,43 @@ From 297d149636d063a82b33d95ab59928a88db51e4e Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 14 May 2026 11:44:44 -0700 -Subject: [PATCH] Allow using newer versions of trove-classifiers and pathspec +Subject: [PATCH] Allow using newer versions of build dependencies + +The pyproject.toml pins exact (==) versions of all build-system +requirements. When building with --no-isolation (as OE does), pip uses +the build dependencies already present in the sysroot, which are newer +than the pinned versions, e.g.: + + ERROR Missing dependencies: + packaging==26.0 + hatchling==1.29.0 + +Relax the exact pins to >= so that the (newer) provided versions +satisfy the requirements. Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> --- - pyproject.toml | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + pyproject.toml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 657cc21..d1b9ce3 100644 --- a/pyproject.toml +++ b/pyproject.toml -@@ -2,9 +2,9 @@ +@@ -1,10 +1,10 @@ + [build-system] requires = [ - "hatchling==1.29.0", - "packaging==26.0", +- "hatchling==1.29.0", +- "packaging==26.0", - "pathspec==1.0.4", -+ "pathspec>=1.0.4", - "pluggy==1.6.0", +- "pluggy==1.6.0", - "trove-classifiers==2026.1.14.14", ++ "hatchling>=1.29.0", ++ "packaging>=26.0", ++ "pathspec>=1.0.4", ++ "pluggy>=1.6.0", + "trove-classifiers>=2026.1.14.14", ] build-backend = "hatchling.build" -
PATCH 112/128 xfce4-panel: fix redefinition of autoptr cleanup for XfceTitledDialog
In reply to Khem RajNewer libxfce4ui defines the XfceTitledDialog autoptr cleanup functions the panel's guarded redefinition is redundant and breaks the build under GCC 16. Drop it (backport of upstream 3ac941fc).
--- ...oe-Remove-wrong-autoptr-define-guard.patch | 42 +++++++++++++++++++ .../xfce4-panel/xfce4-panel_4.21.1.bb | 1 + 2 files changed, 43 insertions(+) create mode 100644 meta-xfce/recipes-xfce/xfce4-panel/files/0001-panel-tic-tac-toe-Remove-wrong-autoptr-define-guard.patch
meta-xfce/recipes-xfce/xfce4-panel/files/0001-panel-tic-tac-toe-Remove-wrong-autoptr-define-guard.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 23 Jun 2026 00:00:00 +0000 +Subject: [PATCH] panel: tic-tac-toe: Remove wrong autoptr define guard + +panel-tic-tac-toe.h guarded its own +G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfceTitledDialog, g_object_unref) with +"#ifndef glib_autoptr_clear_XfceTitledDialog". That macro is never +defined: G_DEFINE_AUTOPTR_CLEANUP_FUNC emits static inline functions, not +a glib_autoptr_clear_* macro, so the guard is always true. + +libxfce4ui (>= 4.21.8) now defines the XfceTitledDialog autoptr cleanup +functions itself in xfce-titled-dialog.h. Because the guard never +triggers, the panel header redefines the same static inline cleanup +functions, which is a hard error with GCC 16 / recent clang: + + error: redefinition of 'glib_autoptr_clear_XfceTitledDialog' + +Drop the redundant definition entirely; rely on libxfce4ui to provide it. + +Upstream-Status: Backport [https://gitlab.xfce.org/xfce/xfce4-panel/-/commit/3ac941fc083fee5e56b0f3e509d6f6b461b48e39] +Signed-off-by: Khem Raj <[email protected]> +--- + panel/panel-tic-tac-toe.h | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/panel/panel-tic-tac-toe.h b/panel/panel-tic-tac-toe.h +index 1111111..2222222 100644 +--- a/panel/panel-tic-tac-toe.h ++++ b/panel/panel-tic-tac-toe.h +@@ -24,9 +24,6 @@ G_BEGIN_DECLS + G_BEGIN_DECLS + + #define PANEL_TYPE_TIC_TAC_TOE (panel_tic_tac_toe_get_type ()) +-#ifndef glib_autoptr_clear_XfceTitledDialog +-G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfceTitledDialog, g_object_unref) +-#endif + G_DECLARE_FINAL_TYPE (PanelTicTacToe, panel_tic_tac_toe, PANEL, TIC_TAC_TOE, XfceTitledDialog) + + void +-- +2.43.0
meta-xfce/recipes-xfce/xfce4-panel/xfce4-panel_4.21.1.bb +1 -0
@@ -17,6 +17,7 @@ SRC_URI += " \ file://0001-build-Do-not-display-full-path-in-generated-headers.patch \ file://0001-build-Be-sure-to-generate-sub-headers-before-includi.patch \ file://0002-build-Install-missing-libxfce4panel.h.patch \ + file://0001-panel-tic-tac-toe-Remove-wrong-autoptr-define-guard.patch \ " SRC_URI[sha256sum] = "c940dae515bef4af08a126011d2fd873ce99e815157ba8cef5332195bb60e51e"
PATCH 113/128 pimd: skip pre-configure make clean via CLEANBROKEN
In reply to Khem RajThe shipped Makefile does 'include config.mk' which is only created by configure, so the 'make clean' run by autotools_preconfigure fails before configure has run.
Set CLEANBROKEN to skip that pre-configure clean.
--- meta-networking/recipes-support/pimd/pimd_2.3.2.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-networking/recipes-support/pimd/pimd_2.3.2.bb +5 -0
@@ -13,6 +13,11 @@ EXTRA_OECONF:append:libc-musl = " --embedded-libc" inherit autotools-brokensep update-alternatives +# The shipped Makefile "include config.mk" which is only created by configure, +# so the "make clean" run by autotools_preconfigure fails before configure has +# run. Skip that pre-configure clean. +CLEANBROKEN = "1" + do_configure() { oe_runconf }
PATCH 114/128 abseil-cpp: fix clang build with BMI2
In reply to Khem RajClang errors on a direct include of <bmi2intrin.h>
'Never use <bmi2intrin.h> directly; include <immintrin.h> instead.'
hit whenever __BMI2__ is defined.
Backport the upstream fix to include the umbrella <immintrin.h> header guarded by an x86 check.
--- ...lude-immintrin.h-instead-of-bmi2intr.patch | 36 +++++++++++++++++++ .../abseil-cpp/abseil-cpp_20260526.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-raw_hash_set-include-immintrin.h-instead-of-bmi2intr.patch
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-raw_hash_set-include-immintrin.h-instead-of-bmi2intr.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 24 Jun 2026 00:00:00 +0000 +Subject: [PATCH] raw_hash_set: include <immintrin.h> instead of <bmi2intrin.h> + +Clang refuses a direct include of <bmi2intrin.h> and errors out with: + + error: "Never use <bmi2intrin.h> directly; include <immintrin.h> instead." + +This is hit whenever __BMI2__ is defined, e.g. when building with +-march=x86-64-v3. Mirror upstream and include the umbrella <immintrin.h> +header guarded by an x86 check, which transitively provides the BMI2 +intrinsics (_bzhi_u32/_bzhi_u64) used in mask(). + +Upstream-Status: Backport [https://github.com/abseil/abseil-cpp/commit/d851fdd768b27c02b3fb786fd0987faddd279ece] + +Signed-off-by: Khem Raj <[email protected]> +--- + absl/container/internal/raw_hash_set.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/absl/container/internal/raw_hash_set.h ++++ b/absl/container/internal/raw_hash_set.h +@@ -225,9 +225,9 @@ + #include <ranges> // NOLINT(build/c++20) + #endif + +-#ifdef __BMI2__ +-#include <bmi2intrin.h> +-#endif // __BMI2__ ++#if defined(__i386__) || defined(__x86_64__) ++#include <immintrin.h> ++#endif + + namespace absl { + ABSL_NAMESPACE_BEGIN
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260526.0.bb +1 -0
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915" SRC_URI = "https://github.com/abseil/${BPN}/releases/download/${PV}/${BP}.tar.gz \ file://0001-absl-always-use-asm-sgidefs.h.patch \ file://0002-abseil-ppc-fixes.patch \ + file://0003-raw_hash_set-include-immintrin.h-instead-of-bmi2intr.patch \ " SRC_URI[sha256sum] = "6e1aee535473414164bf83e4ebc40240dec71a4701f8a642d906e95bea1aea0c"
PATCH 115/128 pam-radius: skip pre-configure make clean via CLEANBROKEN
In reply to Khem RajThe shipped Makefile errors out
'You must run ./configure before make'
when Make.inc/src/config.h are missing, so the 'make clean' run by autotools_preconfigure fails before configure has run.
Set CLEANBROKEN to skip that clean.
--- meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb +5 -0
@@ -16,6 +16,11 @@ DEPENDS = "libpam" inherit autotools-brokensep features_check REQUIRED_DISTRO_FEATURES = "pam" +# The shipped Makefile errors out ("You must run './configure' before 'make'") +# when Make.inc/src/config.h are missing, so the "make clean" run by +# autotools_preconfigure fails before configure has run. Skip that clean. +CLEANBROKEN = "1" + EXTRA_OECONF = "--disable-developer" do_install() {
PATCH 116/128 libmng: skip pre-configure make clean via CLEANBROKEN
In reply to Khem RajThe release tarball ships a pre-generated Makefile with
the maintainer's absolute build paths baked in (${SHELL} /sources/LIB/MNG/.../missing) so the make clean run by autotools_preconfigure fails before autoreconf regenerates the build system.
Set CLEANBROKEN to skip that pre-configure clean.
--- meta-oe/recipes-graphics/libmng/libmng_2.0.3.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta-oe/recipes-graphics/libmng/libmng_2.0.3.bb +6 -0
@@ -18,6 +18,12 @@ UPSTREAM_CHECK_REGEX = "libmng-devel/(?P<pver>\d+(\.\d+)+)" inherit autotools-brokensep pkgconfig +# The release tarball ships a pre-generated Makefile with the maintainer's +# absolute build paths baked in (e.g. ${SHELL} /sources/LIB/MNG/.../missing), +# so the "make clean" run by autotools_preconfigure fails before autoreconf +# regenerates the build system. Skip that pre-configure clean. +CLEANBROKEN = "1" + PACKAGECONFIG ??= "jpeg" PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg"
PATCH 117/128 procmail: drop target-only libs from native autoconf.h probe
In reply to Khem Rajdo_configure generates autoconf.h by compiling and running a small lock-feature probe with the build-host compiler. The Makefile hardcodes the target networking libs (-lnet -lnsl, from the libnet/libnsl2 DEPENDS) into LDFLAGS, but those only exist in the target sysroot, so the native link fails with
'cannot find -lnet/-lnsl'
The probe does not use them, so override LDFLAGS for this native step with just what it needs.
--- meta-oe/recipes-support/procmail/procmail_3.24.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta-oe/recipes-support/procmail/procmail_3.24.bb +7 -1
@@ -28,7 +28,13 @@ do_configure() { export CFLAGS="${BUILD_CFLAGS}" export AR="${BUILD_AR}" export AS="${BUILD_AS}" - oe_runmake TARGET_CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${BUILD_LDFLAGS}" LOCKINGTEST=100 autoconf.h + # autoconf.h is generated by compiling and running a small lock-feature + # probe with the build-host compiler. The Makefile hardcodes the target + # networking libs (-lnet -lnsl, from the libnet/libnsl2 DEPENDS) into + # LDFLAGS, but those only exist in the target sysroot, so the native link + # fails with "cannot find -lnet/-lnsl". The probe does not use them, so + # override LDFLAGS for this native step with just what it needs. + oe_runmake TARGET_CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${BUILD_LDFLAGS}" LDFLAGS="${BUILD_LDFLAGS} -lm -ldl -lc" LOCKINGTEST=100 autoconf.h } do_compile() {
PATCH 118/128 android-tools: fix build with libstdc++ and current C++ frontends
In reply to Khem RajFrom: Khem Raj <[email protected]>
Two build failures occur with the default clang/lld toolchain (and with gcc) when compiling android-tools 35.0.2:
1. The bundled fmtlib 10.2.0 validates FMT_STRING() inside a consteval basic_format_string constructor whose parse path evaluates "format_str_.remove_prefix(detail::to_unsigned(it - begin()))". Current C++ frontends reject that iterator subtraction as a non-constant subexpression:
error: call to consteval function
'fmt::basic_format_string<...>::basic_format_string<FMT_COMPILE_STRING,0>' is not a constant expression
Define FMT_CONSTEVAL to empty so fmt drops the consteval qualifier and validates format strings via its runtime path instead.
2. adb's IOVector::coalesce() static_asserts that its Block collection type is standard-layout. Block holds a std::unique_ptr<char[]>, which is standard-layout under LLVM libc++ (AOSP's runtime) but not under GNU libstdc++, so the assertion fails for libstdc++ based toolchains:
packages/modules/adb/types.h:235:27: error: static assertion failed due to requirement 'std::is_standard_layout<Block>()'
The assertion does not protect the memcpy it guards (which writes into plain char storage), so drop it.
--- ...ortable-is_standard_layout-assertion.patch | 42 +++++++++++++++++++ .../android-tools/android-tools_35.0.2.bb | 8 +++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/0011-adb-drop-non-portable-is_standard_layout-assertion.patch
meta-oe/recipes-devtools/android-tools/android-tools/0011-adb-drop-non-portable-is_standard_layout-assertion.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 1cbe4eb212f9be35e89eb7f43160c7e0ec35524c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 24 Jun 2026 17:50:54 -0700 +Subject: [PATCH] adb: drop non-portable std::is_standard_layout assertion in + IOVector::coalesce + +IOVector::coalesce() asserts that the destination collection type is +standard-layout before memcpy'ing the coalesced payload into it: + + static_assert(std::is_standard_layout<decltype(result)>()); + +The default collection type is Block, which holds a std::unique_ptr<char[]> +member. unique_ptr is standard-layout in LLVM libc++ (what AOSP builds +against) but not in GNU libstdc++, so the assertion fails for any +libstdc++ based toolchain (gcc, or clang with the default C++ runtime): + + packages/modules/adb/types.h:235:27: error: static assertion failed due + to requirement 'std::is_standard_layout<Block>()' + +The assertion does not protect the memcpy, which only writes into the +contiguous char storage exposed via Block::operator[]; Block being +standard-layout is irrelevant to its correctness. Drop the assertion so +the code builds with libstdc++. + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + packages/modules/adb/types.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/packages/modules/adb/types.h b/packages/modules/adb/types.h +index 18c8e13..2ed006a 100644 +--- a/packages/modules/adb/types.h ++++ b/packages/modules/adb/types.h +@@ -232,7 +232,6 @@ struct IOVector { + + size_t offset = 0; + iterate_blocks([&offset, &result](const char* data, size_t len) { +- static_assert(std::is_standard_layout<decltype(result)>()); + memcpy(&result[offset], data, len); + offset += len; + });
meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +7 -1
@@ -55,6 +55,7 @@ SRC_URI = "https://deb.debian.org/debian/pool/main/a/android-platform-tools/andr file://0008-adb-GCC-compatibility-fixes-for-usb_linux-and-sysdep.patch \ file://0009-libbase-include-stdint.h-in-hex.cpp.patch \ file://0010-adbd-make-systemd-sd_notify-conditional-on-HAVE_SYSTEMD.patch \ + file://0011-adb-drop-non-portable-is_standard_layout-assertion.patch \ " SRC_URI[orig.md5sum] = "352376965cdef7bd7505d8fefdd43d50"
@@ -79,7 +80,12 @@ SYSTEMD_PACKAGES = "${PN}-adbd" SYSTEMD_SERVICE:${PN}-adbd = "android-tools-adbd.service" CFLAGS:append = " -fPIC -std=gnu2x" -CXXFLAGS:append = " -fPIC -std=gnu++20 -D_Nonnull= -D_Nullable= -I${STAGING_INCDIR}/boringssl" +# The bundled fmtlib 10.2.0 validates FMT_STRING() inside a consteval +# basic_format_string constructor whose parse path evaluates "it - begin()", +# which current C++ frontends reject as a non-constant subexpression. Define +# FMT_CONSTEVAL to empty so format-string checking falls back to fmt's runtime +# path instead of the broken compile-time one. +CXXFLAGS:append = " -fPIC -std=gnu++20 -D_Nonnull= -D_Nullable= -I${STAGING_INCDIR}/boringssl -DFMT_CONSTEVAL=" LDFLAGS:append = " -fPIC -L${STAGING_LIBDIR}/android"
PATCH 119/128 libowfat: relax -Werror=incompatible-pointer-types for GCC 14+
In reply to Khem RajGCC 14 promotes -Wincompatible-pointer-types to an error by default. The buffer_init*.c sources pass read()/write() directly where a typeless op function pointer is expected:
buffer/buffer_init_read.c:6:18: error: passing argument 2 of 'buffer_init' from incompatible pointer type [-Wincompatible-pointer-types]
The existing gcc-15 patch only fixes the BUFFER_INIT macro, not these call sites. Add -Wno-error=incompatible-pointer-types so the build completes.
--- meta-networking/recipes-support/ncp/libowfat_0.34.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-networking/recipes-support/ncp/libowfat_0.34.bb +4 -0
@@ -13,6 +13,10 @@ SRC_URI = "http://www.fefe.de/${BPN}/${BP}.tar.xz \ " SRC_URI[sha256sum] = "d4330d373ac9581b397bc24a22ad1f7f5d58a7fe36d9d239fe352ceffc5d304b" +# GCC 14+ promotes -Wincompatible-pointer-types to an error. libowfat 0.34 +# passes read()/write() directly where a typeless op pointer is expected. +CFLAGS += "-Wno-error=incompatible-pointer-types" + EXTRA_OEMAKE = "\ DIET= \ CC='${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}' \
PATCH 120/128 assimp: disable warnings-as-errors to fix GCC 16 build
In reply to Khem RajGCC 16 flags a set-but-unused variable in MS3DLoader.cpp and assimp builds with -Werror:
code/AssetLib/MS3D/MS3DLoader.cpp:633:28: error: variable 'qu' set but not used [-Werror=unused-but-set-variable=]
cc1plus: all warnings being treated as errors
Pass -DASSIMP_WARNINGS_AS_ERRORS=OFF so upstream warnings do not break the build.
--- meta-oe/recipes-graphics/assimp/assimp_git.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-graphics/assimp/assimp_git.bb +1 -0
@@ -20,6 +20,7 @@ inherit cmake EXTRA_OECMAKE = "\ -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \ -DASSIMP_BUILD_TESTS=OFF \ + -DASSIMP_WARNINGS_AS_ERRORS=OFF \ -DASSIMP_LIB_INSTALL_DIR=${baselib} \ -DCMAKE_INSTALL_PREFIX=${prefix} \ -DCMAKE_INSTALL_LIBDIR=${baselib} \
PATCH 121/128 avro-c++: relax -Werror=unused-but-set-variable for GCC 16
In reply to Khem RajGCC 16 reports a set-but-unused variable in the JSON parser, and avro builds with -Werror:
lang/c++/impl/json/JsonIO.cc:296:30: error: variable 'n' set but not used [-Werror=unused-but-set-variable=]
Extend the existing toolchain-gcc -Wno-error workaround to cover it.
--- meta-oe/recipes-support/avro/avro-c++_1.12.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/avro/avro-c++_1.12.1.bb +1 -1
@@ -36,6 +36,6 @@ do_configure:prepend() { # the workaround flags aren't recognized by Clang either. # To avoid unnecessary warnings and keep the build clean across toolchains, the flags are conditionally added # using the toolchain-gcc override. This makes it unnecessary to override anything for Clang. -CXXFLAGS:append:toolchain-gcc = " -Wno-error=useless-cast -Wno-error=conversion" +CXXFLAGS:append:toolchain-gcc = " -Wno-error=useless-cast -Wno-error=conversion -Wno-error=unused-but-set-variable" BBCLASSEXTEND = "native nativesdk"
PATCH 122/128 redis-plus-plus: relax -Werror=maybe-uninitialized for GCC 16
In reply to Khem RajGCC 16 emits a spurious -Wmaybe-uninitialized for the exception helper constructors in reply.h, and the project builds with -Werror:
src/sw/redis++/reply.h:54:60: error: '<unknown>' may be used uninitialized [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors
Add -Wno-error=maybe-uninitialized for the gcc toolchain.
--- .../redis-plus-plus/redis-plus-plus_1.3.15.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-extended/redis-plus-plus/redis-plus-plus_1.3.15.bb +4 -0
@@ -13,6 +13,10 @@ SRCREV = "a63ac43bf192772910b52e27cd2b42a6098a0071" inherit cmake +# GCC 16 reports a spurious -Wmaybe-uninitialized in the exception helper +# constructors (reply.h); the project builds with -Werror. +CXXFLAGS:append:toolchain-gcc = " -Wno-error=maybe-uninitialized" + # if ssl is enabled for redis-plus-plus it must also be enabled for hiredis PACKAGECONFIG ??= "ssl" PACKAGECONFIG[ssl] = "-DREDIS_PLUS_PLUS_USE_TLS=ON, -DREDIS_PLUS_PLUS_USE_TLS=OFF, openssl"
PATCH 123/128 telepathy-glib: relax -Werror=incompatible-pointer-types for GCC 14+
In reply to Khem RajGCC 14 promotes -Wincompatible-pointer-types to an error by default. This release passes a wrongly-typed GDestroyNotify to g_ptr_array_new_full:
telepathy-glib/protocol.c:1794:42: error: passing argument 2 of 'g_ptr_array_new_full' from incompatible pointer type [-Wincompatible-pointer-types]
Add -Wno-error=incompatible-pointer-types so the build completes.
--- .../recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-oe/recipes-connectivity/telepathy/telepathy-glib_0.24.2.bb +5 -0
@@ -11,6 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e413d83db6ee8f2c8e6055719096a48e" inherit autotools pkgconfig gettext gobject-introspection vala gtk-doc +# GCC 14+ promotes -Wincompatible-pointer-types to an error. This 0.24.2 +# release predates the stricter C rules (e.g. g_ptr_array_new_full callback +# casts in protocol.c). +CFLAGS += "-Wno-error=incompatible-pointer-types" + # Respect GI_DATA_ENABLED value when enabling vala-bindings: # configure: error: GObject-Introspection must be enabled for Vala bindings EXTRA_OECONF = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-vala-bindings', '--disable-vala-bindings', d)}"
PATCH 124/128 libyui-ncurses: fix wchar_t stream to narrow ostream for GCC 16
In reply to Khem RajGCC 16 / libstdc++ implements the C++20 deletion of std::operator<<(std::ostream&, wchar_t). NCtext.cc and NCRichText.cc stream a wchar_t directly into a narrow std::ostream for debug output:
NCtext.cc:348:34: error: use of deleted function 'std::basic_ostream<char, _Traits>& std::operator<<(...wchar_t)'
Add a patch casting both sites to char (the values are ASCII).
--- ...ar_t-before-streaming-to-narrow-ostr.patch | 46 +++++++++++++++++++ .../libyui/libyui-ncurses_4.6.2.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 meta-oe/recipes-graphics/libyui/files/0001-NCurses-cast-wchar_t-before-streaming-to-narrow-ostr.patch
meta-oe/recipes-graphics/libyui/files/0001-NCurses-cast-wchar_t-before-streaming-to-narrow-ostr.patch new file +46 -0
@@ -0,0 +1,46 @@ +From: Khem Raj <[email protected]> +Date: Wed, 25 Jun 2026 00:00:00 +0000 +Subject: [PATCH] NCurses: cast wchar_t before streaming to narrow ostream + +GCC 16 / libstdc++ implements the C++20 deletion of +std::operator<<(std::ostream&, wchar_t). Two debug-output sites stream a +wchar_t directly into a narrow std::ostream, which is now ill-formed: + + NCtext.cc:348:34: error: use of deleted function + 'std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, + _Traits>&, wchar_t)' + NCRichText.cc:521:59: error: use of deleted function ... wchar_t ... + +Both values are ASCII characters used purely for debug output, so cast +them to char to keep the previous behaviour. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + src/NCRichText.cc | 2 +- + src/NCtext.cc | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/src/NCtext.cc ++++ b/src/NCtext.cc +@@ -345,7 +345,7 @@ + str << "[label" << obj.size() << ':' << obj[0].str(); + + if ( obj.hasHotkey() ) +- str << ':' << obj.hotkey() << " at " << obj.hotpos(); ++ str << ':' << static_cast<char>( obj.hotkey() ) << " at " << obj.hotpos(); + + return str << ']'; + } +--- a/src/NCRichText.cc ++++ b/src/NCRichText.cc +@@ -518,7 +518,7 @@ + break; + + default: +- yuiDebug() << "Ignoring " << *wch << std::endl; ++ yuiDebug() << "Ignoring " << static_cast<char>( *wch ) << std::endl; + } + ++wch; + }
meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb +1 -0
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad0 " SRC_URI = "git://github.com/libyui/libyui.git;branch=master;protocol=https \ + file://0001-NCurses-cast-wchar_t-before-streaming-to-narrow-ostr.patch \ " SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
PATCH 125/128 usbguard: fix bundled PEGTL demangle static_assert with GCC 16
In reply to Khem RajThe bundled PEGTL parses __PRETTY_FUNCTION__ at compile time and trips a static_assert under GCC 16:
src/ThirdParty/PEGTL/include/tao/pegtl/demangle.hpp:118:23:
error: static assertion failed
usbguard demangles PEGTL rules built from ascii::one<'\000', '\012'>, i.e. types with a char non-type template parameter whose value is '\0'. GCC 16 renders such a parameter as a literal NUL byte and truncates __PRETTY_FUNCTION__ there:
constexpr std::string_view demangle() [with T = seq<one<'
so the trailing "; std::string_view = ...]" and even the closing ']' are gone, and rfind(';')/rfind(']') both return npos.
Patch demangle() to fall back to the remainder of the string when no ';'/']' terminator survives, instead of failing the build; the demangled name is only used for tracing diagnostics. Type names without a '\0' char parameter are unaffected.
--- ...x-demangle-static_assert-with-GCC-16.patch | 59 +++++++++++++++++++ .../usbguard/usbguard_1.1.4.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta-oe/recipes-security/usbguard/usbguard/0001-PEGTL-fix-demangle-static_assert-with-GCC-16.patch
meta-oe/recipes-security/usbguard/usbguard/0001-PEGTL-fix-demangle-static_assert-with-GCC-16.patch new file +59 -0
@@ -0,0 +1,59 @@ +From: Khem Raj <[email protected]> +Date: Wed, 25 Jun 2026 00:00:00 +0000 +Subject: [PATCH] PEGTL: fix demangle() static_assert with GCC 16 + +The bundled PEGTL demangles type names at compile time by parsing +__PRETTY_FUNCTION__, which looks like + + ...[with T = X; std::string_view = std::basic_string_view<char>] + +and locating the end of the type name via rfind(';'). + +usbguard instantiates demangle() for PEGTL rules built from +ascii::one<'\000', '\012'> (and friends), i.e. types that carry a char +non-type template parameter whose value is '\0'. GCC 16 renders such a +parameter as a literal NUL byte in __PRETTY_FUNCTION__ and truncates the +generated string at that byte: + + constexpr std::string_view demangle() [with T = seq<one<' + +so the trailing "; std::string_view = ...]" alias and even the closing +']' are gone. rfind(';') and rfind(']') both return npos and the +demangler trips: + + src/ThirdParty/PEGTL/include/tao/pegtl/demangle.hpp:118:23: + error: static assertion failed + +The demangled name is only used for human-readable tracing diagnostics, +so rather than fail the build, fall back to the remainder of the string +when no ';' or ']' terminator survives. Type names without a '\0' char +parameter are unaffected. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + src/ThirdParty/PEGTL/include/tao/pegtl/demangle.hpp | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +--- a/src/ThirdParty/PEGTL/include/tao/pegtl/demangle.hpp ++++ b/src/ThirdParty/PEGTL/include/tao/pegtl/demangle.hpp +@@ -114,8 +114,17 @@ + constexpr auto begin = sv.find( '=' ); + static_assert( begin != std::string_view::npos ); + constexpr auto tmp = sv.substr( begin + 2 ); +- constexpr auto end = tmp.rfind( ';' ); +- static_assert( end != std::string_view::npos ); ++ // GCC 16 renders a char non-type template parameter whose value is '\0' ++ // (e.g. PEGTL's ascii::one<'\000', ...>) as a literal NUL byte inside ++ // __PRETTY_FUNCTION__ and truncates the generated string there, dropping ++ // the trailing "; std::string_view = ...]" alias and even the closing ++ // ']'. Fall back to the remainder of the string instead of failing a ++ // static_assert (the demangled name is only used for tracing output). ++ constexpr auto semi = tmp.rfind( ';' ); ++ constexpr auto brak = tmp.rfind( ']' ); ++ constexpr auto end = ( semi != std::string_view::npos ) ? semi ++ : ( brak != std::string_view::npos ) ? brak ++ : tmp.size(); + return tmp.substr( 0, end ); + }
meta-oe/recipes-security/usbguard/usbguard_1.1.4.bb +1 -0
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "https://github.com/USBGuard/usbguard/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz \ file://0001-Add-and-use-pkgconfig-instead-of-libgcrypt-config.patch \ + file://0001-PEGTL-fix-demangle-static_assert-with-GCC-16.patch \ " SRC_URI[sha256sum] = "7d76b75e779e3c9e6c2fc10e7389dfa34056864c9f0c6eaca722687b7e75893c"
PATCH 126/128 tokyocabinet: drop $HOME/lib from LD_RUN_PATH to fix buildpaths QA
In reply to Khem RajThe Makefile bakes LD_RUN_PATH=...:$(HOME)/lib:/usr/local/lib:... into the command binaries via LDENV, embedding the build host HOME directory in the shipped binaries:
do_package_qa: QA Issue: File /usr/bin/tchmgr ... contains reference to the build host HOME directory [buildpaths]
Strip the $(HOME)/lib and /usr/local/lib entries from the generated Makefile after configure.
--- .../recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb | 8 ++++++++ 1 file changed, 8 insertions(+)
meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb +8 -0
@@ -25,3 +25,11 @@ SRC_URI[sha256sum] = "a003f47c39a91e22d76bc4fe68b9b3de0f38851b160bbb1ca07a4f6441 DEPENDS = "bzip2 zlib" inherit autotools-brokensep + +# tokyocabinet bakes LD_RUN_PATH=...:$(HOME)/lib:/usr/local/lib:... into the +# command binaries via the Makefile LDENV/RUNENV variables, which leaks the +# build host HOME directory into the shipped binaries (buildpaths QA). Drop +# those host search paths from the generated Makefile after configure. +do_configure:append() { + sed -i -e 's,\$(HOME)/lib:,,g' -e 's,/usr/local/lib:,,g' ${B}/Makefile +}
PATCH 127/128 apitrace: do not embed source dir into binary (buildpaths QA)
In reply to Khem Rajapitrace's CLI bakes APITRACE_PYTHON_EXECUTABLE, defined unconditionally to ${Python3_EXECUTABLE} - the absolute path of the python CMake found at configure time.
On the autobuilder that resolves to the launching
venv python /srv/pokybuild/buildbot-venv/bin/python3, which lives under the worker HOME, so /usr/bin/apitrace trips:
QA Issue: File /usr/bin/apitrace in package apitrace contains reference to the build host HOME directory [buildpaths]
--- meta-oe/recipes-devtools/apitrace/apitrace_13.0.bb | 11 +++++++++++ 1 file changed, 11 insertions(+)
meta-oe/recipes-devtools/apitrace/apitrace_13.0.bb +11 -0
@@ -29,3 +29,14 @@ EXTRA_OECMAKE += "\ LDFLAGS:append:riscv32 = " -latomic" SECURITY_CFLAGS:toolchain-clang = "" + +# Upstream bakes the absolute python CMake found at configure time +# (Python3_EXECUTABLE) into the apitrace binary as APITRACE_PYTHON_EXECUTABLE. +# That path points into the build host (e.g. the autobuilder's +# /srv/pokybuild/buildbot-venv/bin/python3) which trips the buildpaths QA +# check and does not exist on the target. The diff/leaks helper subcommands +# exec it via os::execute(), which uses execvp(), so resolve "python3" through +# PATH at runtime instead. +do_configure:prepend() { + sed -i -E 's|(APITRACE_PYTHON_EXECUTABLE=)"[^"]*Python3_EXECUTABLE[^"]*"|\1"python3"|' ${S}/cli/CMakeLists.txt +}
PATCH 128/128 freeglut: build without the glvnd distro feature for X11, Wayland and GLES
In reply to Khem Rajfreeglut's CMake used FIND_PACKAGE(OpenGL REQUIRED COMPONENTS OpenGL), which demands the GLVND libOpenGL.so (OPENGL_opengl_LIBRARY). Without the glvnd distro feature libglvnd is not built, so do_configure fails on the X11, Wayland and GLES paths:
CMake Error: Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY)
CMake's FindOpenGL also couples the EGL component to GLVND: requesting EGL without GLES2/GLES3 unconditionally adds OPENGL_opengl_LIBRARY, so dropping the "OpenGL" component alone is not enough.
Extend the legacy-OpenGL patch to:
* X11/GLES: drop the unsatisfiable GLVND "OpenGL" component from FIND_PACKAGE and link the legacy OpenGL::GL target.
* Wayland: find EGL via pkg-config (PkgConfig::EGL), which is independent of GLVND, and link the legacy OpenGL::GL target.
Verified by building freeglut for qemux86-64 with x11+wayland and no glvnd (configure, compile, install, package) and re-checking freeglut-gles configures.
--- .../0001-Add-support-for-legacy-OpenGL.patch | 64 +++++++++++++++---- 1 file changed, 52 insertions(+), 12 deletions(-)
meta-oe/recipes-graphics/freeglut/files/0001-Add-support-for-legacy-OpenGL.patch +52 -12
@@ -1,28 +1,53 @@ From a4c51ae7897f1ad82d10e593344511b3d7b81dbc Mon Sep 17 00:00:00 2001 From: Jan Vermaete <[email protected]> Date: Wed, 24 Dec 2025 12:58:36 +0100 -Subject: [PATCH 1/1] Add support for legacy OpenGL +Subject: [PATCH 1/1] Add support for legacy (non-GLVND) OpenGL + +Without the glvnd distro feature libglvnd is not built, so libOpenGL.so +(OPENGL_opengl_LIBRARY) is absent. Make all OpenGL-using code paths work +against the legacy mesa libGL.so instead: + +* Link the legacy OpenGL::GL target rather than the GLVND OpenGL::OpenGL + target everywhere (X11, GLES and Wayland). + +* X11 / GLES: drop the unsatisfiable GLVND "OpenGL" component from the + FIND_PACKAGE() calls; the legacy OpenGL::GL target covers it. + +* Wayland: CMake's FindOpenGL couples the EGL component to GLVND - + requesting EGL without GLES2/GLES3 forces OPENGL_opengl_LIBRARY to be a + required var (FindOpenGL.cmake), so configure fails with: + + Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY) + + at CMakeLists.txt:435. Find EGL via pkg-config (PkgConfig::EGL) instead, + which works regardless of GLVND, and keep the legacy OpenGL::GL target. Upstream-Status: Pending Signed-off-by: Rob Woolley <[email protected]> Commited-by: Jan Vermaete <[email protected]> +Signed-off-by: Khem Raj <[email protected]> --- - CMakeLists.txt | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + CMakeLists.txt | 19 +++++++------ + 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 23741bf..31b3ac8 100644 +index 23741bf..580d1a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -378,13 +378,13 @@ IF(FREEGLUT_GLES) - FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL GLES2 OpenGL) +@@ -375,16 +375,16 @@ ENDIF() + IF(FREEGLUT_GLES) + LIST(APPEND PUBLIC_DEFINITIONS -DFREEGLUT_GLES) + if(NOT CMAKE_VERSION VERSION_LESS "3.27") +- FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL GLES2 OpenGL) ++ FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL GLES2) CMAKE_PATH(GET OPENGL_gles2_LIBRARY PARENT_PATH _OPENGL_LIBDIR) FIND_LIBRARY(GLES1_LIBRARY GLESv1_CM HINTS ${_OPENGL_LIBDIR} REQUIRED) - LIST(APPEND LIBS ${GLES1_LIBRARY} OpenGL::EGL OpenGL::GLES2 OpenGL::OpenGL) + LIST(APPEND LIBS ${GLES1_LIBRARY} OpenGL::EGL OpenGL::GLES2 OpenGL::GL) elseif(NOT CMAKE_VERSION VERSION_LESS "3.10") - FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL OpenGL) +- FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL OpenGL) ++ FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL) GET_FILENAME_COMPONENT(_OPENGL_LIBDIR ${OPENGL_egl_LIBRARY} DIRECTORY) FIND_LIBRARY(GLES1_LIBRARY GLESv1_CM HINTS ${_OPENGL_LIBDIR}) FIND_LIBRARY(GLES2_LIBRARY GLESv2 HINTS ${_OPENGL_LIBDIR})
@@ -31,15 +56,30 @@ index 23741bf..31b3ac8 100644 else() FIND_PACKAGE(OpenGL REQUIRED) LIST(GET ${OPENGL_LIBRARIES} 0 _OPENGL_LIB) -@@ -433,7 +433,7 @@ IF(FREEGLUT_WAYLAND) +@@ -407,7 +407,7 @@ ELSE() + endif() + + if(NOT CMAKE_VERSION VERSION_LESS "3.10") +- FIND_PACKAGE(OpenGL REQUIRED COMPONENTS OpenGL) ++ FIND_PACKAGE(OpenGL REQUIRED) + LIST(APPEND LIBS OpenGL::GL) + else() + FIND_PACKAGE(OpenGL REQUIRED) +@@ -432,8 +432,13 @@ IF(FREEGLUT_WAYLAND) + ADD_DEFINITIONS(-DFREEGLUT_WAYLAND) INCLUDE(FindPkgConfig) if(NOT CMAKE_VERSION VERSION_LESS "3.10") - FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL OpenGL) +- FIND_PACKAGE(OpenGL REQUIRED COMPONENTS EGL OpenGL) - LIST(APPEND LIBS OpenGL::EGL OpenGL::OpenGL) -+ LIST(APPEND LIBS OpenGL::EGL OpenGL::GL) ++ # CMake's FindOpenGL ties the EGL component to GLVND: requesting EGL ++ # without GLES2/GLES3 forces OPENGL_opengl_LIBRARY (libOpenGL.so) to be ++ # required, which is absent without the glvnd distro feature. Find EGL via ++ # pkg-config instead and use the legacy OpenGL::GL (libGL) target. ++ FIND_PACKAGE(OpenGL REQUIRED) ++ PKG_CHECK_MODULES(EGL REQUIRED IMPORTED_TARGET egl) ++ LIST(APPEND LIBS PkgConfig::EGL OpenGL::GL) else() FIND_PACKAGE(OpenGL REQUIRED) LIST(GET ${OPENGL_LIBRARIES} 0 _OPENGL_LIB) --- +-- 2.47.3 -