poky/meta
Andreas Stergiopoulos 38bf362945 sanity.bbclass: Remove tool version repetition for gcc, patch, git, make, tar
This commit mainly changes the way that error messages are printed when
sanity checking for the version numbers of gcc, patch, git, make and
tar. It affects the following functions:

check_patch_version(),
check_make_version(),
check_gcc_version(),
check_tar_version(),
check_git_version()

Before this commit, the minimum version number and the error string
were hard-coded string literals which the programmer had to maintain
manually and independently. With this change, the version is defined
once in each function and then used both for checking and for error
printing.

Additionally, the affected error messages have been made to spill
over multiple lines for better source code readability.

Link to the relevant discussion:
https://lists.openembedded.org/g/openembedded-core/topic/115491380#msg224131

This change has been tested by changing the version string and making
sure that the test fails and the proper minimum version is reported
in the error message.

Suggested-By: Yoann Congal <yoann.congal@smile.fr>
(From OE-Core rev: 27a4ce7b34946200e35adfab1ace512a531fc560)

Signed-off-by: Andreas Stergiopoulos <andreas.stergiopoulos@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-10-16 10:53:10 +01:00
..
classes classes/toolchain/clang: depend on llvm-native for tools, not clang 2025-10-09 10:58:07 +01:00
classes-global sanity.bbclass: Remove tool version repetition for gcc, patch, git, make, tar 2025-10-16 10:53:10 +01:00
classes-recipe rust-target-config: PPC64 targets require explicit ABI selection to avoid build failures with rustc. 2025-10-14 11:28:56 +01:00
conf distro/defaultsetup: Add buildstats by default 2025-10-16 10:53:10 +01:00
files uninative/utils: Drop workarounds for gcc 4.8/4.9 2025-07-03 10:40:16 +01:00
lib oeqa/selftest/yoctotestresultquerytest: Fix revisions to match OE-Core 2025-10-14 11:32:55 +01:00
recipes-bsp u-boot: Make sure the build dir is unique for each UBOOT_CONFIG 2025-10-13 18:01:03 +01:00
recipes-connectivity openssl: upgrade 3.5.2 -> 3.5.4 2025-10-09 10:58:07 +01:00
recipes-core busybox: patch CVE-2025-46394 2025-10-06 23:15:59 +01:00
recipes-devtools python3-idna: Upgrade 3.10 -> 3.11 2025-10-16 10:53:10 +01:00
recipes-extended libpam: Fix build with LLD linker 2025-10-14 11:27:19 +01:00
recipes-gnome json-glib: upgrade 1.10.6 -> 1.10.8 2025-10-13 18:01:04 +01:00
recipes-graphics mesa: provide glx.pc 2025-10-16 10:53:10 +01:00
recipes-kernel perf: Tweak reproducibility fix 2025-10-16 10:53:10 +01:00
recipes-multimedia x264: switch to PACKAGECONFIG 2025-10-13 18:01:04 +01:00
recipes-rt rt-tests: upgrade 2.8 -> 2.9 2025-07-21 23:00:18 +01:00
recipes-sato libwpe: upgrade 1.16.2 -> 1.16.3 2025-09-25 11:09:05 +01:00
recipes-support vte: Depend on system provided fmt package 2025-10-16 10:53:10 +01:00
site site/arm-linux: Fix typo for sizeof_char_p 2024-11-21 12:16:28 +00:00
COPYING.MIT
recipes.txt