Repository navigation
fix: #5784 declare ALSA and libgbm dependencies in Linux packages - #5785
Merged
Merged
Conversation
Jocs
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5784
Summary
The Electron binary links
libasound.so.2andlibgbm.so.1, but electron-builder's defaultdebandrpmdependency lists include neither. On a system without them, the package installs and the app then fails witherror while loading shared libraries. We found this while testing the arm64 deb from #5778, and the x64 deb has the same gap. Details and logs are in #5784.This PR sets
deb.dependsandrpm.dependsinpackages/desktop/electron-builder.yml. Settingdependsreplaces electron-builder's defaults, so the defaults are repeated unchanged and two entries are added:libasound2t64 | libasound2andlibgbm1. Ubuntu 24.04+ and Debian trixie ship ALSA aslibasound2t64; the alternative keeps 22.04 and older working, where the package is stilllibasound2.(alsa-lib or libasound2)and(mesa-libgbm or libgbm1), using the same(a or b)style electron-builder already uses forlibXtstandlibuuid. These are the Fedora and openSUSE package names.The other defaults (
libgtk-3-0,libatspi2.0-0) already resolve on t64 systems through theProvidesoflibgtk-3-0t64andlibatspi2.0-0t64, so they stay as they are.Type of change
Test plan
There's no test suite for package metadata, so we tested it like this:
0.22.0-dev) installed into cleanubuntu-base26.10 and 24.04 roots, andmarktext --versionfailed withlibasound.so.2: cannot open shared object file. On 22.04,libgbm.so.1was missing too.0.23.0-dev) built with this change in the run below, installed into fresh cleanubuntu-base26.10, 24.04 and 22.04 roots.apt-get installpulls inlibasound2t64andlibgbm1on 26.10 and 24.04, andlibasound2andlibgbm1on 22.04.marktext --versionprintsMarkText: v0.23.0-devandElectron: 42.1.0on all three.dpkg-deb -Ion both debs shows the newDependsline, and the rpm requires include(alsa-lib or libasound2)and(mesa-libgbm or libgbm1).After, on 24.04:
Notes for reviewers [optional]
We didn't install the rpm on Fedora or openSUSE; the rpm change only adds two requirements next to the existing defaults. The snap, AppImage and tar.gz don't use these lists and are unchanged.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.