public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/grub2] rawhide: grub2.spec: fix posstrans-pc condition
@ 2026-07-28 17:12 Josue Hernandez
  0 siblings, 0 replies; only message in thread
From: Josue Hernandez @ 2026-07-28 17:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/grub2
            Branch : rawhide
            Commit : f4b75a5e570b11847d40c22063a47d44a0413a24
            Author : Josue Hernandez <josherna@redhat.com>
            Date   : 2026-07-27T15:49:40-06:00
            Stats  : +5/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/grub2/c/f4b75a5e570b11847d40c22063a47d44a0413a24?branch=rawhide

            Log:
            grub2.spec: fix posstrans-pc condition

The current macro/condition '%if 0%{with_alt_efi_arch}' is intended
for 32-bit EFI that x86_64 provides alongside the native x64
EFI. However, the macro '%if %{platform} == pc' is what actually required
for legacy BIOS i386-pc systems allowing this posttrans to be present.

Signed-off-by: Josue Hernandez <josherna@redhat.com>

---
diff --git a/grub2.spec b/grub2.spec
index b00f8e1..8f4df30 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -17,7 +17,7 @@
 Name:		grub2
 Epoch:		1
 Version:	2.12
-Release:	72%{?dist}
+Release:	73%{?dist}
 Summary:	Bootloader with support for Linux, Multiboot and more
 License:	GPL-3.0-or-later
 URL:		http://www.gnu.org/software/grub/
@@ -414,7 +414,7 @@ else
     fi
 fi
 
-%if 0%{with_alt_efi_arch}
+%if "%{platform}" == "pc"
 %posttrans pc
 set -eu
 set -o pipefail
@@ -694,6 +694,9 @@ fi
 %endif
 
 %changelog
+* Mon Jul 27 2026 Josue Hernandez <josherna@redhat.com> - 2.12-73
+- Fix posttrans-pc condition
+
 * Mon Jul 27 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 2.12-72
 - Fix %%grub_efi_dir in ELN
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-28 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-28 17:12 [rpms/grub2] rawhide: grub2.spec: fix posstrans-pc condition Josue Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox