From 1e579fadcdb81ad2eb246f40dbf85e4a175409ef Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 23 Sep 2021 19:55:14 +0200 Subject: [PATCH] Correct nvidia-container-toolkit dependency This change adds a package revision (3) to the nvidia-container-toolkit dependency. This is to ensure that none of the released package versions incorrectly meet the >> 1.5.1 requirement. Signed-off-by: Evan Lezar --- debian/control | 2 +- rpm/SPECS/nvidia-docker2.spec | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index caa03a1..ec86d08 100644 --- a/debian/control +++ b/debian/control @@ -12,6 +12,6 @@ Package: nvidia-docker2 Architecture: all Breaks: nvidia-docker (<< 2.0.0) Replaces: nvidia-docker (<< 2.0.0) -Depends: ${misc:Depends}, nvidia-container-toolkit (>> @TOOLKIT_VERSION@), @DOCKER_VERSION@ +Depends: ${misc:Depends}, nvidia-container-toolkit (>> @TOOLKIT_VERSION@-1), @DOCKER_VERSION@ Description: nvidia-docker CLI wrapper Replaces nvidia-docker with a new implementation based on the NVIDIA Container Toolkit diff --git a/rpm/SPECS/nvidia-docker2.spec b/rpm/SPECS/nvidia-docker2.spec index 8085b45..f7fa2ce 100644 --- a/rpm/SPECS/nvidia-docker2.spec +++ b/rpm/SPECS/nvidia-docker2.spec @@ -16,7 +16,9 @@ Source1: daemon.json Source2: LICENSE Conflicts: nvidia-docker < 2.0.0 -Requires: nvidia-container-toolkit > %{toolkit_version} +# Note: The -3 revision in the required toolkit version is to handle the released versions of +# The nvidia-container-toolkit 1.5.1 package. This can be replaced with '-1' in subsequent releases. +Requires: nvidia-container-toolkit > %{toolkit_version}-3 Requires: %{docker_version} %description