You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2024/10/10 09:32:26 UTC

(arrow) 01/03: GH-44358: [Packaging][Debian] Add workaround for CUDA include path (#44359)

This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch maint-18.0.0
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit c8a0a69fc9db89a2b263996b99233da64d214fd1
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Thu Oct 10 08:00:21 2024 +0900

    GH-44358: [Packaging][Debian] Add workaround for CUDA include path (#44359)
    
    ### Rationale for this change
    
    This is not happen on Debian GNU/Linux stable and unstable. This is happen only on Debian GNU/Linux testing. So this may be a temporary problem.
    
    ### What changes are included in this PR?
    
    Create a non-existent path manually as a workaround.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    Yes.
    * GitHub Issue: #44358
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/tasks/linux-packages/apache-arrow/apt/debian-trixie/Dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-trixie/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/debian-trixie/Dockerfile
index c6a09da2df..257d005656 100644
--- a/dev/tasks/linux-packages/apache-arrow/apt/debian-trixie/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-trixie/Dockerfile
@@ -82,6 +82,9 @@ RUN \
     valac \
     zlib1g-dev && \
   if apt list | grep '^nvidia-cuda-toolkit/'; then \
-    apt install -y -V ${quiet} nvidia-cuda-toolkit; \
+    apt install -y -V ${quiet} nvidia-cuda-toolkit && \
+    # GH-44358: Workaround for non-existent path error
+    mkdir -p \
+      /usr/lib/nvidia-cuda-toolkit/include/$(dpkg-architecture -qDEB_HOST_MULTIARCH); \
   fi && \
   apt clean