Skip to content

fix: install lbzip2 in trixie-slim Dockerfiles to unblock libusb extraction#1

Merged
maikebing merged 1 commit into
mainfrom
copilot/fix-build-failure
Apr 10, 2026
Merged

fix: install lbzip2 in trixie-slim Dockerfiles to unblock libusb extraction#1
maikebing merged 1 commit into
mainfrom
copilot/fix-build-failure

Conversation

Copilot AI commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Debian trixie's tar package ships with /etc/tar/default.cfg that routes .bz2 decompression through lbzip2. Since lbzip2 was absent from the build images, extracting libusb-1.0.23.tar.bz2 failed across all trixie-based targets:

tar (child): lbzip2: Cannot exec: No such file or directory
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Changes

  • x64/Dockerfile, x86/Dockerfile, arm64/Dockerfile, loongson/Dockerfile: add lbzip2 to the apt-get install list in the build stage

arm and x86Legacy were unaffected — they use i386/debian:wheezy, which predates this tar/lbzip2 default.

@maikebing maikebing marked this pull request as ready for review April 10, 2026 08:50
Copilot AI review requested due to automatic review settings April 10, 2026 08:50
@maikebing maikebing merged commit 2ca766c into main Apr 10, 2026
6 checks passed
@maikebing maikebing deleted the copilot/fix-build-failure branch April 10, 2026 08:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing lbzip2 dependency to Debian trixie-slim build images so that tar can successfully extract .tar.bz2 sources (notably libusb-1.0.23.tar.bz2) under Trixie’s /etc/tar/default.cfg defaults.

Changes:

  • Install lbzip2 in the build-stage apt-get install package list for all Trixie-based targets (x86, x64, arm64, loongson).
  • Unblocks tar extraction failures caused by missing lbzip2 in those images.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
x86/Dockerfile Adds lbzip2 to Trixie-based build dependencies so .bz2 extraction works.
x64/Dockerfile Adds lbzip2 to Trixie-based build dependencies so .bz2 extraction works.
arm64/Dockerfile Adds lbzip2 to Trixie-based build dependencies so .bz2 extraction works.
loongson/Dockerfile Adds lbzip2 to Trixie-based bootstrap dependencies so .bz2 extraction works.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants