Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package grub2 for openSUSE:Factory checked in at 2026-11-27 21:03:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grub2 (Old) and /work/SRC/openSUSE:Factory/.grub2.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grub2" Fri Nov 27 21:03:07 2026 rev:405 rq:1400766 version:2.16 Changes: -------- --- /work/SRC/openSUSE:Factory/grub2/grub2.changes 2026-11-16 09:11:22.091088053 +0100 +++ /work/SRC/openSUSE:Factory/.grub2.new.1340718/grub2.changes 2026-11-27 21:03:29.063731624 +0100 @@ -1,0 +2,18 @@ +Thu Nov 26 07:43:55 UTC 2026 - Michael Chang <[email protected]> + +- Fix build error on i586 + * 0001-commands-efi-tpcm-Fix-pointer-to-int-cast-error-on-3.patch + +------------------------------------------------------------------- +Mon Nov 23 07:53:41 UTC 2026 - Zoltan Balogh <[email protected]> + +- Enable the upstream unit and host-tool tests: add %check that builds + and runs the unit test programs and the script tests that need no + qemu, loop devices or root. The two grub-mkconfig BootNext tests are + not run because they need a real EFI host. Tests that boot GRUB in + qemu or use loop devices are not run in the build environment. +- Skip tpcm_unit_test on 32-bit: upstream casts a pointer to + grub_uint64_t instead of grub_addr_t and it fails with -Werror. +- Add gcc-c++ BuildRequires for priority_queue_unit_test. + +------------------------------------------------------------------- New: ---- 0001-commands-efi-tpcm-Fix-pointer-to-int-cast-error-on-3.patch ----------(New B)---------- New:- Fix build error on i586 * 0001-commands-efi-tpcm-Fix-pointer-to-int-cast-error-on-3.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grub2.spec ++++++ --- /var/tmp/diff_new_pack.tn0DQd/_old 2026-11-27 21:03:32.420872672 +0100 +++ /var/tmp/diff_new_pack.tn0DQd/_new 2026-11-27 21:03:32.422872756 +0100 @@ -35,6 +35,7 @@ BuildRequires: flex BuildRequires: freetype2-devel BuildRequires: gcc +BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: pkgconfig(fuse3) %if 0%{?suse_version} >= 1140 @@ -410,6 +411,7 @@ Patch: 0003-blsuki-clean-up-UTF-16-size-handling-in-LoaderEntrie.patch Patch: 0004-blsuki-Cleanup-indentation-without-code-change.patch Patch: 0001-configure.ac-bump-SBAT-for-September-2026-CVE.patch +Patch: 0001-commands-efi-tpcm-Fix-pointer-to-int-cast-error-on-3.patch %if 0%{?suse_version} < 1600 Requires: gettext-runtime @@ -1295,6 +1297,34 @@ %fdupes %buildroot%{_libdir} %fdupes %buildroot%{_datadir} +%check +# Run the upstream tests that use host tools only. The tests that drive +# grub-shell (qemu) or grub-fs-tester (loop devices, mount, cryptsetup, +# zpool) cannot work on an OBS worker and are not selected. The two +# grub-mkconfig BootNext tests need a real EFI host (/sys/firmware/efi) +# and skip here, so they are not selected either. +checkdir= +for d in build build-emu build-efi; do + if [ -f "$d/Makefile" ]; then + checkdir=$d + break + fi +done +[ -n "$checkdir" ] || { echo "no configured build directory found"; exit 1; } +cd "$checkdir" +unit_tests="example_unit_test printf_test date_test priority_queue_unit_test \ + fdt_unit_test loadenv_unit_test image_unit_test cmp_test" +# tpcm_unit_test compiles grub-core/commands/efi/tpcm.c for the host and +# fails on 32-bit: upstream casts a pointer to grub_uint64_t instead of +# grub_addr_t, which trips -Werror=pointer-to-int-cast on i586. +if [ "$(getconf LONG_BIT)" = "64" ]; then + unit_tests="$unit_tests tpcm_unit_test" +fi +tool_tests="example_scripted_test grub_script_blanklines grub_script_dollar \ + grub_script_final_semicolon grub_script_no_commands syslinux_test \ + gettext_strings_test" +make check-TESTS TESTS="$unit_tests $tool_tests" + %if 0%{?suse_version} >= 1600 %pre common %else ++++++ 0001-commands-efi-tpcm-Fix-pointer-to-int-cast-error-on-3.patch ++++++ >From 0092abd0f92eec6e4f0a20e895de715706dd7582 Mon Sep 17 00:00:00 2001 From: Michael Chang <[email protected]> Date: Thu, 26 Nov 2026 16:15:14 +0800 Subject: [PATCH] commands/efi/tpcm: Fix pointer-to-int-cast error on 32-bit platforms Signed-off-by: Michael Chang <[email protected]> --- grub-core/commands/efi/tpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/commands/efi/tpcm.c b/grub-core/commands/efi/tpcm.c index 38ace6c85..e9e837a2a 100644 --- a/grub-core/commands/efi/tpcm.c +++ b/grub-core/commands/efi/tpcm.c @@ -104,7 +104,7 @@ measure_memory (enum grub_file_type type __attribute__((unused)), { desc_len = grub_strlen (desc) + 1; status = c2p->verify_raw (c2p, stage, - (grub_uint64_t) desc, desc_len, + (grub_uint64_t) (grub_addr_t) desc, desc_len, 1, &range, &measure_result, &control_result); if (status == GRUB_EFI_SUCCESS -- 2.56.0
