Skip to content

Commit

Permalink
linux/efa: Add libarchive as a dependency for our package
Browse files Browse the repository at this point in the history
RHEL 8.4 has a broken dependency between cmake and libarchive which
causes libarchive to not be updated properly in the update case.
Express the dependency so that our install does not break.

Reviewed-by: Firas JahJah <[email protected]>
Reviewed-by: Yossi Leybovich <[email protected]>
Signed-off-by: Gal Pressman <[email protected]>
  • Loading branch information
gal-pressman committed Jun 16, 2021
1 parent ab04db9 commit 4a7ff4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/linux/efa/rpm/efa-gdr.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ URL: https://github.com/amzn/amzn-drivers/
Source0: %{name}-%{version}.tar

Requires: dkms %kernel_module_package_buildreqs cmake
# RHEL 8.4 has a broken dependency between cmake and libarchive which
# causes libarchive to not be updated properly in the update case. Express the
# dependency so that our install does not break.
%if 0%{?rhel} >= 8
Requires: libarchive >= 3.3.3
%endif

Conflicts: efa

%define install_path /usr/src/%{driver_name}-%{version}
Expand Down
7 changes: 7 additions & 0 deletions kernel/linux/efa/rpm/efa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ URL: https://github.com/amzn/amzn-drivers/
Source0: %{name}-%{version}.tar

Requires: dkms %kernel_module_package_buildreqs cmake
# RHEL 8.4 has a broken dependency between cmake and libarchive which
# causes libarchive to not be updated properly in the update case. Express the
# dependency so that our install does not break.
%if 0%{?rhel} >= 8
Requires: libarchive >= 3.3.3
%endif

Conflicts: efa-gdr

%define install_path /usr/src/%{driver_name}-%{version}
Expand Down

0 comments on commit 4a7ff4a

Please sign in to comment.