File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888 apt install -y -V ${quiet} nvidia-cuda-toolkit; \
8989 fi && \
9090 apt clean
91+
92+ # nvidia-cuda-toolkit was removed from Debian forky amd64, so disable the
93+ # CUDA packages via the pkg.apache-arrow.nocuda build profile.See GH-50090.
94+ # Once nvidia-cuda-toolkit is re-added to Debian forky, this can be removed.
95+ ENV DEB_BUILD_PROFILES=pkg.apache-arrow.nocuda
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ Build-Depends:
3131 ninja-build,
3232 nlohmann-json-dev | nlohmann-json3-dev,
3333# nvidia-cuda-toolkit may be unavailable (e.g. removed from Debian forky).
34- # apt/build.sh enables the pkg.apache-arrow.nocuda profile in that case so
35- # this build dependency and the CUDA packages below are skipped.
34+ # The pkg.apache-arrow.nocuda build profile (set via DEB_BUILD_PROFILES, e.g.
35+ # in the debian-forky Dockerfile) skips this build dependency and the CUDA
36+ # packages below.
3637 nvidia-cuda-toolkit [!arm64] <!pkg.apache-arrow.nocuda>,
3738 pkg-config,
3839 protobuf-compiler,
Original file line number Diff line number Diff line change 119119: ${DEB_BUILD_OPTIONS:= " parallel=$( nproc) " }
120120# DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS} noopt"
121121export DEB_BUILD_OPTIONS
122- # nvidia-cuda-toolkit may be unavailable (e.g. it was removed from Debian
123- # forky). Disable the CUDA packages via the pkg.apache-arrow.nocuda build
124- # profile when it isn't installed. debian/rules disables ARROW_CUDA the
125- # same way. See GH-50090.
126- if ! dpkg -l nvidia-cuda-toolkit > /dev/null 2>&1 ; then
127- DEB_BUILD_PROFILES=" ${DEB_BUILD_PROFILES:- } pkg.apache-arrow.nocuda"
128- export DEB_BUILD_PROFILES
129- debuild_options+=(-eDEB_BUILD_PROFILES)
130- fi
131122df -h
132123if [ " ${DEBUG:- no} " = " yes" ]; then
133124 run debuild " ${debuild_options[@]} " " ${dpkg_buildpackage_options[@]} "
You can’t perform that action at this time.
0 commit comments