From 582873fcd2511d63e61e41b38d71bdcd7e319167 Mon Sep 17 00:00:00 2001
From: Steve McIntyre <93sam@debian.org>
Date: Wed, 14 Sep 2022 22:40:29 +0100
Subject: [PATCH] Don't strip Xen binaries so they work again.

Closes: #1017944. Thanks to Valentin Kleibel for the patch.
---
 debian/changelog | 4 +++-
 debian/rules     | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e447fc12f..267aaf4d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,10 @@ grub2 (2.06-4) UNRELEASED; urgency=medium
   * Add serial to the signed grub efi images. Closes: #1013962
   * grub2-common: Remove dependency on install-info, it's apparently
     not needed. Closes: #1013698
+  * Don't strip Xen binaries so they work again. Closes: #1017944.
+    Thanks to Valentin Kleibel for the patch.
 
- -- Steve McIntyre <93sam@debian.org>  Sat, 30 Jul 2022 15:23:26 +0100
+ -- Steve McIntyre <93sam@debian.org>  Wed, 14 Sep 2022 22:35:49 +0100
 
 grub2 (2.06-3) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 8f4102f1c..8e24dea1b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -544,7 +544,7 @@ override_dh_bugfiles:
 	dh_bugfiles $(patsubst %,-N%,$(filter grub-efi-%-signed-template,$(BUILD_PACKAGES))) -A
 
 override_dh_strip:
-	dh_strip -X/usr/bin/grub-emu
+	dh_strip -X/usr/bin/grub-emu -X/usr/lib/grub-xen/grub-x86_64-xen.bin -X/usr/lib/grub-xen/grub-i386-xen_pvh.bin -X/usr/lib/grub-xen/grub-i386-xen.bin
 
 override_dh_shlibdeps:
 	dh_shlibdeps -X.module
-- 
GitLab