Missing dependency on XZ and bzip2

Overview

XZ is not listed as a requirement or checked for, but an initial installation fails due to the tool being missing on a barebones debian install.

Impacted categories

The following categories relate to this issue:

Steps to replicate (optional)

debootstrap unstable {target}
systemd-nspawn -D {target}
apt install make git
curl "https://gitlab.com/gitlab-org/gitlab-development-kit/-/raw/main/support/install" | bash
....
==> Installed ruby-3.2.3 to /home/cmesh/.asdf/installs/ruby/3.2.3
Downloading shellcheck from https://github.com/koalaman/shellcheck/releases/download/v0.9.0/shellcheck-v0.9.0.linux.x86_64.tar.xz to /home/cmesh/.asdf/installs/shellcheck/0.9.0/bin
tar (grandchild): xz: Cannot exec: No such file or directory
tar (grandchild): Error is not recoverable: exiting now
tar: Child died with signal 13
tar: Error is not recoverable: exiting now

< subsequent run >

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/cmesh/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/gpgme-2.0.23/ext/gpgme
/home/cmesh/.asdf/installs/ruby/3.2.3/bin/ruby extconf.rb
************************************************************************
IMPORTANT!  gpgme gem uses locally built versions of required C libraries,
namely libgpg-error, libassuan, and gpgme.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall gpgme gem as
follows:

    gem install gpgme -- --use-system-libraries

************************************************************************
Extracting libgpg-error-1.47.tar.bz2 into
tmp/x86_64-linux-gnu/ports/libgpg-error/1.47... ERROR. Please review logs to see
what happened:
----- contents of
'/home/cmesh/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/gpgme-2.0.23/ext/gpgme/tmp/x86_64-linux-gnu/ports/libgpg-error/1.47/extract.log'
-----
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
----- end of file -----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Proposal (optional)

Update documentation and dependency check to require xz and bzip2

Environment (optional)

  • Operating system name: Linux debian-root 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.15-2 (2024-02-04) x86_64 GNU/Linux
  • Architecture: x86_64
  • The contents of your gdk.yml (if any)
  • Ruby version: <!-- output of `ruby --version` command -->
  • GDK version: <!-- output of `git rev-parse --short HEAD` command -->