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