Skip to content

fix: use correct libusb dependency name for RPM packages#3112

Merged
marcnause merged 1 commit intoflutterfrom
copilot/update-dependency-for-rpm
Mar 9, 2026
Merged

fix: use correct libusb dependency name for RPM packages#3112
marcnause merged 1 commit intoflutterfrom
copilot/update-dependency-for-rpm

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

Fixes: #3110

libusb-1.0-0 is a Debian/Ubuntu package name and is invalid in RPM-based distributions (Fedora/RHEL/CentOS). The RPM build steps in both Linux CI actions were incorrectly using this DEB name, causing RPM packages to declare an unresolvable dependency.

Changes

  • .github/actions/linux-arm64/action.yml — Fix --depends in the Build .rpm package step: libusb-1.0-0libusb1
  • .github/actions/linux/action.yml — Same fix for the x64 variant
  fpm -s dir -t rpm \
    -n pslab \
    -v ${{ inputs.VERSION_NAME }} \
    --prefix=/ \
-   --depends libusb-1.0-0 \
+   --depends libusb1 \

DEB build steps are unchanged — libusb-1.0-0 remains correct there.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update dependency name for RPM compliance fix: use correct libusb package name for RPM dependencies Mar 3, 2026
@marcnause marcnause marked this pull request as ready for review March 3, 2026 21:47
Copilot AI review requested due to automatic review settings March 3, 2026 21:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Linux CI packaging metadata so RPM artifacts declare a valid libusb dependency on RPM-based distros, addressing install failures reported in #3110.

Changes:

  • Switch RPM fpm --depends from the Debian/Ubuntu package name libusb-1.0-0 to the RPM package name libusb1 for x64 builds.
  • Apply the same RPM dependency fix to the ARM64 Linux packaging action.

Reviewed changes

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

File Description
.github/actions/linux/action.yml Fix RPM dependency name used by fpm for x64 RPM packaging.
.github/actions/linux-arm64/action.yml Fix RPM dependency name used by fpm for ARM64 RPM packaging.

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

You can also share your feedback on Copilot code review. Take the survey.

@marcnause marcnause enabled auto-merge (squash) March 3, 2026 21:53
@marcnause marcnause changed the title fix: use correct libusb package name for RPM dependencies fix: use correct libusb dependency name for RPM packages Mar 8, 2026
…sb-1.0-0

Co-authored-by: marcnause <11596220+marcnause@users.noreply.github.com>
@marcnause marcnause force-pushed the copilot/update-dependency-for-rpm branch from f249c12 to 97de0dc Compare March 8, 2026 06:46
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

Build Status

Build successful. APKs to test: https://github.com/fossasia/pslab-app/actions/runs/22815874978/artifacts/5816284469.

Screenshots

Android Screenshots
iPhone Screenshots
iPad Screenshots

@marcnause marcnause merged commit 10fa155 into flutter Mar 9, 2026
12 checks passed
@marcnause marcnause deleted the copilot/update-dependency-for-rpm branch March 9, 2026 09:18
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.

Linux: RPM packages cannot be installed

4 participants