From: Jan Stancek <jstan...@redhat.com>

kernel.spec: add missing tools-libs on s390x

tools-libs-devel requires tools-libs. Previously on s390x they would
be both skipped by %cpupowerarches check. But after adding ynl
headers and library to tools-libs-devel, it is now built also on s390x.
But tools-libs is still skipped and creates a missing dependency.

We could conditionally skip the Requires on s390x, but that adds extra
burden to keep such condition up to date as more artefacts get introduced
to tools-libs-devel in future. Simplest is to just create tools-libs on
s390x, even if it ends up empty for now.

Fixes: e9f967afa161 ("redhat: kernel.spec: add ynl to kernel-tools")

Reported-by: Bruno Goncalves <bgonc...@redhat.com>
Signed-off-by: Jan Stancek <jstan...@redhat.com>

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
@@ -3985,8 +3985,8 @@ fi\
 %files -f %{package_name}-tools-debuginfo.list -n 
%{package_name}-tools-debuginfo
 %endif
 
-%ifarch %{cpupowerarchs}
 %files -n %{package_name}-tools-libs
+%ifarch %{cpupowerarchs}
 %{_libdir}/libcpupower.so.1
 %{_libdir}/libcpupower.so.0.0.1
 %endif

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3710

-- 
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
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/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to