Install bzip2 and xz-utils packages for Debian, Fedora and Ubuntu
What does this merge request do and why?
This MR installs xy-utils and bzip2 as required packages on Debian, Fedora, and Ubuntu. We need xz-utils to extract ShellCheck from .xz files and bzip2 to extract content from .bz2 files.
This should address the missing dependency error seen in #2065 (closed):
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.
Closes #2065 (closed)
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctortest added, if needed. -
Add the ~highlightlabel if this MR should be included in theCHANGELOG.md.
Edited by Nao Hashizume