From: Jan Stancek <[email protected]>
kernel.spec: skip ynl on RHEL < 10
Default RHEL9 setuptools don't support pyproject.toml,
and also don't meet requirements for jsonschema and pyyaml.
There is a python3.12 package, but there's no 3.12 version
of python jsonschema.
Skip ynl on older RHEL to avoid build errors:
error: File not found:
BUILDROOT/kernel-6.14.0-0.rc3.28.test.el9.x86_64/usr/bin/ynl*
error: File not found:
BUILDROOT/kernel-6.14.0-0.rc3.28.test.el9.x86_64/usr/lib/python3.9/site-packages/
Signed-off-by: Jan Stancek <[email protected]>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -764,6 +764,9 @@ BuildRequires: libnl3-devel
%endif
%endif
+%if 0%{?rhel} && 0%{?rhel} < 10
+%define with_ynl 0
+%endif
%if %{with_tools} && %{with_ynl}
BuildRequires: python3-pyyaml python3-jsonschema python3-pip python3-setuptools
%endif
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3702
--
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue