Skip to content

Commit

Permalink
Relax nvcc's sysroot upper bound
Browse files Browse the repository at this point in the history
Allow newer `sysroot`s to be installed with the old `nvcc` package.
  • Loading branch information
jakirkham committed Jan 23, 2025
1 parent dafb3df commit 4b98471
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions recipe/patch_yaml/nvcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,47 @@ if:
- linux-aarch64
then:
- add_depends: "cudatoolkit ${version}.*"
---


# Relax `sysroot` pins of `nvcc_{{ target_platform }}`
# Done by arch to handle package name differences
if:
name: nvcc_linux-64
version_lt: 12.0.0
timestamp_lt: 1737594364000
has_depends: "sysroot_linux-64?( *)"
then:
- replace_depends:
old: sysroot_linux-64 2.17.*
new: sysroot_linux-64 >=2.17,<3.0a0
- replace_depends:
old: sysroot_linux-64 >=2.17
new: sysroot_linux-64 >=2.17,<3.0a0
---
if:
name: nvcc_linux-aarch64
version_lt: 12.0.0
timestamp_lt: 1737594364000
has_depends: "sysroot_linux-aarch64?( *)"
then:
- replace_depends:
old: sysroot_linux-aarch64 2.17.*
new: sysroot_linux-aarch64 >=2.17,<3.0a0
- replace_depends:
old: sysroot_linux-aarch64 >=2.17
new: sysroot_linux-aarch64 >=2.17,<3.0a0
---
if:
name: nvcc_linux-ppc64le
version_lt: 12.0.0
timestamp_lt: 1737594364000
has_depends: "sysroot_linux-ppc64le?( *)"
then:
- replace_depends:
old: sysroot_linux-ppc64le 2.17.*
new: sysroot_linux-ppc64le >=2.17,<3.0a0
- replace_depends:
old: sysroot_linux-ppc64le >=2.17
new: sysroot_linux-ppc64le >=2.17,<3.0a0
---

0 comments on commit 4b98471

Please sign in to comment.