Skip to content

Commit

Permalink
Fix RPM installation dependency on Oracle Linux
Browse files Browse the repository at this point in the history
This commit has the dependency fix for RPM installation on Oracle
Linux which has cuse.ko provided in kernel-uek-modules-extra instead.

RM #4222425

Signed-off-by: Liming Sun <[email protected]>
  • Loading branch information
lsun100 committed Jan 7, 2025
1 parent aa99505 commit 69815e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rshim.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ Source0: https://github.com/mellanox/rshim-user-space/archive/%{name}-%{version}
BuildRequires: gcc, autoconf, automake, pkgconfig, make
BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0)

%if (0%{?oraclelinux} >= 8)
Requires: kernel-uek-core
%else
%if (0%{?rhel} >= 8 || 0%{?fedora} > 0) && "0%{?ctyunos}" == "0"
Requires: kernel-modules-extra
%endif
%endif

%global with_systemd %(if (test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi)
%global debug_package %{nil}
Expand Down

0 comments on commit 69815e9

Please sign in to comment.