Skip to content

Commit a49b1b3

Browse files
committed
DEBIAN: Moved driver level dependencies under Recommends section.
1 parent 0c99dbe commit a49b1b3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

debian/control.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Description: Unified Communication X - XPMEM support
4141
Package: ucx-cuda
4242
Section: libs
4343
Depends: ${misc:Depends}, ${shlibs:Depends}
44+
Recommends: ${shlibs:Recommends}
4445
Architecture: any
4546
Build-Profiles: <cuda>
4647
Description: Unified Communication X - CUDA support

debian/rules.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CUDA_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw cuda \
1515
XPMEM_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

3436
override_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

4144
override_dh_auto_clean:

0 commit comments

Comments
 (0)