raulcd commented on code in PR #50279:
URL: https://github.com/apache/arrow/pull/50279#discussion_r3497661014
##########
dev/tasks/linux-packages/apt/build.sh:
##########
@@ -119,6 +119,15 @@ fi
: ${DEB_BUILD_OPTIONS:="parallel=$(nproc)"}
# DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS} noopt"
export DEB_BUILD_OPTIONS
+# nvidia-cuda-toolkit may be unavailable (e.g. it was removed from Debian
+# forky). Disable the CUDA packages via the pkg.apache-arrow.nocuda build
+# profile when it isn't installed. debian/rules disables ARROW_CUDA the
+# same way. See GH-50090.
+if ! dpkg -l nvidia-cuda-toolkit > /dev/null 2>&1; then
+ DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES:-} pkg.apache-arrow.nocuda"
Review Comment:
ok, I guess the only thing is that this won't auto-detect whether
nvidia-cuda-toolkit is available or not so we will have to manually remove this
line once available. I've added a comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]