Skip to content

Commit e7ccca6

Browse files
authored
GH-46304: [Release][Packaging] Use optimized debug build for .deb (#46392)
### Rationale for this change We want to get source line from back trace by `addr2line`. We can do it by with debug symbol. ### What changes are included in this PR? Use `RelWithDebInfo`/`debugoptimized` instead of `Release`/`release`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #46304 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 10f2c9c commit e7ccca6

File tree

1 file changed

+3
-12
lines changed
  • dev/tasks/linux-packages/apache-arrow/debian

1 file changed

+3
-12
lines changed

dev/tasks/linux-packages/apache-arrow/debian/rules

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export DH_OPTIONS
88

99
export DEB_BUILD_MAINT_OPTIONS=reproducible=-timeless
1010

11-
BUILD_TYPE=release
11+
BUILD_TYPE=relwithdebinfo
1212

1313
%:
1414
dh $@ --with gir
@@ -72,8 +72,9 @@ override_dh_auto_build:
7272
--builddirectory=c_glib_build \
7373
--buildsystem=meson+ninja \
7474
-- \
75-
-Darrow_cpp_build_type=$(BUILD_TYPE) \
75+
--buildtype=debugoptimized \
7676
-Darrow_cpp_build_dir=../cpp_build \
77+
-Darrow_cpp_build_type=$(BUILD_TYPE) \
7778
-Ddoc=true \
7879
-Dvapi=true
7980
env \
@@ -88,19 +89,9 @@ override_dh_auto_install:
8889
--sourcedirectory=c_glib \
8990
--builddirectory=c_glib_build \
9091
--buildsystem=meson+ninja
91-
# Remove built files to reduce disk usage
92-
dh_auto_clean \
93-
--sourcedirectory=c_glib \
94-
--builddirectory=c_glib_build \
95-
--buildsystem=meson+ninja
96-
9792
dh_auto_install \
9893
--sourcedirectory=cpp \
9994
--builddirectory=cpp_build
100-
# Remove built files to reduce disk usage
101-
dh_auto_clean \
102-
--sourcedirectory=cpp \
103-
--builddirectory=cpp_build
10495

10596
override_dh_auto_test:
10697
# TODO: We need Boost 1.64 or later to build tests for

0 commit comments

Comments
 (0)