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-06-04 18:54:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grub2 (Old) and /work/SRC/openSUSE:Factory/.grub2.new.2375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grub2" Thu Jun 4 18:54:22 2026 rev:391 rq:1356925 version:2.14 Changes: -------- --- /work/SRC/openSUSE:Factory/grub2/grub2.changes 2026-05-24 19:34:23.248168634 +0200 +++ /work/SRC/openSUSE:Factory/.grub2.new.2375/grub2.changes 2026-06-04 18:56:39.594681692 +0200 @@ -1,0 +2,7 @@ +Mon Jun 1 13:01:44 UTC 2026 - Josef Melcr <[email protected]> + +- Fix build with GCC 16 + * gcc16.patch + * 0001-add-support-for-UEFI-network-protocols.patch + +------------------------------------------------------------------- New: ---- gcc16.patch ----------(New B)---------- New:- Fix build with GCC 16 * gcc16.patch * 0001-add-support-for-UEFI-network-protocols.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grub2.spec ++++++ --- /var/tmp/diff_new_pack.Uy6lML/_old 2026-06-04 18:56:43.514843608 +0200 +++ /var/tmp/diff_new_pack.Uy6lML/_new 2026-06-04 18:56:43.514843608 +0200 @@ -406,6 +406,7 @@ Patch426: 0002-util-resolve-Save-str-r-chr-ret-val-to-const-data-pt.patch Patch427: 0001-Fix-problematic-utf8-conversion-in-bli-patches.patch Patch428: 0001-bls-fix-default-entry-and-bumpcounter-for-BLS-boot-c.patch +Patch429: gcc16.patch %if 0%{?suse_version} < 1600 Requires: gettext-runtime ++++++ 0001-add-support-for-UEFI-network-protocols.patch ++++++ --- /var/tmp/diff_new_pack.Uy6lML/_old 2026-06-04 18:56:43.598847079 +0200 +++ /var/tmp/diff_new_pack.Uy6lML/_new 2026-06-04 18:56:43.602847243 +0200 @@ -37,6 +37,8 @@ * Don't force grub_print_error if no best route found as boot process could be interrupted by logged error. The default interface will be used as fallback in this case +v7: + * Fix gcc16 build error for variable set but not used. --- grub-core/Makefile.core.def | 18 + @@ -70,7 +72,7 @@ --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def -@@ -2456,6 +2456,12 @@ +@@ -2461,6 +2461,12 @@ common = net/ethernet.c; common = net/arp.c; common = net/netbuff.c; @@ -1162,7 +1164,7 @@ + s = sz; + for (i = 0; i < (int)hw_address_size; i++) + { -+ grub_snprintf (p, sz, "%02x:", hw_address[i]); ++ grub_snprintf (p, s, "%02x:", hw_address[i]); + p += sizeof ("XX:") - 1; + s -= sizeof ("XX:") - 1; + } @@ -3946,7 +3948,7 @@ grub_register_variable_hook ("net_default_server", 0, 0); grub_register_variable_hook ("pxe_default_server", 0, 0); grub_register_variable_hook ("net_default_ip", 0, 0); -@@ -2155,4 +2226,7 @@ +@@ -2156,4 +2227,7 @@ grub_net_fini_hw (0); grub_loader_unregister_preboot_hook (fini_hnd); grub_net_poll_cards_idle = NULL; @@ -3956,7 +3958,7 @@ } --- a/include/grub/efi/api.h +++ b/include/grub/efi/api.h -@@ -663,6 +663,23 @@ +@@ -673,6 +673,23 @@ typedef grub_uint8_t grub_efi_ip_address_t[8] __attribute__ ((aligned(4))); typedef grub_efi_uint64_t grub_efi_physical_address_t; typedef grub_efi_uint64_t grub_efi_virtual_address_t; @@ -3980,7 +3982,7 @@ /* XXX although the spec does not specify the padding, this actually must have the padding! */ -@@ -912,6 +929,8 @@ +@@ -922,6 +939,8 @@ grub_efi_uint16_t remote_port; grub_efi_uint16_t protocol; grub_efi_uint8_t static_ip_address; @@ -3989,7 +3991,7 @@ } GRUB_PACKED; typedef struct grub_efi_ipv6_device_path grub_efi_ipv6_device_path_t; -@@ -970,6 +989,15 @@ +@@ -980,6 +999,15 @@ } GRUB_PACKED; typedef struct grub_efi_uri_device_path grub_efi_uri_device_path_t; @@ -4005,7 +4007,7 @@ #define GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE 10 /* Media Device Path. */ -@@ -1052,6 +1080,23 @@ +@@ -1062,6 +1090,23 @@ } GRUB_PACKED; typedef struct grub_efi_bios_device_path grub_efi_bios_device_path_t; @@ -4029,7 +4031,7 @@ struct grub_efi_open_protocol_information_entry { grub_efi_handle_t agent_handle; -@@ -1554,23 +1599,28 @@ +@@ -1564,23 +1609,28 @@ typedef grub_uint8_t grub_efi_pxe_packet_t[1472]; @@ -4072,7 +4074,7 @@ #define GRUB_EFI_PXE_BASE_CODE_MAX_IPCNT 8 typedef struct { -@@ -1620,18 +1670,32 @@ +@@ -1630,18 +1680,32 @@ typedef struct grub_efi_pxe { grub_uint64_t rev; @@ -4117,7 +4119,7 @@ struct grub_efi_pxe_mode *mode; } grub_efi_pxe_t; -@@ -1951,6 +2015,44 @@ +@@ -1961,6 +2025,44 @@ }; typedef struct grub_efi_ip4_config2_protocol grub_efi_ip4_config2_protocol_t; @@ -4162,7 +4164,7 @@ enum grub_efi_ip6_config_data_type { GRUB_EFI_IP6_CONFIG_DATA_TYPE_INTERFACEINFO, GRUB_EFI_IP6_CONFIG_DATA_TYPE_ALT_INTERFACEID, -@@ -1985,4 +2087,47 @@ +@@ -1995,4 +2097,47 @@ }; typedef struct grub_efi_ip6_config_protocol grub_efi_ip6_config_protocol_t; ++++++ gcc16.patch ++++++ --- a/include/grub/i386/pc/int.h +++ b/include/grub/i386/pc/int.h @@ -22,11 +22,11 @@ #include <grub/symbol.h> #include <grub/i386/pc/int_types.h> +#ifdef GRUB_MACHINE_PCBIOS void EXPORT_FUNC (grub_bios_interrupt) (grub_uint8_t intno, struct grub_bios_int_registers *regs) __attribute__ ((regparm(3))); -#ifdef GRUB_MACHINE_PCBIOS extern struct grub_i386_idt *EXPORT_VAR(grub_realidt); #endif
