grub2/0207-Work-around-extra_deps.lst-issue.patch
Leo Sandoval ab7ed2db6e Rebased to release grub2-2.12 for fedora-41
Signed-off-by: Leo Sandoval <lsandova@redhat.com>
2024-08-05 19:08:59 -06:00

24 lines
847 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Wed, 13 Mar 2024 14:06:43 -0400
Subject: [PATCH] Work around extra_deps.lst issue
---
grub-core/Makefile.am | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am
index 77f8329cd43..aa172391fdf 100644
--- a/grub-core/Makefile.am
+++ b/grub-core/Makefile.am
@@ -460,6 +460,10 @@ extra_deps.lst:
@echo $(EXTRA_DEPS) | sed "s/\s*:\s*/\n/g" > $@
syminfo.lst: gensyminfo.sh kernel_syms.lst extra_deps.lst $(MODULE_FILES)
+ if ! [ -f extra_deps.lst ] ; then \
+ echo Missing extra_deps.lst ; \
+ echo $(EXTRA_DEPS) | sed "s/\s*:\s*/\n/g" > extra_deps.lst ; \
+ fi
cat kernel_syms.lst extra_deps.lst > $@.new
for m in $(MODULE_FILES); do \
sh $< $$m >> $@.new || exit 1; \