Repository navigation
feat: warn on outdated libdisplay-info and add system library checks - #28
Merged
Merged
Conversation
…27) - Add comprehensive system library and dependency checks in install.sh - Detect libdisplay-info version and SONAME (libdisplay-info.so.3) across pkg-config, package managers, and library paths - Display prominent warning when outdated versions (< 0.3.0) are found (e.g. Fedora 41-43 with 0.2.0) explaining the black screen and login boot failure - Add --build-libdisplay-info option to automatically compile and install libdisplay-info 0.3.0 from upstream - Add --check / --doctor diagnostic mode to verify libraries without installing - Add preflight library validation to lniri-session and update lniri.service LD_LIBRARY_PATH to support /usr/local/lib64 - Ensure CI release builds compile against libdisplay-info 0.3.0 - Closes #27
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.
Summary
Addresses and resolves #27 by adding dependency inspection, compatibility verification, and clear warning diagnostics for
libdisplay-infoand core compositor libraries.Context & Problem
Upstream Niri v26.04 requires
libdisplay-info >= 0.3.0(SONAMElibdisplay-info.so.3) for EDID decoding and CVT video timing calculations during DRM display output enumeration.On distributions shipping older versions of
libdisplay-info(e.g. Fedora 41–43 shipping0.2.0/.so.2, or Debian/Ubuntu with0.1.x), display initialization fails on startup, causing a black screen and immediate boot back into the login manager (GDM, SDDM, Ly, Greetd).Changes
libdisplay-infoDetection (install.sh):pkg-config, package managers (rpm,dpkg-query,pacman), and standard filesystem paths (/usr/lib*,/usr/local/lib*,~/.local/lib).< 0.3.0/.so.2/.so.1) and displays a prominent warning explaining why the black-screen issue occurs../install.sh --build-libdisplay-info(and an interactive prompt) to automatically compile and installlibdisplay-info 0.3.0from upstream source into/usr/localwith a single command.--check/--doctor):./install.sh --checkanytime to audit graphics and compositor library dependencies (libdisplay-info,wayland-server,libinput,xkbcommon,libpipewire-0.3,libseat,pango,cairo,gbm) without needing root privileges.resources/lniri-session):lniri-session.~/.local/share/lniri/session.log, systemd user journal (logger), andstderriflibdisplay-info.so.3is missing or outdated./usr/local/lib64inLD_LIBRARY_PATHfor Fedora/openSUSE compatibility inlniri-sessionandlniri.service..github/workflows/release.yml):libdisplay-info 0.3.0from source on the Ubuntu runner so precompiled release binaries natively link againstlibdisplay-info.so.3.uninstall.sh):/etc/ld.so.conf.d/lniri-local-lib.confand local library symlinks upon uninstallation.README.md):libdisplay-info >= 0.3.0requirement,--checkdiagnostic mode, and--build-libdisplay-infooption.Fixes #27