Skip to content

Commit

Permalink
Merge pull request #659 from thaJeztah/20.10_backport_fix_scan_depend…
Browse files Browse the repository at this point in the history
…ency

[20.10 backport] rpm: fix circular dependency between scan-cli-plugin and docker-ce-cli
  • Loading branch information
thaJeztah committed May 10, 2022
2 parents c55bd7a + d2941ef commit a5d869e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions rpm/SPECS/docker-ce-cli.spec
Expand Up @@ -18,7 +18,15 @@ Requires: /bin/sh
Requires: /usr/sbin/groupadd
# TODO change once we support scan-plugin on other architectures
%ifarch x86_64
# CentOS 7 and RHEL 7 do not yet support weak dependencies
#
# Note that we're not using <= 7 here, to account for other RPM distros, such
# as Fedora, which would not have the rhel macro set (so default to 0).
%if 0%{?rhel} == 7
Requires: docker-scan-plugin(x86-64)
%else
Recommends: docker-scan-plugin(x86-64)
%endif
%endif

BuildRequires: make
Expand Down
8 changes: 7 additions & 1 deletion rpm/SPECS/docker-scan-plugin.spec
Expand Up @@ -12,7 +12,13 @@ URL: https://github.com/docker/scan-cli-plugin/
Vendor: Docker
Packager: Docker <support@docker.com>

Requires: docker-ce-cli
# CentOS 7 and RHEL 7 do not yet support weak dependencies.
#
# Note that we're not using <= 7 here, to account for other RPM distros, such
# as Fedora, which would not have the rhel macro set (so default to 0).
%if 0%{?rhel} != 7
Enhances: docker-ce-cli
%endif

# TODO change once we support scan-plugin on other architectures
BuildArch: x86_64
Expand Down

0 comments on commit a5d869e

Please sign in to comment.