Repository navigation
Conversation
Add distrib/arch/PKGBUILD, a credentialsd-git package that builds the main branch, as suggested in linux-credentials#232. It installs with `meson install --no-rebuild`, so the AUR package's patch to the Cargo targets is no longer needed, and disables LTO because makepkg's -flto turns hidapi into GCC LTO objects that rust-lld can't link. Document the Arch build dependencies and the package in BUILDING.md. Also document that xdg-desktop-portal only enables the Credential portal when portals.conf selects credentialsd for it: most desktops' default portals.conf lists only their own backends, so the portal isn't exported without that line.
Member
|
@michaelbeaumont, do you want to look this over? |
This was referenced Nov 14, 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.
Follow-up to #232: a reference PKGBUILD kept in the repo, plus Arch build docs.
distrib/arch/PKGBUILDbuildscredentialsd-gitfrom the main branch. It is based on the current AURcredentialsdpackage, with two differences:meson install --no-rebuildinstead of patching the Cargo targets. The targets arebuild_always_stale, so a plainmeson installrerunscargo buildinpackage(). The AUR package works around that by removingbuild_always_stale, which also stops development builds from rebuilding.options=(!lto)stays, now with a comment saying why: makepkg's-fltocompiles hidapi to GCC LTO objects, and rust-lld then fails with undefinedhid_*symbols. I hit this when building without it.BUILDING.mdportals.conf: xdg-desktop-portal only enables the Credential portal whenportals.confselects credentialsd fororg.freedesktop.impl.portal.experimental.Credential. Most desktops'portals.confdefaults list only their own backends (e.g.hyprland;gtkorgnome;gtk), so the portal never exports the interface. This applies to every distro, so it's documented in the patched-portal section.Testing
makepkgbuild: succeeds, and all 5 meson tests pass incheck(). Nothing is recompiled inpackage().pkgctl buildin a clean chroot: succeeds, so the dependency lists are complete.namcap: only flags the Maintainer tag, andpublicsuffix-list, which the daemon reads at runtime and namcap can't detect.The
pacmancommand inBUILDING.mdresolves every package.End to end on Arch (Hyprland), I installed
credentialsd-gitand the AURxdg-desktop-portal-credentialsdand calledCreateCredentialthroughorg.freedesktop.portal.Desktop. The client ran in anapp-firefox-*.scope, so the portal resolved it to thefirefoxapp ID. With theportals.confline added:registration_response_json.Without the line, the portal had no
org.freedesktop.portal.experimental.Credentialinterface.Not included: the existing Debian and Fedora dependency commands in
BUILDING.mdput# commentlines inside\continuations, which ends the command at the first comment. The new Arch block avoids that. I left the other two alone because .deb packaging (#268) is in progress.