From: Zbigniew JÄ™drzejewski-Szmek <[email protected]>

redhat: kernel.spec: fix build with merged-sbin

See https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin.
intel_sdsi is still installed to /usr/sbin, but rpm %_sbindir is now
defined as /usr/bin.

https://bugzilla.redhat.com/show_bug.cgi?id=2337459

Co-authored-by: Adam Williamson <[email protected]>
Signed-off-by: Zbigniew JÄ™drzejewski-Szmek <[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
@@ -3390,7 +3390,7 @@ chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
    %{tools_make} DESTDIR=%{buildroot} install
    popd
    pushd tools/arch/x86/intel_sdsi
-   %{tools_make} CFLAGS="${RPM_OPT_FLAGS}" DESTDIR=%{buildroot} install
+   %{tools_make} CFLAGS="${RPM_OPT_FLAGS}" DESTDIR=%{buildroot} 
BINDIR=%{_sbindir} install
    popd
 %endif
 pushd tools/thermal/tmon

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

-- 
_______________________________________________
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

Reply via email to