e2fsprogs: Fix build failure with gcc 15
PATCH 1/3 e2fsprogs: Fix build failure with gcc 15
From: Khem Raj <[email protected]>
Backport a needed fix
--- ...-libext2fs-fix-std-c23-build-failure.patch | 42 +++++++++++++++++++ .../e2fsprogs/e2fsprogs_1.47.0.bb | 1 + 2 files changed, 43 insertions(+) create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch
meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 72dcef02bee9924c4d5b3dc6e7ef4d07becebcc6 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Fri, 22 Nov 2024 12:36:32 +0000 +Subject: [PATCH] libext2fs: fix -std=c23 build failure + +gcc-15 switched to -std=c23 by default: + + https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 + +As a result `e2fsprogs` fails the build so only typedef int bool +for __STDC_VERSION__ <= 201710L (C17) + + ../../../lib/ext2fs/tdb.c:113:13: error: two or more data types in declaration specifiers + ../../../lib/ext2fs/tdb.c:113:1: warning: useless type name in empty declaration + 113 | typedef int bool; + | ^~~~~~~ + +https://github.com/tytso/e2fsprogs/issues/202 + +Upstream-Status: Backport [https://github.com/tytso/e2fsprogs/commit/49fd04d77b3244c6c6990be41142168eef373aef] +Signed-off-by: Rudi Heitbaum <[email protected]> +Link: https://lore.kernel.org/r/Z0B60JhdvT9bpSQ6@6f91903e89da +Signed-off-by: Theodore Ts'o <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + lib/ext2fs/tdb.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c +index b07b2917..98dc95d8 100644 +--- a/lib/ext2fs/tdb.c ++++ b/lib/ext2fs/tdb.c +@@ -110,7 +110,9 @@ static char *rep_strdup(const char *s) + #endif + #endif + ++#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L + typedef int bool; ++#endif + + #include "tdb.h" +
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb +1 -0
@@ -4,6 +4,7 @@ SRC_URI += "file://remove.ldconfig.call.patch \ file://run-ptest \ file://ptest.patch \ file://mkdir_p.patch \ + file://0001-libext2fs-fix-std-c23-build-failure.patch \ " SRC_URI:append:class-native = " \ file://e2fsprogs-fix-missing-check-for-permission-denied.patch \
PATCH 2/3 parted: Fix build with GCC 15
From: Khem Raj <[email protected]>
--- ...CH-parted-fix-do_version-declaration.patch | 40 +++++++++++++++++++ meta/recipes-extended/parted/parted_3.6.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch
meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch new file +40 -0
@@ -0,0 +1,40 @@ +From eb6bb2e8dfc78ca1a187d07ea29b23a805c61794 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Wed, 20 Nov 2024 12:22:22 +0000 +Subject: [PATCH] bug#74444: [PATCH] parted: fix do_version declaration + +With gcc 15-20241117 compile fails with the below error, update the +do_version declaration to match the header in command.h + +../../parted/parted.c: In function '_init_commands': +../../parted/parted.c:2469:9: error: passing argument 2 of 'command_create' from incompatible pointer type [-Wincompatible-pointer-types] + 2469 | do_version, + | ^~~~~~~~~~ + | | + | int (*)(void) +In file included from ../../parted/parted.c:28: +../../parted/command.h:35:39: note: expected 'int (*)(PedDevice **, PedDisk **)' {aka 'int (*)(struct _PedDevice **, struct _PedDisk **)'} but argument is of type 'int (*)(void)' + 35 | int (*method) (PedDevice** dev, PedDisk** diskp), + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/parted.git/commit/?id=16343bda6ce0d41edf43f8dac368db3bbb63d271] +Signed-off-by: Rudi Heitbaum <[email protected]> +Signed-off-by: Brian C. Lane <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + parted/parted.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/parted/parted.c b/parted/parted.c +index 3abb52f..fc2aeba 100644 +--- a/parted/parted.c ++++ b/parted/parted.c +@@ -2172,7 +2172,7 @@ do_unit (PedDevice** dev, PedDisk** diskp) + } + + static int +-do_version () ++do_version (PedDevice** dev, PedDisk** diskp) + { + printf ("\n%s\n%s", + prog_name,
meta/recipes-extended/parted/parted_3.6.bb +1 -0
@@ -10,6 +10,7 @@ SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \ file://fix-doc-mandir.patch \ file://0001-fs-Add-libuuid-to-linker-flags-for-libparted-fs-resi.patch \ file://autoconf-2.73.patch \ + file://0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch \ file://run-ptest \ "
PATCH 3/3 cairo: fix build with gcc-15 on host
In reply to [email protected]From: Martin Jansa <[email protected]>
* backports from 1.18.2 used since:
https://git.openembedded.org/openembedded-core/commit/?id=070d79c8adec7e0a8862019cf61910a59b18613a
* fixes build on hosts with gcc-15 (e.g. ubuntu-25.10)
../cairo-1.18.0/test/pdiff/pdiff.h:22:13: error: âboolâ cannot be defined via âtypedefâ
22 | typedef int bool;
| ^~~~
../cairo-1.18.0/test/pdiff/pdiff.h:22:13: note: âboolâ is a keyword with â-std=c23â onwards
../cairo-1.18.0/test/pdiff/pdiff.h:22:1: warning: useless type name in empty declaration
22 | typedef int bool;
| ^~~~~~~--- .../cairo/cairo/0001-Require-C11.patch | 25 +++++++++++++++++++ .../cairo/cairo/0002-Meson-Require-C-11.patch | 22 ++++++++++++++++ meta/recipes-graphics/cairo/cairo_1.18.0.bb | 2 ++ 3 files changed, 49 insertions(+) create mode 100644 meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch create mode 100644 meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch
meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch new file +25 -0
@@ -0,0 +1,25 @@ +From de2452228814e804b103dfa7c2d37b3a216c6155 Mon Sep 17 00:00:00 2001 +From: Adrian Johnson <[email protected]> +Date: Sun, 28 Apr 2024 21:31:41 +0930 +Subject: [PATCH] Require C11 + +Upstream-Status: Backport [https://gitlab.freedesktop.org/cairo/cairo/-/commit/b60f47dfd5bbe98aec43f6c356ba3be9a1b7989e] +--- + meson.build | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/meson.build b/meson.build +index 9100152..f8432fd 100644 +--- a/meson.build ++++ b/meson.build +@@ -1,7 +1,8 @@ + project('cairo', 'c', 'cpp', +- meson_version: '>= 0.59.0', ++ meson_version: '>= 1.3.0', + version: run_command(find_program('version.py'), check: true).stdout().strip(), +- default_options: ['warning_level=2'], ++ default_options: ['c_std=gnu11,c11', ++ 'warning_level=2'], + ) + + freetype_required_version = '>= 9.7.3'
meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch new file +22 -0
@@ -0,0 +1,22 @@ +From d9cc95b94b2bb1e67f2095cda484d4a8a63aba10 Mon Sep 17 00:00:00 2001 +From: Luca Bacci <[email protected]> +Date: Thu, 16 Jan 2025 16:48:12 +0100 +Subject: [PATCH] Meson: Require C++11 + +Upstream-Status: Backport [https://gitlab.freedesktop.org/cairo/cairo/-/commit/dfd06ab3884d79de3b5bac782d1e8b2a0bd791ab] +--- + meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/meson.build b/meson.build +index f8432fd..85434d2 100644 +--- a/meson.build ++++ b/meson.build +@@ -2,6 +2,7 @@ project('cairo', 'c', 'cpp', + meson_version: '>= 1.3.0', + version: run_command(find_program('version.py'), check: true).stdout().strip(), + default_options: ['c_std=gnu11,c11', ++ 'cpp_std=gnu++11,c++11', + 'warning_level=2'], + ) +
meta/recipes-graphics/cairo/cairo_1.18.0.bb +2 -0
@@ -30,6 +30,8 @@ DEPENDS = "fontconfig freetype glib-2.0 libpng pixman zlib" SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ + file://0001-Require-C11.patch \ + file://0002-Meson-Require-C-11.patch \ " SRC_URI[sha256sum] = "243a0736b978a33dee29f9cca7521733b78a65b5418206fef7bd1c3d4cf10b64"
Patchtest results for [scarthgap][PATCH 3/3] cairo: fix build with gcc-15 on host
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/scarthgap-3-3-cairo-fix-build-with-gcc-15-on-host.patch
FAIL: test Signed-off-by presence: A patch file has been added without a Signed-off-by tag: '0001-Require-C11.patch' (test_patch.TestPatch.test_signed_off_by_presence)
PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Upstream-Status presence (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in its package feed?
Quoted 84 lines · Martin Jansa via lists.openembedded.org
From: Khem Raj <[email protected]>
Backport a needed fix
Signed-off-by Khem Raj <[email protected]>Signed-off-by Richard Purdie <[email protected]>Signed-off-by Martin Jansa <[email protected]>--- ...-libext2fs-fix-std-c23-build-failure.patch | 42 +++++++++++++++++++ .../e2fsprogs/e2fsprogs_1.47.0.bb | 1 + 2 files changed, 43 insertions(+)create mode 100644
meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patchmeta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch new file +42
-0@@ -0,0 +1,42 @@ +From 72dcef02bee9924c4d5b3dc6e7ef4d07becebcc6 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Fri, 22 Nov 2024 12:36:32 +0000 +Subject: [PATCH] libext2fs: fix -std=c23 build failure + +gcc-15 switched to -std=c23 by default: + + https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 + +As a result `e2fsprogs` fails the build so only typedef int bool +for __STDC_VERSION__ <= 201710L (C17) + + ../../../lib/ext2fs/tdb.c:113:13: error: two or more data types in declaration specifiers + ../../../lib/ext2fs/tdb.c:113:1: warning: useless type name in empty declaration + 113 | typedef int bool; + | ^~~~~~~ + +https://github.com/tytso/e2fsprogs/issues/202 + +Upstream-Status: Backport [https://github.com/tytso/e2fsprogs/commit/49fd04d77b3244c6c6990be41142168eef373aef] +Signed-off-by: Rudi Heitbaum <[email protected]> +Link: https://lore.kernel.org/r/Z0B60JhdvT9bpSQ6@6f91903e89da +Signed-off-by: Theodore Ts'o <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + lib/ext2fs/tdb.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c +index b07b2917..98dc95d8 100644 +--- a/lib/ext2fs/tdb.c ++++ b/lib/ext2fs/tdb.c +@@ -110,7 +110,9 @@ static char *rep_strdup(const char *s) + #endif + #endif + ++#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L + typedef int bool; ++#endif + + #include "tdb.h" +meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb +1
-1@@ -4,6 +4,7 @@ SRC_URI += "file://remove.ldconfig.call.patch \ file://run-ptest \ file://ptest.patch \ file://mkdir_p.patch \ + file://0001-libext2fs-fix-std-c23-build-failure.patch \ " SRC_URI:append:class-native = " \ file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#222018): https://lists.openembedded.org/g/openembedded-core/message/222018
Mute This Topic: https://lists.openembedded.org/mt/114753788/6293953
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in its package feed?
I haven't built the whole world, but these changes allowed me to build our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more changes sent for walnascar).
So even when it's not officially supported (or tested on AB), these changes are safe enough, right?
Hi Martin,
Quoted 8 lines · Martin Jansa
Quoted 5 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in its package feed?
Quoted 6 lines
I haven't built the whole world, but these changes allowed me to build our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more changes sent for walnascar).
So even when it's not officially supported (or tested on AB), these changes are safe enough, right?
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas, CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very much* welcome.
I'm not sure we need to add on maintainer load by patching Yocto for unsupported distros. But that's a call the maintainer(s) and or TSC to make.
Meanwhile, quoting our wiki https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS#Stable/LTS_Patch_Acceptance_Policies
"""
Potentially Acceptable:
Fixes so codebase works with newly released distros (only in the
first six months after a given release series first releases) """
Considering we release twice a year, I guess the rule of thumb is: is there a more recent (tagged) release than the one you want to backport to? Yes, then backport denied. No, then backport arguable with the community.
So I guess this would make backporting to Walnascar **potentially acceptable** while for Scarthgap not.
We should probably add the information from the wiki (if still applicable) to the docs instead of the wiki.
Cheers,
Quentin
Quoted 19 lines · Quentin Schulz
Hi Martin,
Quoted 8 lines · Martin Jansa
Quoted 5 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in its package feed?
Quoted 6 lines
I haven't built the whole world, but these changes allowed me to build our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more changes sent for walnascar).
So even when it's not officially supported (or tested on AB), these changes are safe enough, right?
Quoted 6 lines
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas, CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very much* welcome.
I use containers, this one with ubuntu-25.10, I can switch to older ubuntu if needed, but it's useful to catch issues early (by someone who can also provided patches where needed, instead of random people reporting that LTS versions don't work on their new system).
All of these changes are backports from master where it was already fixed by Khem or me before (with the exception of cairo where I've backported just 2 fixes from upstream instead of whole minor upgrade as the rest of the upgrade isn't needed for LTS).
Quoted 2 lines
I'm not sure we need to add on maintainer load by patching Yocto for unsupported distros. But that's a call the maintainer(s) and or TSC to make.
Agreed, Steve already queued the patches in scarthgap-nut, similar fixes were already merged in meta-clang and meta-tensorflow, so hopefully these small changes to keep the LTS buildable on newer OS versions don't add too much trouble for them.
I am not asking anyone to regularly validate that older LTS work on newer OS then what was originally tested, but if small already tested fix is identified, sent and doesn't break anything on older supported OSes, then is it too much to ask for it being applied?
Cheers,
Quoted 54 lines · Martin Jansa
Quoted 23 lines · Quentin Schulz
Hi Martin,
Quoted 15 lines · Martin Jansa
Quoted 6 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in
its package feed?I haven't built the whole world, but these changes allowed me to build
our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more
changes sent for walnascar).Quoted 3 lines
So even when it's not officially supported (or tested on AB), these
changes are safe enough, right?Quoted 8 lines
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas,
CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very
much* welcome.I use containers, this one with ubuntu-25.10, I can switch to older ubuntu if needed, but it's useful to catch issues early (by someone who can also provided patches where needed, instead of random people reporting that LTS versions don't work on their new system).
All of these changes are backports from master where it was already fixed by Khem or me before (with the exception of cairo where I've backported just 2 fixes from upstream instead of whole minor upgrade as the rest of the upgrade isn't needed for LTS).
Quoted 4 lines
I'm not sure we need to add on maintainer load by patching Yocto for
unsupported distros. But that's a call the maintainer(s) and or TSC to make.Agreed, Steve already queued the patches in scarthgap-nut, similar fixes were already merged in meta-clang and meta-tensorflow, so hopefully these small changes to keep the LTS buildable on newer OS versions don't add too much trouble for them.
Quoted 4 lines
I am not asking anyone to regularly validate that older LTS work on newer OS then what was originally tested, but if small already tested fix is identified, sent and doesn't break anything on older supported OSes, then is it too much to ask for it being applied?
Our policy has been to accept simple changes to keep the releases building on newer distros as long as they're not too invasive/risky. As the releases age, the barrier to entry increases.
Where a distro is known to work, we also have been known to enable testing on it. It really has to be on a case by case basis though, not all distro changes are equal and we can't know in advance what they are.
Cheers,
Richard
Quoted 61 lines · Richard Purdie
Quoted 54 lines · Martin Jansa
Quoted 23 lines · Quentin Schulz
Hi Martin,
Quoted 15 lines · Martin Jansa
Quoted 6 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in
its package feed?I haven't built the whole world, but these changes allowed me to build
our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more
changes sent for walnascar).Quoted 3 lines
So even when it's not officially supported (or tested on AB), these
changes are safe enough, right?Quoted 8 lines
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas,
CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very
much* welcome.I use containers, this one with ubuntu-25.10, I can switch to older ubuntu if needed, but it's useful to catch issues early (by someone who can also provided patches where needed, instead of random people reporting that LTS versions don't work on their new system).
All of these changes are backports from master where it was already fixed by Khem or me before (with the exception of cairo where I've backported just 2 fixes from upstream instead of whole minor upgrade as the rest of the upgrade isn't needed for LTS).
Quoted 4 lines
I'm not sure we need to add on maintainer load by patching Yocto for
unsupported distros. But that's a call the maintainer(s) and or TSC to make.Agreed, Steve already queued the patches in scarthgap-nut, similar fixes were already merged in meta-clang and meta-tensorflow, so hopefully these small changes to keep the LTS buildable on newer OS versions don't add too much trouble for them.
Quoted 4 lines
I am not asking anyone to regularly validate that older LTS work on newer OS then what was originally tested, but if small already tested fix is identified, sent and doesn't break anything on older supported OSes, then is it too much to ask for it being applied?
Quoted 8 lines
Our policy has been to accept simple changes to keep the releases building on newer distros as long as they're not too invasive/risky. As the releases age, the barrier to entry increases.
Where a distro is known to work, we also have been known to enable testing on it. It really has to be on a case by case basis though, not all distro changes are equal and we can't know in advance what they are.
Richard took the words right out of my mouth :-)
An additional factor for supporting newer releases when feasible is that older releases on autobuilder workers are phased out over time, leaving a smaller and smaller pool available for LTS testing.
Being able to add newer releases to the LTS worker pool is definitely a good thing!
Steve
Thanks Richard and Steve!
Crofton reported ncurses-native issue yesterday on #oe, so I've sent fix for that as well as cmake-native and git-native which were failing after that (then noticed that Rudi already reported these a month ago in Fedora 42 https://lists.yoctoproject.org/g/yocto/message/65542 )
Then I've realized that bunch of -native deps weren't rebuilt in my builds, due to sstate still being valid after updating docker image with new ubuntu-25.10 snapshot having gcc-15, so I did one more scarthgap and walnascar build without any sstate to catch them all (this time with gentoo with gcc-15 and python-14 to catch all bleeding edge cases).
Now I've a bit longer set of fixes to send:a3403dabc9 (HEAD -> jansa/scarthgap, l/jansa/scarthgap, l/HEAD)
yocto-uninative: Update to 4.9 for glibc 2.42 ee2ff5c8e5 yocto-uninative: Update to 4.8 for GCC 15.1
b3c18663ea pkgconfig: fix build with gcc-159e6c809248 unifdef: Don't use C23 constexpr keyword 390be89335 gdbm: Use C11 standardc0f2eff170 gmp: Fix build with older gcc versions 10a482993b gmp: Fix build with GCC15/C231cf6c77ae4 m4: Stick to C17 standard0aaed0c782 unzip: Fix build with GCC-15
and there will be few more before the build finishes (libtirpc-native elfutils-native libgpg-error-native)
5cbb155559 lib/oe/utils: use multiprocessing from bb
The last one depends onbde29045a Use a "fork" multiprocessing context
for bitbake which would require minimum version bump for scarthgap (and similarly for walnascar as well).
The question is, should I send them all in single batch once my local builds are finished, or just gcc-15 first and then possibly python-14/bitbake-min-version and uninative fixes later? Sorry I should have realized that I'll need to manually drop sstate to fully test this.
Regards,
Quoted 83 lines · Steve Sakoman
Quoted 61 lines · Richard Purdie
Quoted 54 lines · Martin Jansa
Quoted 23 lines · Quentin Schulz
Hi Martin,
Quoted 15 lines · Martin Jansa
Quoted 6 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in
its package feed?I haven't built the whole world, but these changes allowed me to build
our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more
changes sent for walnascar).Quoted 3 lines
So even when it's not officially supported (or tested on AB), these
changes are safe enough, right?Quoted 8 lines
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas,
CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very
much* welcome.I use containers, this one with ubuntu-25.10, I can switch to older ubuntu if needed, but it's useful to catch issues early (by someone who can also provided patches where needed, instead of random people reporting that LTS versions don't work on their new system).
All of these changes are backports from master where it was already fixed by Khem or me before (with the exception of cairo where I've backported just 2 fixes from upstream instead of whole minor upgrade as the rest of the upgrade isn't needed for LTS).
Quoted 4 lines
I'm not sure we need to add on maintainer load by patching Yocto for
unsupported distros. But that's a call the maintainer(s) and or TSC to make.Agreed, Steve already queued the patches in scarthgap-nut, similar fixes were already merged in meta-clang and meta-tensorflow, so hopefully these small changes to keep the LTS buildable on newer OS versions don't add too much trouble for them.
Quoted 4 lines
I am not asking anyone to regularly validate that older LTS work on newer OS then what was originally tested, but if small already tested fix is identified, sent and doesn't break anything on older supported OSes, then is it too much to ask for it being applied?
Quoted 8 lines
Our policy has been to accept simple changes to keep the releases building on newer distros as long as they're not too invasive/risky. As the releases age, the barrier to entry increases.
Where a distro is known to work, we also have been known to enable testing on it. It really has to be on a case by case basis though, not all distro changes are equal and we can't know in advance what they are.
Richard took the words right out of my mouth :-)
An additional factor for supporting newer releases when feasible is that older releases on autobuilder workers are phased out over time, leaving a smaller and smaller pool available for LTS testing.
Being able to add newer releases to the LTS worker pool is definitely a good thing!
Steve
Quoted 37 lines · Martin Jansa
Thanks Richard and Steve!
Crofton reported ncurses-native issue yesterday on #oe, so I've sent fix for that as well as cmake-native and git-native which were failing after that (then noticed that Rudi already reported these a month ago in Fedora 42 https://lists.yoctoproject.org/g/yocto/message/65542 )
Then I've realized that bunch of -native deps weren't rebuilt in my builds, due to sstate still being valid after updating docker image with new ubuntu-25.10 snapshot having gcc-15, so I did one more scarthgap and walnascar build without any sstate to catch them all (this time with gentoo with gcc-15 and python-14 to catch all bleeding edge cases).
Now I've a bit longer set of fixes to send:
a3403dabc9(HEAD -> jansa/scarthgap, l/jansa/scarthgap, l/HEAD)
yocto-uninative: Update to 4.9 for glibc 2.42ee2ff5c8e5yocto-uninative: Update to 4.8 for GCC 15.1
b3c18663eapkgconfig: fix build with gcc-159e6c809248unifdef: Don't use C23 constexpr keyword390be89335gdbm: Use C11 standardc0f2eff170gmp: Fix build with older gcc versions10a482993bgmp: Fix build with GCC15/C231cf6c77ae4m4: Stick to C17 standard0aaed0c782unzip: Fix build with GCC-15
and there will be few more before the build finishes (libtirpc-native elfutils-native libgpg-error-native)
5cbb155559lib/oe/utils: use multiprocessing from bbThe last one depends on
bde29045aUse a "fork" multiprocessing context
for bitbake which would require minimum version bump for scarthgap (and similarly for walnascar as well).
Quoted 5 lines
The question is, should I send them all in single batch once my local builds are finished, or just gcc-15 first and then possibly python-14/bitbake-min-version and uninative fixes later? Sorry I should have realized that I'll need to manually drop sstate to fully test this.
Thanks for doing this!
I don't have a strong preference, so whatever is convenient for you is fine by me.
Steve
Quoted 84 lines · Steve Sakoman
Quoted 83 lines
Quoted 61 lines · Richard Purdie
Quoted 54 lines · Martin Jansa
Quoted 23 lines · Quentin Schulz
Hi Martin,
Quoted 15 lines · Martin Jansa
Quoted 6 lines · Quentin Schulz
Hi Martin,
Do we actually support any distribution for Scarthgap that has gcc 15 in
its package feed?I haven't built the whole world, but these changes allowed me to build
our images with gcc-15 from ubuntu-25.10 with scarthgap (and 2 more
changes sent for walnascar).Quoted 3 lines
So even when it's not officially supported (or tested on AB), these
changes are safe enough, right?Quoted 8 lines
My opinion is if you want to build an old branch on an unsupported distro, you maintain a fork yourself. Otherwise use containers (kas,
CROPS, ...) to build old branches on unsupported distros. Master of course is a different topic, and patches to support new GCC/glibc/musl/clang/cmake/whatever on yet-unsupported distros is *very
much* welcome.I use containers, this one with ubuntu-25.10, I can switch to older ubuntu if needed, but it's useful to catch issues early (by someone who can also provided patches where needed, instead of random people reporting that LTS versions don't work on their new system).
All of these changes are backports from master where it was already fixed by Khem or me before (with the exception of cairo where I've backported just 2 fixes from upstream instead of whole minor upgrade as the rest of the upgrade isn't needed for LTS).
Quoted 4 lines
I'm not sure we need to add on maintainer load by patching Yocto for
unsupported distros. But that's a call the maintainer(s) and or TSC to make.Agreed, Steve already queued the patches in scarthgap-nut, similar fixes were already merged in meta-clang and meta-tensorflow, so hopefully these small changes to keep the LTS buildable on newer OS versions don't add too much trouble for them.
Quoted 4 lines
I am not asking anyone to regularly validate that older LTS work on newer OS then what was originally tested, but if small already tested fix is identified, sent and doesn't break anything on older supported OSes, then is it too much to ask for it being applied?
Quoted 8 lines
Our policy has been to accept simple changes to keep the releases building on newer distros as long as they're not too invasive/risky. As the releases age, the barrier to entry increases.
Where a distro is known to work, we also have been known to enable testing on it. It really has to be on a case by case basis though, not all distro changes are equal and we can't know in advance what they are.
Richard took the words right out of my mouth :-)
An additional factor for supporting newer releases when feasible is that older releases on autobuilder workers are phased out over time, leaving a smaller and smaller pool available for LTS testing.
Being able to add newer releases to the LTS worker pool is definitely a good thing!
Steve