From d62ed44b6ebb0cd9fea6e4fe7bec97b8dba75852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 11 Dec 2023 15:09:35 +0100 Subject: [PATCH] CI: Use DNF 4 in mock to workaround dnf5#1084 mock-core-configs-39.3 switched the package manager for Fedora 40 to dnf5 https://fedoraproject.org/wiki/Changes/BuildWithDNF5 dnf5 builddep cannot handle BuildRequires with square brackets, e.g. with Python extras, leading to errors like: No match for argument: python3dist(setuptools-scm[toml]) >= 5 No match for argument: python3dist(raven[flask]) No match for argument: python3dist(ini2toml[lite]) >= 0.9 This is reported: https://github.com/rpm-software-management/dnf5/issues/1084 Until it is fixed, we explicitly use the "dnf" (i.e. DNF 4) package manager in mock, even on Fedora 40+. --- tests/mocktest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/mocktest.sh b/tests/mocktest.sh index a7e3b70..451364e 100755 --- a/tests/mocktest.sh +++ b/tests/mocktest.sh @@ -34,6 +34,7 @@ if [ ! -f $config ]; then cp $original $config echo -e '\n\n' >> $config + echo -e 'config_opts["package_manager"] = "dnf"' >> $config echo -e 'config_opts["package_manager_max_attempts"] = 10' >> $config echo -e 'config_opts["package_manager_attempt_delay"] = 60' >> $config echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config