From 19b80768fd8c76ec7529fd35db32f092c6414393 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 01:40:38 +0000 Subject: [PATCH 01/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index e62f545..179d097 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.8 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -105,6 +105,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 1.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Apr 18 2022 Robert Scheck 1.8-3 - Update bundled edk2 to 202202 and add GCC 12 fixes (#2045335) From ded19c54653d13757a2cd87a732f1ee81dd8c1ca Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Tue, 6 Sep 2022 11:58:49 +0200 Subject: [PATCH 02/13] Upgrade to 1.9 (#2124389) --- efifs.spec | 17 +++++++---------- sources | 6 +++--- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/efifs.spec b/efifs.spec index 179d097..e49ad1a 100644 --- a/efifs.spec +++ b/efifs.spec @@ -6,16 +6,16 @@ # Git commit mentioned at https://github.com/pbatard/efifs %global grub2_version 2.11-0 -%global grub2_commit 1ea4e5ef09c06552402bf676ce262a661372f08d +%global grub2_commit d9b4638c50b16d4722e66d334e2c1a674b4a45cc # Preferrably the latest stable version shipped in Fedora -%global edk2_stable_date 202202 +%global edk2_stable_date 202205 %global edk2_stable_str edk2-stable%{edk2_stable_date} Summary: Free software EFI/UEFI standalone file system drivers Name: efifs -Version: 1.8 -Release: 4%{?dist} +Version: 1.9 +Release: 1%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -27,9 +27,6 @@ Source1: https://git.savannah.gnu.org/cgit/grub.git/snapshot/grub-%{grub2 Source2: https://github.com/tianocore/edk2/archive/%{edk2_stable_str}.tar.gz # Small helper script to enable EfiFs drivers using efibootmgr Source3: efifs-enable.sh -Patch0: https://src.fedoraproject.org/rpms/edk2/raw/e3d786aa1d65dd0d01597b24b800d7c54f72f58f/f/0030-BaseTools-fix-gcc12-warning.patch -Patch1: https://src.fedoraproject.org/rpms/edk2/raw/e3d786aa1d65dd0d01597b24b800d7c54f72f58f/f/0031-BaseTools-fix-gcc12-warning.patch -Patch2: https://src.fedoraproject.org/rpms/edk2/raw/e3d786aa1d65dd0d01597b24b800d7c54f72f58f/f/0032-Basetools-turn-off-gcc12-warning.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make @@ -65,9 +62,6 @@ cd grub && patch -Np1 -i ../0001-GRUB-fixes.patch popd pushd edk2-%{edk2_stable_str} -%patch0 -p1 -b .0030-BaseTools-fix-gcc12-warning -%patch1 -p1 -b .0031-BaseTools-fix-gcc12-warning -%patch2 -p1 -b .0032-Basetools-turn-off-gcc12-warning # Do not build BrotliCompress (because it's unused) sed -e '/BrotliCompress/d' -i BaseTools/Source/C/GNUmakefile @@ -105,6 +99,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Tue Sep 06 2022 Robert Scheck 1.9-1 +- Upgrade to 1.9 (#2124389) + * Thu Jul 21 2022 Fedora Release Engineering - 1.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 08589b2..6777380 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (efifs-1.8.tar.gz) = 0ead0fecfbf8bc698af0498aa409e5f6bfb0bb840fb9a57843de46514e7389ef4760b7d768b692bd94aa275d49cb40cab9db9112cd1d38c66f08f5037cf5fa96 -SHA512 (edk2-stable202202.tar.gz) = 200690a4867331de06e0478869b85577bc510213ebe679f2103160efb84d94c82ac8481ef1f15c3e42c1e9f22b7c5ef0d6c8f2c655bce7702ce843551cf9bb83 -SHA512 (grub-1ea4e5ef09c06552402bf676ce262a661372f08d.tar.gz) = d0024f5e39c3e65b92c05496a30ad0b54f35725428414c050ac2f68866d91033136d4a18a82f8dc8b3e3a5dca0b2e9d87d0cb7e842d58b3cf45982971a246d96 +SHA512 (efifs-1.9.tar.gz) = 5bca4eb4bc72b2a72f68176b4b47bafdbb962afea4b1c6af0e3144d388b2d3d64487b150b86af62edfabe819da8dd92961391fbe67bdf15f84f64875983efa72 +SHA512 (edk2-stable202205.tar.gz) = 0a0d0a8ad7cf23d77d9a6590ccf15e165224c1172e702e61efbf5056b7b62a78ac6dd3bcf2494871c852ee0e69d720db049fdd27e379c21cae64351ec9944428 +SHA512 (grub-d9b4638c50b16d4722e66d334e2c1a674b4a45cc.tar.gz) = 98edf3ec68d342ff2b0bcccfe07e9d7a0f8bf43079ad3dfef250d997b9606154759cfecfd7c450e0ad7b1ce272cf855e05b60f1eb55f50779f34fc748015a4f5 From a9be6dfef5df5afd7ee39d0254f57996daffd442 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 02:08:25 +0000 Subject: [PATCH 03/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index e49ad1a..fe9eeed 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -99,6 +99,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 1.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Sep 06 2022 Robert Scheck 1.9-1 - Upgrade to 1.9 (#2124389) From 437a016a11e210b740322a37d006a8a8799ac5d7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 18:16:19 +0000 Subject: [PATCH 04/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index fe9eeed..88312cb 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -99,6 +99,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 1.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 1.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From f391a200efd50944086f86c5f9a5a58e00b5247a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 17:54:17 +0000 Subject: [PATCH 05/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 88312cb..6d8fcd5 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -99,6 +99,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 1.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From f0030887a145c63f419d7184985f5ea6ae8b89f0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 10:10:36 +0000 Subject: [PATCH 06/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 6d8fcd5..6bdd1af 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -99,6 +99,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 1.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 2e181a77dcbdae36de76c9ae5c80bded479136b2 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Sun, 21 Apr 2024 00:01:02 +0200 Subject: [PATCH 07/13] Update license identifier to SPDX expression --- efifs.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 6bdd1af..7eea2e7 100644 --- a/efifs.spec +++ b/efifs.spec @@ -16,7 +16,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 Release: 5%{?dist} -License: GPLv3+ +License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz # Fedora's grub2 RPM packages don't provide neither a -devel subpackage nor any From 2192197505356517456c23df884116ca41a64c2a Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Sun, 2 Jun 2024 20:07:56 +0200 Subject: [PATCH 08/13] Update bundled edk2 to 20240524 (#2284243) --- 0030-BaseTools-fix-gcc12-warning.patch | 50 -------------------- 0031-BaseTools-fix-gcc12-warning.patch | 52 --------------------- 0032-Basetools-turn-off-gcc12-warning.patch | 42 ----------------- efifs.spec | 14 ++++-- sources | 2 +- 5 files changed, 11 insertions(+), 149 deletions(-) delete mode 100644 0030-BaseTools-fix-gcc12-warning.patch delete mode 100644 0031-BaseTools-fix-gcc12-warning.patch delete mode 100644 0032-Basetools-turn-off-gcc12-warning.patch diff --git a/0030-BaseTools-fix-gcc12-warning.patch b/0030-BaseTools-fix-gcc12-warning.patch deleted file mode 100644 index ff687cd..0000000 --- a/0030-BaseTools-fix-gcc12-warning.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 84d64059dd0082609a43c7938a8a35e10da10706 Mon Sep 17 00:00:00 2001 -From: Gerd Hoffmann -Date: Mon, 24 Jan 2022 11:03:25 +0100 -Subject: [PATCH 30/32] BaseTools: fix gcc12 warning -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -GenFfs.c:545:5: error: pointer ‘InFileHandle’ used after ‘fclose’ [-Werror=use-after-free] - 545 | Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -GenFfs.c:544:5: note: call to ‘fclose’ here - 544 | fclose (InFileHandle); - | ^~~~~~~~~~~~~~~~~~~~~ - -Signed-off-by: Gerd Hoffmann ---- - BaseTools/Source/C/GenFfs/GenFfs.c | 2 +- - BaseTools/Source/C/GenSec/GenSec.c | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/BaseTools/Source/C/GenFfs/GenFfs.c b/BaseTools/Source/C/GenFfs/GenFfs.c -index 949025c33325..d78d62ab3689 100644 ---- a/BaseTools/Source/C/GenFfs/GenFfs.c -+++ b/BaseTools/Source/C/GenFfs/GenFfs.c -@@ -542,7 +542,7 @@ GetAlignmentFromFile(char *InFile, UINT32 *Alignment) - PeFileBuffer = (UINT8 *) malloc (PeFileSize); - if (PeFileBuffer == NULL) { - fclose (InFileHandle); -- Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle); -+ Error(NULL, 0, 4001, "Resource", "memory cannot be allocated for %s", InFile); - return EFI_OUT_OF_RESOURCES; - } - fread (PeFileBuffer, sizeof (UINT8), PeFileSize, InFileHandle); -diff --git a/BaseTools/Source/C/GenSec/GenSec.c b/BaseTools/Source/C/GenSec/GenSec.c -index d54a4f9e0a7d..b1d05367ec0b 100644 ---- a/BaseTools/Source/C/GenSec/GenSec.c -+++ b/BaseTools/Source/C/GenSec/GenSec.c -@@ -1062,7 +1062,7 @@ GetAlignmentFromFile(char *InFile, UINT32 *Alignment) - PeFileBuffer = (UINT8 *) malloc (PeFileSize); - if (PeFileBuffer == NULL) { - fclose (InFileHandle); -- Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle); -+ Error(NULL, 0, 4001, "Resource", "memory cannot be allocated for %s", InFile); - return EFI_OUT_OF_RESOURCES; - } - fread (PeFileBuffer, sizeof (UINT8), PeFileSize, InFileHandle); --- -2.35.1 - diff --git a/0031-BaseTools-fix-gcc12-warning.patch b/0031-BaseTools-fix-gcc12-warning.patch deleted file mode 100644 index c6cd39d..0000000 --- a/0031-BaseTools-fix-gcc12-warning.patch +++ /dev/null @@ -1,52 +0,0 @@ -From c537b93adc2dc2243c6e53dfbbe8cd10fb073b7a Mon Sep 17 00:00:00 2001 -From: Gerd Hoffmann -Date: Mon, 24 Jan 2022 11:04:55 +0100 -Subject: [PATCH 31/32] BaseTools: fix gcc12 warning -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Sdk/C/LzmaEnc.c: In function ‘LzmaEnc_CodeOneMemBlock’: -Sdk/C/LzmaEnc.c:2828:19: error: storing the address of local variable ‘outStream’ in ‘*p.rc.outStream’ [-Werror=dangling-pointer=] - 2828 | p->rc.outStream = &outStream.vt; - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -Sdk/C/LzmaEnc.c:2811:28: note: ‘outStream’ declared here - 2811 | CLzmaEnc_SeqOutStreamBuf outStream; - | ^~~~~~~~~ -Sdk/C/LzmaEnc.c:2811:28: note: ‘pp’ declared here -Sdk/C/LzmaEnc.c:2828:19: error: storing the address of local variable ‘outStream’ in ‘*(CLzmaEnc *)pp.rc.outStream’ [-Werror=dangling-pointer=] - 2828 | p->rc.outStream = &outStream.vt; - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -Sdk/C/LzmaEnc.c:2811:28: note: ‘outStream’ declared here - 2811 | CLzmaEnc_SeqOutStreamBuf outStream; - | ^~~~~~~~~ -Sdk/C/LzmaEnc.c:2811:28: note: ‘pp’ declared here -cc1: all warnings being treated as errors - -Signed-off-by: Gerd Hoffmann ---- - BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c -index 4e9b499f8d80..4b9f5fa69248 100644 ---- a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c -+++ b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c -@@ -2825,12 +2825,13 @@ SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, BoolInt reInit, - - nowPos64 = p->nowPos64; - RangeEnc_Init(&p->rc); -- p->rc.outStream = &outStream.vt; - - if (desiredPackSize == 0) - return SZ_ERROR_OUTPUT_EOF; - -+ p->rc.outStream = &outStream.vt; - res = LzmaEnc_CodeOneBlock(p, desiredPackSize, *unpackSize); -+ p->rc.outStream = NULL; - - *unpackSize = (UInt32)(p->nowPos64 - nowPos64); - *destLen -= outStream.rem; --- -2.35.1 - diff --git a/0032-Basetools-turn-off-gcc12-warning.patch b/0032-Basetools-turn-off-gcc12-warning.patch deleted file mode 100644 index bfa7560..0000000 --- a/0032-Basetools-turn-off-gcc12-warning.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 15e8ff0438387a1737f136ab8f1ad513cfb52993 Mon Sep 17 00:00:00 2001 -From: Gerd Hoffmann -Date: Thu, 24 Mar 2022 10:28:45 +0100 -Subject: [PATCH 32/32] Basetools: turn off gcc12 warning -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In function ‘SetDevicePathEndNode’, - inlined from ‘FileDevicePath’ at DevicePathUtilities.c:857:5: -DevicePathUtilities.c:321:3: error: writing 4 bytes into a region of size 1 [-Werror=stringop-overflow=] - 321 | memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from UefiDevicePathLib.h:22, - from DevicePathUtilities.c:16: -../Include/Protocol/DevicePath.h: In function ‘FileDevicePath’: -../Include/Protocol/DevicePath.h:51:9: note: destination object ‘Type’ of size 1 - 51 | UINT8 Type; ///< 0x01 Hardware Device Path. - | ^~~~ - -Signed-off-by: Gerd Hoffmann ---- - BaseTools/Source/C/DevicePath/GNUmakefile | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile -index 7ca08af9662d..b05d2bddfa68 100644 ---- a/BaseTools/Source/C/DevicePath/GNUmakefile -+++ b/BaseTools/Source/C/DevicePath/GNUmakefile -@@ -13,6 +13,9 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtili - - include $(MAKEROOT)/Makefiles/app.makefile - -+# gcc 12 trips over device path handling -+BUILD_CFLAGS += -Wno-error=stringop-overflow -+ - LIBS = -lCommon - ifeq ($(CYGWIN), CYGWIN) - LIBS += -L/lib/e2fsprogs -luuid --- -2.35.1 - diff --git a/efifs.spec b/efifs.spec index 7eea2e7..723e992 100644 --- a/efifs.spec +++ b/efifs.spec @@ -9,13 +9,13 @@ %global grub2_commit d9b4638c50b16d4722e66d334e2c1a674b4a45cc # Preferrably the latest stable version shipped in Fedora -%global edk2_stable_date 202205 -%global edk2_stable_str edk2-stable%{edk2_stable_date} +%global edk2_stable_date 20240524 +%global edk2_stable_str edk2-stable%(d=%{edk2_stable_date}; echo ${d:0:6}) Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -39,7 +39,7 @@ BuildRequires: efi-srpm-macros ExclusiveArch: %{efi} Requires: efi-filesystem Provides: bundled(grub2-efi-modules) = %{grub2_version}.git%(c=%{grub2_commit}; echo ${c:0:7}) -Provides: bundled(edk2-tools) = %{edk2_stable_date}01stable +Provides: bundled(edk2-tools) = %{edk2_stable_date} %description Free software EFI/UEFI standalone file system drivers, based on the GRUB 2.0 @@ -66,6 +66,9 @@ pushd edk2-%{edk2_stable_str} # Do not build BrotliCompress (because it's unused) sed -e '/BrotliCompress/d' -i BaseTools/Source/C/GNUmakefile +# Remove include path pointing to unused sub-module +sed -e '/mipisyst/d' -i MdePkg/MdePkg.dec + # Symlink EfiFs into EDK II build-time working directory ln -s ../%{name}-%{version} EfiFsPkg popd @@ -99,6 +102,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Sun Jun 02 2024 Robert Scheck 1.9-6 +- Update bundled edk2 to 20240524 (#2284243) + * Wed Jan 24 2024 Fedora Release Engineering - 1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index 6777380..76000c0 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (efifs-1.9.tar.gz) = 5bca4eb4bc72b2a72f68176b4b47bafdbb962afea4b1c6af0e3144d388b2d3d64487b150b86af62edfabe819da8dd92961391fbe67bdf15f84f64875983efa72 -SHA512 (edk2-stable202205.tar.gz) = 0a0d0a8ad7cf23d77d9a6590ccf15e165224c1172e702e61efbf5056b7b62a78ac6dd3bcf2494871c852ee0e69d720db049fdd27e379c21cae64351ec9944428 +SHA512 (edk2-stable202405.tar.gz) = 3bad4c8417b0c9b68fc6b6b85a4b15c5be8daf672177ce66d7b224b1da7a90f643021adbdd6bc96f95417fc8654c4c6b191cd39f6c1be955946360bfa8e2cb5f SHA512 (grub-d9b4638c50b16d4722e66d334e2c1a674b4a45cc.tar.gz) = 98edf3ec68d342ff2b0bcccfe07e9d7a0f8bf43079ad3dfef250d997b9606154759cfecfd7c450e0ad7b1ce272cf855e05b60f1eb55f50779f34fc748015a4f5 From c5e9dc99af7a688821e6facc57d92b2141c59717 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 21:46:08 +0000 Subject: [PATCH 09/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 723e992..d5547c1 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.9 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -102,6 +102,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 1.9-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sun Jun 02 2024 Robert Scheck 1.9-6 - Update bundled edk2 to 20240524 (#2284243) From 95602002b87e095458f7391ab69a7a8e9ced1876 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Sun, 1 Dec 2024 01:31:01 +0100 Subject: [PATCH 10/13] Upgrade to 1.11 (#2290813) --- README.md | 2 +- efifs.spec | 34 +++++++++++++++++++++++----------- sources | 6 +++--- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 864a430..2ecbc34 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # efifs -Free software EFI/UEFI standalone file system drivers, based on the GRUB 2.0 read-only drivers: AFFS (Amiga Fast FileSystem), BFS (BeOS FileSystem), btrfs, exFAT, ext2/ext3/ext4, F2FS (experimental), HFS and HFS+ (Mac OS, including the compression support), ISO9660, JFS (Journaled FileSystem), nilfs2, NTFS (including compression support), ReiserFS, SFS (Amiga Smart FileSystem), UDF, UFS/FFS, UFS2/FFS2, XFS, ZFS and more. \ No newline at end of file +Free software EFI/UEFI standalone file system drivers, based on the GRUB 2.0 read-only drivers: AFFS (Amiga Fast FileSystem), BFS (BeOS FileSystem), btrfs, exFAT, ext2/ext3/ext4, EROFS, F2FS, HFS and HFS+ (Mac OS, including compression support), ISO9660, JFS (Journaled FileSystem), nilfs2, NTFS (including compression support), ReiserFS, SFS (Amiga Smart FileSystem), UDF, UFS/FFS, UFS2/FFS2, XFS, ZFS and more. \ No newline at end of file diff --git a/efifs.spec b/efifs.spec index d5547c1..45e1e3e 100644 --- a/efifs.spec +++ b/efifs.spec @@ -5,17 +5,17 @@ %global efi_vendor %{name} # Git commit mentioned at https://github.com/pbatard/efifs -%global grub2_version 2.11-0 -%global grub2_commit d9b4638c50b16d4722e66d334e2c1a674b4a45cc +%global grub2_version 2.13-0 +%global grub2_commit 6811f6f09d61996a3acbc4fc0414e45964f0e2d9 # Preferrably the latest stable version shipped in Fedora -%global edk2_stable_date 20240524 +%global edk2_stable_date 20241117 %global edk2_stable_str edk2-stable%(d=%{edk2_stable_date}; echo ${d:0:6}) Summary: Free software EFI/UEFI standalone file system drivers Name: efifs -Version: 1.9 -Release: 7%{?dist} +Version: 1.11 +Release: 1%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -29,6 +29,10 @@ Source2: https://github.com/tianocore/edk2/archive/%{edk2_stable_str}.tar Source3: efifs-enable.sh BuildRequires: gcc BuildRequires: gcc-c++ +%if 0%{?rhel} == 8 +# GCC >= 9.1 supports -mstack-protector-guard=global on aarch64 +BuildRequires: gcc-toolset-12 +%endif BuildRequires: make BuildRequires: libuuid-devel BuildRequires: python3 @@ -42,15 +46,16 @@ Provides: bundled(grub2-efi-modules) = %{grub2_version}.git%(c=%{grub2_com Provides: bundled(edk2-tools) = %{edk2_stable_date} %description -Free software EFI/UEFI standalone file system drivers, based on the GRUB 2.0 -read-only drivers: AFFS (Amiga Fast FileSystem), BFS (BeOS FileSystem), btrfs, -exFAT, ext2/ext3/ext4, F2FS (experimental), HFS and HFS+ (Mac OS, including -the compression support), ISO9660, JFS (Journaled FileSystem), nilfs2, NTFS -(including compression support), ReiserFS, SFS (Amiga Smart FileSystem), UDF, -UFS/FFS, UFS2/FFS2, XFS, ZFS and more. +Free software EFI/UEFI standalone file system drivers, based on the GRUB +2.0 read-only drivers: AFFS (Amiga Fast FileSystem), BFS (BeOS FileSystem), +btrfs, exFAT, ext2/ext3/ext4, EROFS, F2FS, HFS and HFS+ (Mac OS, including +compression support), ISO9660, JFS (Journaled FileSystem), nilfs2, NTFS +(including compression support), ReiserFS, SFS (Amiga Smart FileSystem), +UDF, UFS/FFS, UFS2/FFS2, XFS, ZFS and more. %prep %setup -q -T -c %{name}-%{version} -a 0 -a 2 +mv -f EfiFs-%{version} %{name}-%{version} cp -p %{SOURCE3} . pushd %{name}-%{version} @@ -74,6 +79,10 @@ ln -s ../%{name}-%{version} EfiFsPkg popd %build +%if 0%{?rhel} == 8 +. /opt/rh/gcc-toolset-12/enable +%endif + pushd edk2-%{edk2_stable_str} export PYTHON_COMMAND=%{__python3} %make_build -C BaseTools EXTRA_OPTFLAGS="$RPM_OPT_FLAGS" EXTRA_LDFLAGS="$RPM_LD_FLAGS" @@ -102,6 +111,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Sun Dec 01 2024 Robert Scheck 1.11-1 +- Upgrade to 1.11 (#2290813) + * Wed Jul 17 2024 Fedora Release Engineering - 1.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git a/sources b/sources index 76000c0..b13eecb 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (efifs-1.9.tar.gz) = 5bca4eb4bc72b2a72f68176b4b47bafdbb962afea4b1c6af0e3144d388b2d3d64487b150b86af62edfabe819da8dd92961391fbe67bdf15f84f64875983efa72 -SHA512 (edk2-stable202405.tar.gz) = 3bad4c8417b0c9b68fc6b6b85a4b15c5be8daf672177ce66d7b224b1da7a90f643021adbdd6bc96f95417fc8654c4c6b191cd39f6c1be955946360bfa8e2cb5f -SHA512 (grub-d9b4638c50b16d4722e66d334e2c1a674b4a45cc.tar.gz) = 98edf3ec68d342ff2b0bcccfe07e9d7a0f8bf43079ad3dfef250d997b9606154759cfecfd7c450e0ad7b1ce272cf855e05b60f1eb55f50779f34fc748015a4f5 +SHA512 (efifs-1.11.tar.gz) = 2cd91abba8e33fe4e73a2da795b00126232c8fbd5da049255cbc3acc9c94d4c5b7067b1a24eb4403d5c384ca93770eb9a038b854f010238b85a63525c4cc0b3e +SHA512 (edk2-stable202411.tar.gz) = 633483a1ff915f6e5f5a6d3c329f517d6c070368855f1d5348a80e22e71ac13ff4c6774c8620482a4e5cefe03907edc3a904ae405cbfe2dcd025ddd82f039eaf +SHA512 (grub-6811f6f09d61996a3acbc4fc0414e45964f0e2d9.tar.gz) = 73adfc7fd9c13ae40e14049904915e187a7b3ebfbe6a2b5b106df7a650771a384adcd3f907a29370b5194eefeff4011aa90a4d57100ca559c9d87b0c7540e140 From 6a8cd245fd6552c4f97b18191abaca69f97b3782 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 16:40:58 +0000 Subject: [PATCH 11/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 45e1e3e..05d7c3b 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.11 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -111,6 +111,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 1.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Sun Dec 01 2024 Robert Scheck 1.11-1 - Upgrade to 1.11 (#2290813) From c7d7b8ae3521e1eab121db5f0094c0ef7850d1e4 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Sat, 17 May 2025 22:34:20 +0200 Subject: [PATCH 12/13] Update bundled edk2 to 20250221 (#2340114) --- efifs.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/efifs.spec b/efifs.spec index 05d7c3b..876f454 100644 --- a/efifs.spec +++ b/efifs.spec @@ -9,13 +9,13 @@ %global grub2_commit 6811f6f09d61996a3acbc4fc0414e45964f0e2d9 # Preferrably the latest stable version shipped in Fedora -%global edk2_stable_date 20241117 +%global edk2_stable_date 20250221 %global edk2_stable_str edk2-stable%(d=%{edk2_stable_date}; echo ${d:0:6}) Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.11 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -111,6 +111,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Sat May 17 2025 Robert Scheck 1.11-3 +- Update bundled edk2 to 20250221 (#2340114) + * Thu Jan 16 2025 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index b13eecb..70ae576 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (efifs-1.11.tar.gz) = 2cd91abba8e33fe4e73a2da795b00126232c8fbd5da049255cbc3acc9c94d4c5b7067b1a24eb4403d5c384ca93770eb9a038b854f010238b85a63525c4cc0b3e -SHA512 (edk2-stable202411.tar.gz) = 633483a1ff915f6e5f5a6d3c329f517d6c070368855f1d5348a80e22e71ac13ff4c6774c8620482a4e5cefe03907edc3a904ae405cbfe2dcd025ddd82f039eaf +SHA512 (edk2-stable202502.tar.gz) = 1421b3e14acf6aa51c84cf0a12716990f08815fff631f4657bb9907fd8d620e9fac7794e05c2eed54d5f8966f8e9267d32bf2256237a959bd727629163b8c00d SHA512 (grub-6811f6f09d61996a3acbc4fc0414e45964f0e2d9.tar.gz) = 73adfc7fd9c13ae40e14049904915e187a7b3ebfbe6a2b5b106df7a650771a384adcd3f907a29370b5194eefeff4011aa90a4d57100ca559c9d87b0c7540e140 From 7a948a856ff219964897a6d39a6021a6c6e342ce Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 19:43:55 +0000 Subject: [PATCH 13/13] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- efifs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efifs.spec b/efifs.spec index 876f454..948a61b 100644 --- a/efifs.spec +++ b/efifs.spec @@ -15,7 +15,7 @@ Summary: Free software EFI/UEFI standalone file system drivers Name: efifs Version: 1.11 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL-3.0-or-later URL: https://efi.akeo.ie/ Source0: https://github.com/pbatard/efifs/archive/v%{version}/%{name}-%{version}.tar.gz @@ -111,6 +111,9 @@ install -p -m 0700 edk2-%{edk2_stable_str}/Build/EfiFs/RELEASE_GCC5/%{efi_arch_u %{efi_esp_dir}/ %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 1.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sat May 17 2025 Robert Scheck 1.11-3 - Update bundled edk2 to 20250221 (#2340114)