gdrcopy: allow tests to build against libcuda.so stub (#46500)

This commit is contained in:
Henri Menke 2024-10-07 09:59:37 +02:00 committed by GitHub
parent cb673862d1
commit 170e322701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,14 @@ class Gdrcopy(MakefilePackage, CudaPackage):
# Don't call ldconfig: https://github.com/NVIDIA/gdrcopy/pull/229
patch("ldconfig.patch", when="@2.0:2.3")
# Allow tests to build against libcuda.so stub
patch(
"https://github.com/NVIDIA/gdrcopy/commit/508dd6179dcb04ba7720e2da5124b77bbdb615b0.patch?full_index=1",
sha256="cc18b13b6ea5512959464a85a43cdfda0bee5522a471e98ca76ba379bf582b5a",
when="@2.0:2.3",
)
depends_on("pkgconfig", type="build", when="@2.0:2.3")
depends_on("check")
requires("+cuda")