tree: 08e006d45e7945319cd7e29228cc6067aaf35408 [path history] [tgz]
  1. apache-arrow/
  2. apache-arrow-apt-source/
  3. apache-arrow-release/
  4. apt/
  5. yum/
  6. .gitignore
  7. helper.rb
  8. package-task.rb
  9. Rakefile
  10. README.md
dev/tasks/linux-packages/README.md

Linux packages for Apache Arrow C++ and GLib

Requirements

  • Ruby
  • Docker
  • Tools to build tar.gz for Apache Arrow C++ and GLib

How to build .deb packages for all supported platforms

cd dev/tasks/linux-packages/apache-arrow
rake version:update
rake apt:build

How to build only specific .deb packages for supported platforms

The following command line shows all supported platforms, bear in mind to execute this command from your root arrow clone folder:

for x in dev/tasks/linux-packages/apache-arrow/apt/{debian,ubuntu}*; do basename $x; done

You can specify target platforms by setting APT_TARGETS:

cd dev/tasks/linux-packages/apache-arrow
rake version:update
rake apt:build APT_TARGETS=debian-bookworm,ubuntu-noble

How to debug .deb packages build

You can use apt:build:console task to debug .deb packages build:

cd dev/tasks/linux-packages/apache-arrow
rake version:update
rake apt:build:console APT_TARGETS=debian-bookworm

It will show a Bash prompt. You can start .deb build by /host/build.sh:

host$ rake apt:build:console APT_TARGETS=debian-bookworm
container$ /host/build.sh

You can keep the Bash session even when the .deb build failed. You can debug in the Bash session.

How to build .rpm packages for all supported platforms

cd dev/tasks/linux-packages/apache-arrow
rake yum:build

How to build only specific .rpm packages for supported platforms

The following command line shows all supported platforms, bear in mind to execute this command from your root arrow clone folder:

for x in dev/tasks/linux-packages/apache-arrow/yum/{alma,amazon,centos}*; do basename $x; done

You can specify target platforms by setting YUM_TARGETS:

cd dev/tasks/linux-packages/apache-arrow
rake yum:build YUM_TARGETS=almalinux-9,amazon-linux-2023

How to debug .rpm packages build

You can use yum:build:console task to debug .rpm packages build:

cd dev/tasks/linux-packages/apache-arrow
rake yum:build:console YUM_TARGETS=almalinux-9

It will show a Bash prompt. You can start .rpm build by /host/build.sh:

host$ rake yum:build:console YUM_TARGETS=almalinux-9
container$ /host/build.sh

You can keep the Bash session even when the .rpm build failed. You can debug in the Bash session.