grub2/0221-fix-build-with-rpm-4.16.patch
Petr Šabata 100e37f2e6 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/grub2#f7e054f3d693af43a903faf33b70673f7aca4508
2020-10-15 09:48:35 +02:00

31 lines
881 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Thierry Vignaud <thierry.vignaud@gmail.com>
Date: Mon, 8 Jun 2020 06:50:21 +0200
Subject: [PATCH] fix build with rpm-4.16
Signed-off-by: Thierry Vignaud <thierry.vignaud@gmail.com>
---
configure.ac | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/configure.ac b/configure.ac
index eff160b6931..5d3316185da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1887,6 +1887,15 @@ if test x"$rpm_sort_excuse" = x ; then
[Define to 1 if you have the rpm library.])
fi
+if test x"$LIBRPM" = x ; then
+ # Check for rpm library.
+ AC_CHECK_LIB([rpmio], [rpmvercmp], [],
+ [rpm_sort_excuse="rpmio missing rpmvercmp"])
+ LIBRPM="-lrpmio";
+ AC_DEFINE([HAVE_RPMIO], [1],
+ [Define to 1 if you have the rpm library.])
+fi
+
AC_SUBST([LIBRPM])
LIBGEOM=