This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 649a6679a1 GH-50090: [Packaging] Avoid building CUDA for Debian forky
due to missing nvidia-cuda-toolkit (#50279)
649a6679a1 is described below
commit 649a6679a1ba50faeb7d0f182943045847a17420
Author: Raúl Cumplido <[email protected]>
AuthorDate: Wed Jul 1 02:46:32 2026 +0200
GH-50090: [Packaging] Avoid building CUDA for Debian forky due to missing
nvidia-cuda-toolkit (#50279)
### Rationale for this change
debian-forky amd64 is currently failing because nvidia-cuda-toolkit as been
removed from the testing dependencies due to a bug.
### What changes are included in this PR?
Create new Build Profile spec to conditionally disable cuda packages for
debian: `pkg.apache-arrow.nocuda`
Set `pkg.apache-arrow.nocuda` for debian-forky so cuda isn't built and
`nvidia-cuda-toolkit` is conditionally checked.
### Are these changes tested?
Yes on CI via the Linux Package jobs.
### Are there any user-facing changes?
No but debian-forky (testing) won't have CUDA packages until re-enabled
* GitHub Issue: #50090
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
.../linux-packages/apache-arrow/apt/debian-forky/Dockerfile | 5 +++++
dev/tasks/linux-packages/apache-arrow/debian/control.in | 12 +++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-forky/Dockerfile
b/dev/tasks/linux-packages/apache-arrow/apt/debian-forky/Dockerfile
index 0f679f0388..0302516d7f 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/debian-forky/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-forky/Dockerfile
@@ -88,3 +88,8 @@ RUN \
apt install -y -V ${quiet} nvidia-cuda-toolkit; \
fi && \
apt clean
+
+# nvidia-cuda-toolkit was removed from Debian forky amd64, so disable the
+# CUDA packages via the pkg.apache-arrow.nocuda build profile.See GH-50090.
+# Once nvidia-cuda-toolkit is re-added to Debian forky, this can be removed.
+ENV DEB_BUILD_PROFILES=pkg.apache-arrow.nocuda
diff --git a/dev/tasks/linux-packages/apache-arrow/debian/control.in
b/dev/tasks/linux-packages/apache-arrow/debian/control.in
index 0a82fb04eb..5434a21252 100644
--- a/dev/tasks/linux-packages/apache-arrow/debian/control.in
+++ b/dev/tasks/linux-packages/apache-arrow/debian/control.in
@@ -30,7 +30,11 @@ Build-Depends:
meson,
ninja-build,
nlohmann-json-dev | nlohmann-json3-dev,
- nvidia-cuda-toolkit [!arm64],
+# nvidia-cuda-toolkit may be unavailable (e.g. removed from Debian forky).
+# The pkg.apache-arrow.nocuda build profile (set via DEB_BUILD_PROFILES, e.g.
+# in the debian-forky Dockerfile) skips this build dependency and the CUDA
+# packages below.
+ nvidia-cuda-toolkit [!arm64] <!pkg.apache-arrow.nocuda>,
pkg-config,
protobuf-compiler,
protobuf-compiler-grpc,
@@ -82,6 +86,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: libarrow-cuda2500
Section: libs
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends:
@@ -190,6 +195,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: libarrow-cuda-dev
Section: libdevel
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: same
Depends:
${misc:Depends},
@@ -369,6 +375,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: libarrow-cuda-glib2500
Section: libs
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends:
@@ -383,6 +390,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: libarrow-cuda-glib-doc
Section: doc
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: foreign
Depends:
${misc:Depends}
@@ -394,6 +402,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: gir1.2-arrow-cuda-25.0
Section: introspection
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: same
Depends:
${gir:Depends},
@@ -407,6 +416,7 @@ Description: Apache Arrow is a data processing library for
analysis
Package: libarrow-cuda-glib-dev
Section: libdevel
Architecture: @CUDA_ARCHITECTURE@
+Build-Profiles: <!pkg.apache-arrow.nocuda>
Multi-Arch: same
Depends:
${misc:Depends},