]> git.proxmox.com Git - ceph.git/blame - ceph/src/arrow/dev/tasks/linux-packages/apache-arrow/debian/rules
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / dev / tasks / linux-packages / apache-arrow / debian / rules
CommitLineData
1d09f67e
TL
1#!/usr/bin/make -f
2# -*- makefile-gmake -*-
3#
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6# This has to be exported to make some magic below work.
7export DH_OPTIONS
8
9export DEB_BUILD_MAINT_OPTIONS=reproducible=-timeless
10
11BUILD_TYPE=release
12
13%:
14 dh $@ --with gir
15
16override_dh_auto_configure:
17 if dpkg -l nvidia-cuda-toolkit > /dev/null 2>&1; then \
18 ARROW_CUDA=ON; \
19 ARROW_PLASMA=ON; \
20 else \
21 ARROW_CUDA=OFF; \
22 ARROW_PLASMA=OFF; \
23 fi; \
24 dh_auto_configure \
25 --sourcedirectory=cpp \
26 --builddirectory=cpp_build \
27 --buildsystem=cmake+ninja \
28 -- \
29 -DARROW_CUDA=$${ARROW_CUDA} \
30 -DARROW_FLIGHT=ON \
31 -DARROW_GANDIVA=ON \
32 -DARROW_GANDIVA_JAVA=OFF \
33 -DARROW_MIMALLOC=ON \
34 -DARROW_ORC=ON \
35 -DARROW_PACKAGE_KIND=deb \
36 -DARROW_PARQUET=ON \
37 -DARROW_PLASMA=$${ARROW_PLASMA} \
38 -DARROW_PYTHON=ON \
39 -DARROW_S3=ON \
40 -DARROW_USE_CCACHE=OFF \
41 -DARROW_WITH_BROTLI=ON \
42 -DARROW_WITH_BZ2=ON \
43 -DARROW_WITH_LZ4=ON \
44 -DARROW_WITH_SNAPPY=ON \
45 -DARROW_WITH_ZLIB=ON \
46 -DARROW_WITH_ZSTD=ON \
47 -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
48 -DCMAKE_UNITY_BUILD=ON \
49 -DPARQUET_REQUIRE_ENCRYPTION=ON \
50 -DPythonInterp_FIND_VERSION=ON \
51 -DPythonInterp_FIND_VERSION_MAJOR=3
52
53override_dh_auto_build:
54 dh_auto_build \
55 --sourcedirectory=cpp \
56 --builddirectory=cpp_build
57 dh_auto_configure \
58 --sourcedirectory=c_glib \
59 --builddirectory=c_glib_build \
60 --buildsystem=meson+ninja \
61 -- \
62 -Darrow_cpp_build_type=$(BUILD_TYPE) \
63 -Darrow_cpp_build_dir=../cpp_build \
64 -Dgtk_doc=true
65 env \
66 LD_LIBRARY_PATH=$(CURDIR)/cpp_build/$(BUILD_TYPE) \
67 dh_auto_build \
68 --sourcedirectory=c_glib \
69 --builddirectory=c_glib_build \
70 --buildsystem=meson+ninja
71
72override_dh_auto_install:
73 dh_auto_install \
74 --sourcedirectory=c_glib \
75 --builddirectory=c_glib_build \
76 --buildsystem=meson+ninja
77 # Remove built files to reduce disk usage
78 dh_auto_clean \
79 --sourcedirectory=c_glib \
80 --builddirectory=c_glib_build \
81 --buildsystem=meson+ninja
82
83 dh_auto_install \
84 --sourcedirectory=cpp \
85 --builddirectory=cpp_build
86 # Remove built files to reduce disk usage
87 dh_auto_clean \
88 --sourcedirectory=cpp \
89 --builddirectory=cpp_build
90
91override_dh_auto_test:
92 # TODO: We need Boost 1.64 or later to build tests for
93 # Apache Arrow Flight.
94 # git clone --depth 1 https://github.com/apache/arrow-testing.git
95 # git clone --depth 1 https://github.com/apache/parquet-testing.git
96 # cd cpp_build && \
97 # env \
98 # ARROW_TEST_DATA=$(CURDIR)/arrow-testing/data \
99 # PARQUET_TEST_DATA=$(CURDIR)/parquet-testing/data \
100 # ctest --exclude-regex 'arrow-cuda-test|plasma-client_tests'
101
102# skip file failing with "Unknown DWARF DW_OP_255" (see bug#949296)
103override_dh_dwz:
104 dh_dwz --exclude=libgandiva.so