Skip to contentSkip to conversation

package/at-spi2-core: bump version to 2.62.0.1

PATCH In review Bernd Kuhls 2 participants 3 messages Sep 21 – Sep 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/at-spi2-core: bump version to 2.62.0.1

https://gitlab.gnome.org/GNOME/at-spi2-core/-/blob/2.62.0.1/NEWS

Version 2.58.3 contains a fix for a flutter-engine build error:
"What's new in at-spi2-core 2.58.3:

* Fix atk_get_major_version etc not linking on C++."
https://gitlab.gnome.org/GNOME/at-spi2-core/-/commit/5ae24f981ddce448682d123fd71ff20329bdd014
https://github.com/flutter/flutter/pull/178712#issuecomment-5265225780

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/2d129445102659bc17939cb8681f6b80c2b5e985

with the exception of an unrelated build error at bootlin-sparc-uclibc/build/dbus-1.16.2/.stamp_built

 package/at-spi2-core/at-spi2-core.hash | 4 ++--
 package/at-spi2-core/at-spi2-core.mk   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
package/at-spi2-core/at-spi2-core.hash +2 -2
index bcf3de9a44..df4d91751e 100644
@@ -1,5 +1,5 @@
-# From https://download.gnome.org/sources/at-spi2-core/2.58/at-spi2-core-2.58.2.sha256sum
-sha256  a2823b962ed16cdd5cb1fc5365029fd218394d852acd4098b321854bd6692f6e  at-spi2-core-2.58.2.tar.xz
+# From https://download.gnome.org/sources/at-spi2-core/2.62/at-spi2-core-2.62.0.1.sha256sum
+sha256  fa462f1834bae569c5944c34608872f9447e5a2889ba2aa4d5ff9f2d6ff8a395  at-spi2-core-2.62.0.1.tar.xz
 
 # locally calculated
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/at-spi2-core/at-spi2-core.mk +2 -2
index 72703e923c..8188710141 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-AT_SPI2_CORE_VERSION_MAJOR = 2.58
-AT_SPI2_CORE_VERSION = $(AT_SPI2_CORE_VERSION_MAJOR).2
+AT_SPI2_CORE_VERSION_MAJOR = 2.62
+AT_SPI2_CORE_VERSION = $(AT_SPI2_CORE_VERSION_MAJOR).0.1
 AT_SPI2_CORE_SOURCE = at-spi2-core-$(AT_SPI2_CORE_VERSION).tar.xz
 AT_SPI2_CORE_SITE = https://download.gnome.org/sources/at-spi2-core/$(AT_SPI2_CORE_VERSION_MAJOR)
 AT_SPI2_CORE_LICENSE = LGPL-2.1+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/flutter-engine: bump version to 3.44.9

This release includes upstream commit
https://github.com/flutter/flutter/commit/5526436a9488419a391a9d9242a068d2569ffadb
which adds a new configure option --no-default-linux-sysroot that implements the same function our patch 0001 added, the patch is now superfluous and was removed.

Added new patch 0001 to fix a build error with at-spi2-core.

Rebased patches 0002 & 0003.

Added new patch 0005 to fix build errors with pango >= 1.58.0.

Removed configure option --enable-impeller-3d due to upstream commit
https://github.com/flutter/flutter/commit/2c970ccee18a53c1c6b1b1dd0a05e031bbc962d6

---
All Gitlab pipelines
https://gitlab.com/bkuhls/buildroot/-/commits/47e9d779159ea92659def9c2fe93090a64f2018d
failed due to "no space left on device"

 ....h-in-sysroots-to-add-C-linkage-decl.patch | 121 ++++++++++++++++++
 .../0001-disable-pre-canned-sysroot.patch     |  32 -----
 .../0002-remove-explicit-x11-dependency.patch |  22 ++--
 .../0003-fix-toolchain-paths.patch            |  21 ++-
 .../0005-Fix-building-on-Pango-1.58.0.patch   |  33 +++++
 package/flutter-engine/flutter-engine.mk      |   4 +-
 6 files changed, 186 insertions(+), 47 deletions(-)
 create mode 100644 package/flutter-engine/0001-Patch-atkversion.h-in-sysroots-to-add-C-linkage-decl.patch
 delete mode 100644 package/flutter-engine/0001-disable-pre-canned-sysroot.patch
 create mode 100644 package/flutter-engine/0005-Fix-building-on-Pango-1.58.0.patch
