|
|
8e15ce |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
8e15ce |
From: Tim Landscheidt <tim@tim-landscheidt.de>
|
|
|
8e15ce |
Date: Fri, 11 Jun 2021 13:02:37 +0200
|
|
|
8e15ce |
Subject: [PATCH] Fix disabling grub-rpm-sort
|
|
|
8e15ce |
|
|
|
8e15ce |
Currently, grub-rpm-sort is unconditionally compiled whether
|
|
|
8e15ce |
./configure has been called with --disable-rpm-sort or not. This adds
|
|
|
8e15ce |
the necessary logic to configure.ac and Makefile.util.def and some
|
|
|
8e15ce |
debug output to ./configure and fixes #44.
|
|
|
8e15ce |
---
|
|
|
8e15ce |
configure.ac | 8 ++++++++
|
|
|
8e15ce |
Makefile.util.def | 1 +
|
|
|
8e15ce |
2 files changed, 9 insertions(+)
|
|
|
8e15ce |
|
|
|
8e15ce |
diff --git a/configure.ac b/configure.ac
|
|
|
8e15ce |
index d5d2a28b4ef..c7842ec29d8 100644
|
|
|
8e15ce |
--- a/configure.ac
|
|
|
8e15ce |
+++ b/configure.ac
|
|
|
8e15ce |
@@ -1936,6 +1936,8 @@ AC_ARG_ENABLE([rpm-sort],
|
|
|
8e15ce |
[enable native rpm sorting of kernels in grub (default=guessed)])])
|
|
|
8e15ce |
if test x"$enable_rpm_sort" = xno ; then
|
|
|
8e15ce |
rpm_sort_excuse="explicitly disabled"
|
|
|
8e15ce |
+else
|
|
|
8e15ce |
+ enable_rpm_sort=yes
|
|
|
8e15ce |
fi
|
|
|
8e15ce |
|
|
|
8e15ce |
if test x"$rpm_sort_excuse" = x ; then
|
|
|
8e15ce |
@@ -2200,6 +2202,7 @@ AM_CONDITIONAL([COND_GRUB_EMU_SDL], [test x$enable_grub_emu_sdl = xyes])
|
|
|
8e15ce |
AM_CONDITIONAL([COND_GRUB_EMU_PCI], [test x$enable_grub_emu_pci = xyes])
|
|
|
8e15ce |
AM_CONDITIONAL([COND_GRUB_MKFONT], [test x$enable_grub_mkfont = xyes])
|
|
|
8e15ce |
AM_CONDITIONAL([COND_GRUB_MOUNT], [test x$enable_grub_mount = xyes])
|
|
|
8e15ce |
+AM_CONDITIONAL([COND_GRUB_RPM_SORT], [test x$enable_rpm_sort = xyes])
|
|
|
8e15ce |
AM_CONDITIONAL([COND_HAVE_FONT_SOURCE], [test x$FONT_SOURCE != x])
|
|
|
8e15ce |
if test x$FONT_SOURCE != x ; then
|
|
|
8e15ce |
HAVE_FONT_SOURCE=1
|
|
|
8e15ce |
@@ -2328,6 +2331,11 @@ echo grub-mount: Yes
|
|
|
8e15ce |
else
|
|
|
8e15ce |
echo grub-mount: No "($grub_mount_excuse)"
|
|
|
8e15ce |
fi
|
|
|
8e15ce |
+if [ x"$rpm_sort_excuse" = x ]; then
|
|
|
8e15ce |
+echo grub-rpm-sort: Yes
|
|
|
8e15ce |
+else
|
|
|
8e15ce |
+echo grub-rpm-sort: No "($rpm_sort_excuse)"
|
|
|
8e15ce |
+fi
|
|
|
8e15ce |
if [ x"$starfield_excuse" = x ]; then
|
|
|
8e15ce |
echo starfield theme: Yes
|
|
|
8e15ce |
echo With DejaVuSans font from $DJVU_FONT_SOURCE
|
|
|
8e15ce |
diff --git a/Makefile.util.def b/Makefile.util.def
|
|
|
8e15ce |
index 8cfbe69a76e..3f191aa8095 100644
|
|
|
8e15ce |
--- a/Makefile.util.def
|
|
|
8e15ce |
+++ b/Makefile.util.def
|
|
|
8e15ce |
@@ -774,6 +774,7 @@ program = {
|
|
|
8e15ce |
ldadd = libgrubkern.a;
|
|
|
8e15ce |
ldadd = grub-core/lib/gnulib/libgnu.a;
|
|
|
8e15ce |
ldadd = '$(LIBDEVMAPPER) $(LIBRPM)';
|
|
|
8e15ce |
+ condition = COND_GRUB_RPM_SORT;
|
|
|
8e15ce |
};
|
|
|
8e15ce |
|
|
|
8e15ce |
script = {
|