Subject: bug#75299: closed (Re: bug#75299: [PATCH v1] gnu: Add grub-emu.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 23 Feb 2025 22:50:02 +0000

Your bug report

#75299: [PATCH v1] gnu: Add grub-emu.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75299: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75299
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#75299: [PATCH v1] gnu: Add grub-emu.
From: Ludovic Courtès <[email-masked]>
To: Denis 'GNUtoo' Carikli <[email-masked]>
Cc: Vagrant Cascadian <[email-masked]>, [email-masked], Efraim Flashner <[email-masked]>
Date: Sun, 23 Feb 2025 23:49:36 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Denis,

Denis 'GNUtoo' Carikli <[email-masked]> skribis:

> * gnu/packages/bootloaders.scm (grub-emu): New variable.
>
> Signed-off-by: Denis 'GNUtoo' Carikli <[email-masked]>
> Change-Id: Ia70246841e612b1fe1cb70001b9a6420cb7a63ea

Applied with the change below (‘package/inherit’ ensures that the
‘replacement’ field, if any, is inherited by variants.)

Ludo’.

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 21cd98a55c2..b2f2adf26e7 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -476,8 +476,7 @@ (define-public grub-efi32
          (package-native-inputs grub-efi)))))
 
 (define-public grub-emu
-  (package
-    (inherit grub)
+  (package/inherit grub
     (name "grub-emu")
     (synopsis "GRand Unified Boot loader (Emu version)")
     (arguments

Subject: [PATCH v1] gnu: Add grub-emu.
From: Denis 'GNUtoo' Carikli <[email-masked]>
To: [email-masked]
Cc: Denis 'GNUtoo' Carikli <[email-masked]>
Date: Thu, 2 Jan 2025 20:54:13 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/bootloaders.scm (grub-emu): New variable.

Signed-off-by: Denis 'GNUtoo' Carikli <[email-masked]>
Change-Id: Ia70246841e612b1fe1cb70001b9a6420cb7a63ea
---
 gnu/packages/bootloaders.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index b5cfacca4b..54162e9d1e 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -475,6 +475,16 @@ (define-public grub-efi32
             (cross-binutils "arm-linux-gnueabihf")))
          (package-native-inputs grub-efi)))))
 
+(define-public grub-emu
+  (package
+    (inherit grub)
+    (name "grub-emu")
+    (synopsis "GRand Unified Boot loader (Emu version)")
+    (arguments
+     (substitute-keyword-arguments (package-arguments grub)
+       ((#:configure-flags flags #~'())
+        #~(cons* "--with-platform=emu" #$flags))))))
+
 ;; Because grub searches hardcoded paths it's easiest to just build grub
 ;; again to make it find both grub-pc and grub-efi.  There is a command
 ;; line argument which allows you to specify ONE platform - but

base-commit: 8c11f8740a52339f51fe1841658e8e549589f2e2
-- 
2.46.0