Bug#1071472: nvidia-cudnn: curl has no option called --no-check-certificate

Santiago Vila sanvila at debian.org
Sun May 19 21:34:33 BST 2024


Package: nvidia-cudnn
Version: 8.9.2.26~cuda12+3
Tags: patch

Dear maintainer:

While building packages in the near future, for QA purposes, I noticed
that package "pytorch-cuda" failed to build with this error message:

---------------------------------------------------------------------
Setting up nvidia-cudnn (8.9.2.26~cuda12+3) ...
[...]
curl: option --no-check-certificate: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
---------------------------------------------------------------------

I believe this bug was introduced in commit [866f3c5] of nvidia-cudnn,
when support for curl was added.

The attached patch (untested) might help.

[ Note: Building in the future for QA purposes is still desired,
please do not remove this option... ]

Thanks.
-------------- next part --------------
--- a/update-nvidia-cudnn
+++ b/update-nvidia-cudnn
@@ -151,8 +151,10 @@ download_cudnn () {
     # detect downloader and download
     if (command -v curl > /dev/null); then
         local cmd="curl --continue-at - -L ${URL} --output ${dest}"
+        local nocheck="--insecure"
     elif (command -v wget > /dev/null); then
         local cmd="wget --continue --verbose --show-progress=off -c ${URL} -O ${dest}"
+        local nocheck="--no-check-certificate"
     else
         echo "$0: Error: no downloader available."
         exit 255
@@ -160,7 +162,7 @@ download_cudnn () {
     # already exists?
     if ! test -f ${dest}; then
         echo ${cmd} >&2
-        bash -c "${cmd}" || bash -c "${cmd} --no-check-certificate" >&2
+        bash -c "${cmd}" || bash -c "${cmd} ${nocheck}" >&2
     else
         echo Skipping download as file already exists: ${dest} >&2
     fi


More information about the pkg-nvidia-devel mailing list