From bb6f4745e99ccc3b2b9037e9cedc866cbc10269e Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 23 Sep 2021 14:32:54 +0200 Subject: [PATCH] Fix nvidia-container-runtime breaks / replaces dependency The relationship between packages also considers the package revision when determining validity. This means that 3.5.0-1 is considered greater than 3.5.0. This changed adds the package revision to the nvidia-container-runtime breaks / replaces relationship. Signed-off-by: Evan Lezar --- packaging/debian/control | 4 ++-- packaging/rpm/SPECS/nvidia-container-toolkit.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/debian/control b/packaging/debian/control index e02e0931..cdd4158a 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9) Package: nvidia-container-toolkit Architecture: any Depends: ${misc:Depends}, libnvidia-container-tools (>= 1.4.0), libnvidia-container-tools (<< 2.0.0), libseccomp2 -Breaks: nvidia-container-runtime (<= 3.5.0), nvidia-container-runtime-hook -Replaces: nvidia-container-runtime (<= 3.5.0), nvidia-container-runtime-hook +Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook +Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook Description: NVIDIA container runtime hook Provides a OCI hook to enable GPU support in containers. diff --git a/packaging/rpm/SPECS/nvidia-container-toolkit.spec b/packaging/rpm/SPECS/nvidia-container-toolkit.spec index 94a1ce6e..a2289b12 100644 --- a/packaging/rpm/SPECS/nvidia-container-toolkit.spec +++ b/packaging/rpm/SPECS/nvidia-container-toolkit.spec @@ -17,7 +17,7 @@ Source3: oci-nvidia-hook Source4: oci-nvidia-hook.json Source5: LICENSE -Obsoletes: nvidia-container-runtime <= 3.5.0, nvidia-container-runtime-hook +Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook Provides: nvidia-container-runtime Provides: nvidia-container-runtime-hook Requires: libnvidia-container-tools >= 1.4.0, libnvidia-container-tools < 2.0.0