public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Josue Hernandez <josherna@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/grub2] rawhide: grub2.spec: fix posstrans-pc condition
Date: Tue, 28 Jul 2026 17:12:32 GMT	[thread overview]
Message-ID: <178525875223.1.16247599472008825868.rpms-grub2-f4b75a5e570b@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-07-28 17:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178525875223.1.16247599472008825868.rpms-grub2-f4b75a5e570b@fedoraproject.org \
    --to=josherna@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox