Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package edk2 for openSUSE:Factory checked in at 2026-06-05 14:56:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/edk2 (Old) and /work/SRC/openSUSE:Factory/.edk2.new.2375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "edk2" Fri Jun 5 14:56:21 2026 rev:17 rq:1357245 version:202502 Changes: -------- --- /work/SRC/openSUSE:Factory/edk2/edk2.changes 2026-03-20 21:20:00.718011610 +0100 +++ /work/SRC/openSUSE:Factory/.edk2.new.2375/edk2.changes 2026-06-05 14:56:27.066755488 +0200 @@ -1,0 +2,5 @@ +Thu Jun 4 09:17:28 UTC 2026 - Josef Melcr <[email protected]> + +- Add edk2-gcc16.patch to fix the broken build with GCC 16 + +------------------------------------------------------------------- New: ---- edk2-gcc16.patch ----------(New B)---------- New: - Add edk2-gcc16.patch to fix the broken build with GCC 16 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ edk2.spec ++++++ --- /var/tmp/diff_new_pack.0XBNNr/_old 2026-06-05 14:56:28.430811900 +0200 +++ /var/tmp/diff_new_pack.0XBNNr/_new 2026-06-05 14:56:28.434812065 +0200 @@ -1,7 +1,7 @@ # # spec file for package edk2 # -# Copyright (c) 2026 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -72,6 +72,7 @@ # PATCH-FIX-UPSTREAM - https://github.com/tianocore/edk2/pull/10928 - CVE-2024-38797 Patch1: 10928.patch Patch2: edk2-const-correctness.patch +Patch3: edk2-gcc16.patch #!BuildIgnore: gcc-PIE BuildRequires: acpica BuildRequires: bc @@ -123,6 +124,7 @@ %setup -q -n edk2-edk2-stable%{archive_version} -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 %patch -P 1 -p1 %patch -P 2 -p1 +%patch -P 3 -p1 # Fix path of the brotli submodules cp -R brotli-%{brotli_version}/* BaseTools/Source/C/BrotliCompress/brotli/ ++++++ edk2-gcc16.patch ++++++ >From ebda99f2e12c83f415591a56445e273f04a833fe Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann <[email protected]> Date: Thu, 29 Jan 2026 09:23:32 +0100 Subject: [PATCH 1/7] BaseTools/StringFuncs: fix gcc 16 warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit StringFuncs.c: In function ‘SplitStringByWhitespace’: StringFuncs.c:113:15: error: variable ‘Item’ set but not used [-Werror=unused-but-set-variable=] 113 | UINTN Item; | ^~~~ Signed-off-by: Gerd Hoffmann <[email protected]> --- BaseTools/Source/C/Common/StringFuncs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: edk2-edk2-stable202502/BaseTools/Source/C/Common/StringFuncs.c =================================================================== --- edk2-edk2-stable202502.orig/BaseTools/Source/C/Common/StringFuncs.c +++ edk2-edk2-stable202502/BaseTools/Source/C/Common/StringFuncs.c @@ -110,7 +110,6 @@ SplitStringByWhitespace ( CHAR8 *EndOfSubString; CHAR8 *EndOfString; STRING_LIST *Output; - UINTN Item; String = CloneString (String); if (String == NULL) { @@ -120,7 +119,7 @@ SplitStringByWhitespace ( Output = NewStringList (); - for (Pos = String, Item = 0; Pos < EndOfString; Item++) { + for (Pos = String; Pos < EndOfString;) { while (isspace ((int)*Pos)) { Pos++; } Index: edk2-edk2-stable202502/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c =================================================================== --- edk2-edk2-stable202502.orig/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c +++ edk2-edk2-stable202502/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c @@ -432,7 +432,6 @@ CreateDialog ( UINTN LargestString; UINTN LineNum; UINTN Index; - UINTN Count; CHAR16 Character; UINTN Start; UINTN End; @@ -503,9 +502,8 @@ CreateDialog ( PrintCharAt ((UINTN)-1, (UINTN)-1, Character); Character = BOXDRAW_VERTICAL; - Count = 0; VA_START (Marker, Key); - for (Index = Top; Index + 2 < Bottom; Index++, Count++) { + for (Index = Top; Index + 2 < Bottom; Index++) { String = VA_ARG (Marker, CHAR16 *); if (String[0] == CHAR_NULL) { Index: edk2-edk2-stable202502/MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGenFromFv.c =================================================================== --- edk2-edk2-stable202502.orig/MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGenFromFv.c +++ edk2-edk2-stable202502/MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiGenFromFv.c @@ -260,7 +260,6 @@ ParseFv ( EFI_GUID NameGuid; EFI_FV_FILE_ATTRIBUTES FileAttributes; UINTN Size; - UINTN FfsIndex; VAR_CHECK_VFR_DRIVER_INFO *VfrDriverInfo; LIST_ENTRY *VfrDriverLink; @@ -315,7 +314,7 @@ ParseFv ( Key = InternalVarCheckAllocateZeroPool (Fv2->KeySize); ASSERT (Key != NULL); - for (FfsIndex = 0; ; FfsIndex++) { + while (TRUE) { FileType = EFI_FV_FILETYPE_ALL; Status = Fv2->GetNextFile ( Fv2, Index: edk2-edk2-stable202502/MdeModulePkg/Universal/CapsuleOnDiskLoadPei/CapsuleOnDiskLoadPei.c =================================================================== --- edk2-edk2-stable202502.orig/MdeModulePkg/Universal/CapsuleOnDiskLoadPei/CapsuleOnDiskLoadPei.c +++ edk2-edk2-stable202502/MdeModulePkg/Universal/CapsuleOnDiskLoadPei/CapsuleOnDiskLoadPei.c @@ -173,7 +173,6 @@ RetrieveRelocatedCapsule ( IN UINTN RelocCapsuleTotalSize ) { - UINTN Index; UINT8 *CapsuleDataBufEnd; UINT8 *CapsulePtr; UINT32 CapsuleSize; @@ -244,7 +243,6 @@ RetrieveRelocatedCapsule ( // Re-iterate the capsule buffer to create Capsule hob & Capsule Name Str Hob for each Capsule saved in relocated capsule file // CapsulePtr = RelocCapsuleBuf; - Index = 0; while (CapsulePtr < CapsuleDataBufEnd) { CapsuleSize = ((EFI_CAPSULE_HEADER *)CapsulePtr)->CapsuleImageSize; BuildCvHob ((EFI_PHYSICAL_ADDRESS)(UINTN)CapsulePtr, CapsuleSize); @@ -252,7 +250,6 @@ RetrieveRelocatedCapsule ( DEBUG ((DEBUG_INFO, "Capsule saved in address %x size %x\n", CapsulePtr, CapsuleSize)); CapsulePtr += CapsuleSize; - Index++; } return EFI_SUCCESS; Index: edk2-edk2-stable202502/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c =================================================================== --- edk2-edk2-stable202502.orig/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c +++ edk2-edk2-stable202502/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c @@ -587,7 +587,6 @@ CreateSharedPopUp ( ) { UINTN Index; - UINTN Count; CHAR16 Character; UINTN Start; UINTN End; @@ -627,8 +626,7 @@ CreateSharedPopUp ( PrintCharAt ((UINTN)-1, (UINTN)-1, Character); Character = BOXDRAW_VERTICAL; - Count = 0; - for (Index = Top; Index + 2 < Bottom; Index++, Count++) { + for (Index = Top; Index + 2 < Bottom; Index++) { String = VA_ARG (Marker, CHAR16 *); // Index: edk2-edk2-stable202502/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c =================================================================== --- edk2-edk2-stable202502.orig/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c +++ edk2-edk2-stable202502/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c @@ -218,14 +218,12 @@ GetSmbiosStringById ( OUT UINTN *StringLen ) { - UINTN Size; UINTN StrLen; CHAR8 *CharInStr; UINTN StringsNumber; CHAR8 *String; CharInStr = (CHAR8 *)Head + Head->Length; - Size = Head->Length; StringsNumber = 0; StrLen = 0; // @@ -234,7 +232,6 @@ GetSmbiosStringById ( String = NULL; while (*CharInStr != 0 || *(CharInStr+1) != 0) { if (*CharInStr == 0) { - Size += 1; CharInStr++; } @@ -256,7 +253,6 @@ GetSmbiosStringById ( // forward the pointer // CharInStr += StrLen; - Size += StrLen; StringsNumber += 1; if (StringsNumber == StringId) { break;
