From b8b05b65e46f2f5e08882655c004c4bfde7a635008b52f55c4a94fb6d5053282 Mon Sep 17 00:00:00 2001 From: Petr Tesarik Date: Wed, 28 May 2025 19:16:27 +0200 Subject: [PATCH] Fix build for legacy distributions The readline module is part of Python itself, but it must be required explicitly on newer distributions (16.0, Factory). However, Python packages in older distributions (15.x and earlier) do not have the corresponding Provides. :-( Solve it by Build-requiring %pythons. Yes, it does bring a lot of unneded stuff into the build environment... Signed-off-by: Petr Tesarik --- python-drgn.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-drgn.spec b/python-drgn.spec index 83e4c6b..a81fddf 100644 --- a/python-drgn.spec +++ b/python-drgn.spec @@ -25,8 +25,8 @@ Group: Development/Tools/Debuggers URL: https://github.com/osandov/drgn Source: drgn-%{version}.tar.xz BuildRequires: %{python_module devel} -BuildRequires: %{python_module readline} BuildRequires: %{python_module setuptools} +BuildRequires: %{pythons} BuildRequires: autoconf BuildRequires: automake BuildRequires: check-devel -- 2.49.0