package/flutter-engine/0001-Patch-atkversion.h-in-sysroots-to-add-C-linkage-decl.patch new file +121 -0
new file mode 100644
index 0000000000..dae8350d0d
@@ -0,0 +1,121 @@
+From 644385a0422793fb1b5324fab666289cd7ffc34c Mon Sep 17 00:00:00 2001
+From: Valentin Haudiquet <[email protected]>
+Date: Tue, 25 Aug 2026 11:18:23 +0200
+Subject: [PATCH] Patch atkversion.h in sysroots to add C linkage
+ declarations
+
+The atkversion.h header in at-spi2-core (Debian Bullseye 2.38 and
+Trixie 2.56.2) lacks G_BEGIN_DECLS/G_END_DECLS, causing link failures
+when included from C++ code. This was fixed upstream in
+https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/219
+but the fix has not yet propagated to all Debian stable releases.
+
+Previously, fl_view_accessible.cc and fl_accessibility_handler_test.cc
+worked around this by wrapping #include <atk/atk.h> in extern "C" { }.
+This breaks on Trixie sysroots where atk.h pulls in headers with C++
+features that cannot be inside an extern "C" block.
+
+This commit:
+- Adds PatchAtkVersionHeader() to install-sysroot.py, which patches
+  atkversion.h after sysroot extraction to add G_BEGIN_DECLS/
+  G_END_DECLS (the same fix as upstream MR 219). Idempotent.
+- Removes the extern "C" workaround from fl_view_accessible.cc and
+  fl_accessibility_handler_test.cc, relying on the patched header
+  for proper C linkage.
+
+Upstream: https://github.com/flutter/flutter/pull/178712
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ .../linux/sysroot_scripts/install-sysroot.py  | 27 +++++++++++++++++++
+ .../linux/fl_accessibility_handler_test.cc    |  4 ---
+ .../platform/linux/fl_view_accessible.cc      |  4 ---
+ 3 files changed, 27 insertions(+), 8 deletions(-)
+
+diff --git a/engine/src/build/linux/sysroot_scripts/install-sysroot.py b/engine/src/build/linux/sysroot_scripts/install-sysroot.py
+index 2d4cea9342d..5229a09e54e 100755
+--- a/engine/src/build/linux/sysroot_scripts/install-sysroot.py
++++ b/engine/src/build/linux/sysroot_scripts/install-sysroot.py
+@@ -102,6 +102,31 @@ def GetSysrootDict(sysroots_json_path, target_platform, target_arch):
+     if sysroot_key not in sysroots:
+         raise Error("No sysroot for: %s %s" % (target_platform, target_arch))
+     return sysroots[sysroot_key]
++def PatchAtkVersionHeader(sysroot):
++  """Patch atkversion.h in the sysroot to add C linkage declarations.
++
++  The atkversion.h header in at-spi2-core (used by Debian Bullseye and
++  Trixie sysroots) lacks G_BEGIN_DECLS/G_END_DECLS, causing link failures
++  when the header is included from C++ code.  This was fixed upstream in
++  https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/219
++  but the fix has not yet propagated to all Debian stable releases.
++  """
++  for atkversion in glob.glob(
++      os.path.join(sysroot, "usr", "include", "atk-1.0", "atk", "atkversion.h")):
++    with open(atkversion, "r") as f:
++      content = f.read()
++    if "G_BEGIN_DECLS" in content or 'extern "C"' in content:
++      continue  # Already has C linkage declarations
++    # Add G_BEGIN_DECLS after #include <glib.h> and G_END_DECLS
++    # before the final #endif.
++    content = content.replace(
++        "#include <glib.h>\n", "#include <glib.h>\n\nG_BEGIN_DECLS\n", 1)
++    content = content.replace(
++        '#endif /* __ATK_VERSION_H__ */',
++        'G_END_DECLS\n\n#endif /* __ATK_VERSION_H__ */', 1)
++    with open(atkversion, "w") as f:
++      f.write(content)
++
+ def InstallSysroot(sysroots_json_path, target_platform, target_arch):
+     sysroot_dict = GetSysrootDict(sysroots_json_path, target_platform,
+                                   target_arch)
+@@ -120,6 +145,7 @@ def InstallSysroot(sysroots_json_path, target_platform, target_arch):
+             os.path.join(sysroot, ".*_is_first_class_gcs")):
+         with open(stamp) as s:
+             if s.read() == url:
++                PatchAtkVersionHeader(sysroot)
+                 return
+     print("Installing Debian %s %s root image: %s" %
+           (target_platform, target_arch, sysroot))
+@@ -145,6 +171,7 @@ def InstallSysroot(sysroots_json_path, target_platform, target_arch):
+         raise Error("Tarball sha256sum is wrong."
+                     "Expected %s, actual: %s" % (tarball_sha256sum, sha256sum))
+     subprocess.check_call(["tar", "mxf", tarball, "-C", sysroot])
++    PatchAtkVersionHeader(sysroot)
+     os.remove(tarball)
+     with open(stamp, "w") as s:
+         s.write(url)
+diff --git a/engine/src/flutter/shell/platform/linux/fl_accessibility_handler_test.cc b/engine/src/flutter/shell/platform/linux/fl_accessibility_handler_test.cc
+index 8a0a972d2eb..913cc480a15 100644
+--- a/engine/src/flutter/shell/platform/linux/fl_accessibility_handler_test.cc
++++ b/engine/src/flutter/shell/platform/linux/fl_accessibility_handler_test.cc
+@@ -2,11 +2,7 @@
+ // Use of this source code is governed by a BSD-style license that can be
+ // found in the LICENSE file.
+ 
+-// Workaround missing C code compatibility in ATK header.
+-// Fixed in https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/219
+-extern "C" {
+ #include <atk/atk.h>
+-}
+ 
+ #include "flutter/shell/platform/linux/fl_accessibility_handler.h"
+ #include "flutter/shell/platform/linux/fl_binary_messenger_private.h"
+diff --git a/engine/src/flutter/shell/platform/linux/fl_view_accessible.cc b/engine/src/flutter/shell/platform/linux/fl_view_accessible.cc
+index df3a986ab9f..0f1cb1caf80 100644
+--- a/engine/src/flutter/shell/platform/linux/fl_view_accessible.cc
++++ b/engine/src/flutter/shell/platform/linux/fl_view_accessible.cc
+@@ -2,11 +2,7 @@
+ // Use of this source code is governed by a BSD-style license that can be
+ // found in the LICENSE file.
+ 
+-// Workaround missing C code compatibility in ATK header.
+-// Fixed in https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/219
+-extern "C" {
+ #include <atk/atk.h>
+-}
+ 
+ #include "flutter/shell/platform/linux/fl_accessible_node.h"
+ #include "flutter/shell/platform/linux/fl_accessible_text_field.h"
+-- 
+2.47.3
+
package/flutter-engine/0001-disable-pre-canned-sysroot.patch deleted +0 -32
deleted file mode 100644
index 2c02fc4948..0000000000
@@ -1,32 +0,0 @@
-From 49a14e693124dc34f2cccbfb755d01a1198aa6bf Mon Sep 17 00:00:00 2001
-From: Joel Winarske <[email protected]>
-Date: Wed, 19 Jul 2023 15:24:22 -0700
-Subject: [PATCH] disable pre-canned sysroot
-
-Override should be enabled if a custom sysroot using --target-sysroot is
-specified. If --target-sysroot is not set, then it should default to the
-pre-canned sysroot.
-
-Upstream: https://github.com/flutter/flutter/issues/123073
-Signed-off-by: Joel Winarske <[email protected]>
-Signed-off-by: Adam Duskett <[email protected]>
----
- engine/src/build/config/sysroot.gni | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/engine/src/build/config/sysroot.gni b/engine/src/build/config/sysroot.gni
-index 7987e519d..1de694263 100644
---- a/engine/src/build/config/sysroot.gni
-+++ b/engine/src/build/config/sysroot.gni
-@@ -12,7 +12,7 @@ declare_args() {
- 
-   # Whether to use the default sysroot when building for Linux, if an explicit
-   # sysroot isn't set.
--  use_default_linux_sysroot = true
-+  use_default_linux_sysroot = false
- }
- 
- if (current_toolchain == default_toolchain && target_sysroot != "") {
--- 
-2.41.0
-
package/flutter-engine/0002-remove-explicit-x11-dependency.patch +12 -10
index 85f6db1c38..5751b898d4 100644
@@ -9,6 +9,8 @@ gtk3 (e.g. wayland.)
 Upstream: https://github.com/flutter/flutter/issues/123073
 Signed-off-by: Joel Winarske <[email protected]>
 Signed-off-by: Adam Duskett <[email protected]>
+[Bernd: rebased for 3.44.9]
+Signed-off-by: Bernd Kuhls <[email protected]>
 ---
  engine/src/flutter/shell/platform/linux/config/BUILD.gn | 4 ----
  1 file changed, 4 deletions(-)
@@ -17,17 +19,17 @@ diff --git a/engine/src/flutter/shell/platform/linux/config/BUILD.gn b/engine/sr
 index da0ac056b..70c7a0ea1 100644
 --- a/engine/src/flutter/shell/platform/linux/config/BUILD.gn
 +++ b/engine/src/flutter/shell/platform/linux/config/BUILD.gn
-@@ -5,10 +5,6 @@
- import("//build/config/linux/pkg_config.gni")
- import("//flutter/shell/platform/glfw/config.gni")
+@@ -7,10 +7,6 @@
  
--pkg_config("x11") {
--  packages = [ "x11" ]
--}
--
- pkg_config("gtk") {
-   packages = [ "gtk+-3.0" ]
- }
+ _pkg_configs = [
+   {
+-    name = "x11"
+-    package = "x11"
+-  },
+-  {
+     name = "gtk"
+     package = "gtk+-3.0"
+   },
 -- 
 2.41.0
 
package/flutter-engine/0003-fix-toolchain-paths.patch +18 -3
index 93239c039f..d797e15f2f 100644
@@ -12,6 +12,8 @@ Upstream: https://github.com/flutter/flutter/issues/123073
 
 Signed-off-by: Joel Winarske <[email protected]>
 Signed-off-by: Adam Duskett <[email protected]>
+[Bernd: rebased for 3.44.9]
+Signed-off-by: Bernd Kuhls <[email protected]>
 ---
  engine/src/build/toolchain/custom/BUILD.gn | 4 +++++------
  1 file changed, 5 insertions(+), 6 deletions(-)
@@ -20,11 +22,23 @@ diff --git a/engine/src/build/toolchain/custom/BUILD.gn b/engine/src/build/toolc
 index 65b1623..8b3f6f8 100644
 --- a/engine/src/build/toolchain/custom/BUILD.gn
 +++ b/engine/src/build/toolchain/custom/BUILD.gn
-@@ -12,11 +12,11 @@ toolchain("custom") {
+@@ -7,21 +7,17 @@
+ 
+ toolchain("custom") {
+   toolchain_bin = "${custom_toolchain}/bin"
+-  compiler_prefix = ""
+-  if (use_ccache) {
+-    compiler_prefix = "ccache "
+-  }
+ 
+   # We can't do string interpolation ($ in strings) on things with dots in
+   # them. To allow us to use $cc below, for example, we create copies of
    # these values in our scope.
-   cc = "${toolchain_bin}/clang"
-   cxx = "${toolchain_bin}/clang++"
+-  cc = "${compiler_prefix}${toolchain_bin}/clang"
+-  cxx = "${compiler_prefix}${toolchain_bin}/clang++"
 -  ar = "${toolchain_bin}/${custom_target_triple}-ar"
++  cc = "${toolchain_bin}/clang"
++  cxx = "${toolchain_bin}/clang++"
 +  ar = "${toolchain_bin}/llvm-ar"
    ld = "${toolchain_bin}/clang++"
 -  readelf = "${toolchain_bin}/${custom_target_triple}-readelf"
@@ -38,3 +52,4 @@ index 65b1623..8b3f6f8 100644
    sysroot_flags = "--sysroot ${custom_sysroot}"
 -- 
 2.39.2
+
package/flutter-engine/0005-Fix-building-on-Pango-1.58.0.patch new file +33 -0
new file mode 100644
index 0000000000..9bb475187b
@@ -0,0 +1,33 @@
+From f1c316430713ae7d526f8abc1621b09958aef281 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Mon, 21 Sep 2026 22:06:06 +0200
+Subject: [PATCH] Fix building on Pango 1.58.0
+
+This version added the autoptr macros which we no longer need to define.
+
+Upstream: https://github.com/flutter/flutter/pull/193119
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ .../flutter/shell/platform/linux/fl_accessible_text_field.cc  | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc b/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc
+index e99b123bbfd..f7955a32f07 100644
+--- a/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc
++++ b/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc
+@@ -6,7 +6,11 @@
+ #include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_message_codec.h"
+ #include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
+ 
++// PangoContext g_autoptr macro weren't added until 1.58.0. Add them manually.
++// https://gitlab.gnome.org/GNOME/pango/-/commit/223b147
++#if !PANGO_VERSION_CHECK(1, 58, 0)
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoContext, g_object_unref)
++#endif
+ // PangoLayout g_autoptr macro weren't added until 1.49.4. Add them manually.
+ // https://gitlab.gnome.org/GNOME/pango/-/commit/0b84e14
+ #if !PANGO_VERSION_CHECK(1, 49, 4)
+-- 
+2.47.3
+
package/flutter-engine/flutter-engine.mk +2 -2
index 1fa59a3863..e7ff5e2eef 100644
@@ -22,7 +22,7 @@
 # There is no hash provided for the source tarball, as the gn binary
 # (used for configuration) relies on the .git directories. As such, a
 # reproducible tarball is not possible.
-FLUTTER_ENGINE_VERSION = 3.29.2
+FLUTTER_ENGINE_VERSION = 3.44.9
 
 # There is nothing for Buildroot to download. This is handled by gclient.
 FLUTTER_ENGINE_SITE =
@@ -83,6 +83,7 @@ FLUTTER_ENGINE_CONF_OPTS = \
 	--runtime-mode $(FLUTTER_ENGINE_RUNTIME_MODE) \
 	--target-os linux \
 	--target-sysroot $(STAGING_DIR) \
+	--no-default-linux-sysroot \
 	--target-toolchain $(FLUTTER_ENGINE_CLANG_PATH) \
 	--target-triple $(FLUTTER_ENGINE_TARGET_TRIPPLE)
 
@@ -127,7 +128,6 @@ endif
 
 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
 FLUTTER_ENGINE_DEPENDENCIES += libgles
-FLUTTER_ENGINE_CONF_OPTS += --enable-impeller-3d
 endif
 
 ifeq ($(BR2_PACKAGE_LIBGLFW),y)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/flutter-engine: bump version to 3.44.9

Hi Bernd,

Quoted 12 lines · Bernd Kuhls

This release includes upstream commit
https://github.com/flutter/flutter/commit/5526436a9488419a391a9d9242a068d2569ffadb
which adds a new configure option --no-default-linux-sysroot that implements the same function our patch 0001 added, the patch is now superfluous and was removed.

Added new patch 0001 to fix a build error with at-spi2-core.

Rebased patches 0002 & 0003.

Added new patch 0005 to fix build errors with pango >= 1.58.0.

Quoted 8 lines

Removed configure option --enable-impeller-3d due to upstream commit
https://github.com/flutter/flutter/commit/2c970ccee18a53c1c6b1b1dd0a05e031bbc962d6

---
All Gitlab pipelines
https://gitlab.com/bkuhls/buildroot/-/commits/47e9d779159ea92659def9c2fe93090a64f2018d
failed due to "no space left on device"

The runtime test is failing at build time, even when executed locally with enough storage, with command:

utils/docker-run support/testing/run-tests \
    -k -d dl -o output_folder \
    tests.package.test_flutter

On my side, it failed with the error:

/usr/bin/sed: can't read flutter-engine-3.44.9/engine/src/flutter/build_overrides/vulkan_headers.gni: No such file or directory

Can you have a look, please?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot