File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Description: Unified Communication X - XPMEM support
4141Package: ucx-cuda
4242Section: libs
4343Depends: ${misc:Depends}, ${shlibs:Depends}
44+ Recommends: ${shlibs:Recommends}
4445Architecture: any
4546Build-Profiles: <cuda>
4647Description: Unified Communication X - CUDA support
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ CUDA_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw cuda \
1515XPMEM_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw xpmem \
1616 && echo --with-xpmem || echo --without-xpmem)
1717
18+ CUDA_SUBSTVARS = debian/ucx-cuda.substvars
19+
1820% :
1921 dh $@
2022
@@ -33,9 +35,10 @@ override_dh_auto_install:
3335
3436override_dh_shlibdeps :
3537 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
36- if [ -e debian/ucx-cuda.substvars ]; then \
37- sed -i -e ' s/libnvidia-compute-\([0-9]\+\)/libnvidia-compute | libnvidia-ml1/' \
38- debian/ucx-cuda.substvars \
39- ; fi
38+ if [ -e $( CUDA_SUBSTVARS) ]; then \
39+ sed -i -e ' s/libnvidia-compute-\([0-9]\+\), //g' $(CUDA_SUBSTVARS ) ; \
40+ echo " shlibs:Recommends=libnvidia-compute | libnvidia-ml1" >> \
41+ $(CUDA_SUBSTVARS ) ; \
42+ fi
4043
4144override_dh_auto_clean :
You can’t perform that action at this time.
0 commit comments