Package Details: niri-git 25.05.1.r91.gf74d83d-2

Git Clone URL: https://aur.archlinux.org/niri-git.git (read-only, click to copy)
Package Base: niri-git
Description: Scrollable-tiling Wayland compositor
Upstream URL: https://github.com/YaLTeR/niri
Keywords: rust smithay tiling-window-manager wayland wayland-compositor
Licenses: GPL-3.0-or-later
Conflicts: niri, niri-bin
Provides: niri
Submitter: jcaesar
Maintainer: cosmo (FreeFull)
Last Packager: FreeFull
Votes: 11
Popularity: 0.38
First Submitted: 2023-09-26 09:12 (UTC)
Last Updated: 2025-08-09 10:45 (UTC)

Dependencies (25)

Required by (37)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

ninchan commented on 2026-01-10 02:06 (UTC)

I also couldn't build niri-git due to LFS, but using the patch from @dougEfresh solves this problem. Why do we need LFS to build niri?

dougEfresh commented on 2026-01-09 10:37 (UTC)

I agree with @Gumminess7654 No reason to have LFS as requirement. Here is a patch

diff --git a/PKGBUILD b/PKGBUILD
index d8c7cec..ef7c7a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ arch=(x86_64 aarch64)
 url="https://github.com/YaLTeR/${pkgname%-git}"
 license=(GPL-3.0-or-later)
 depends=(cairo glib2 libdisplay-info libinput libpipewire libxkbcommon mesa pango pixman seatd)
-makedepends=(clang rust git makepkg-git-lfs-proto)
+makedepends=(clang rust git )
 [[ -n "${_sccache}" ]] && makedepends+=(sccache)
 optdepends=('fuzzel: application launcher similar to rofi drun mode'
             'waybar: highly customizable Wayland bar'
@@ -36,7 +36,7 @@ optdepends=('fuzzel: application launcher similar to rofi drun mode'
 provides=("${pkgname%-git}=${pkgver}")
 conflicts=("${pkgname%-git}-bin" "${pkgname%-git}")
 options=(!debug !lto !strip)
-source=("${pkgname%-git}::git-lfs+$url.git")
+source=("${pkgname%-git}::git+$url.git")
 b2sums=('SKIP')

 pkgver() {

Gumminess7654 commented on 2026-01-01 01:18 (UTC)

Why is Git LFS a dependency for this package? LFS is only used for images in the documentation and is not required for building niri. LFS blobs are also not part of the release tar balls.

stevessr commented on 2025-11-18 14:09 (UTC) (edited on 2025-11-19 12:38 (UTC) by stevessr)

@FreeFull @musta_ruhtinas yes, of cause, i tried to clean paru's cache for plenty of times. But still failed. If i directy build in the src , it will success.(so much crazy , even with cargo build --release --all-features ) logs witch '--verbose' options is here https://paste.centos.org/view/1e74c27d https://pastebin.com/d7nJF6E4 ( /home/$USER is replaced with ~ )

FreeFull commented on 2025-11-18 12:11 (UTC)

@stevessr I haven't been able to reproduce this either, but I'm guessing you just need to do a clean rebuild of niri-git.

musta_ruhtinas commented on 2025-11-18 12:09 (UTC)

@stevessr after i sorted out the makepkg-git-lfs-proto problem it always built fine in a clean chroot, have you tried clearing paru's cache?

stevessr commented on 2025-11-18 11:21 (UTC) (edited on 2025-11-18 11:22 (UTC) by stevessr)

@FreeFull I installed rustc 1.91.1 (ed61e7d7e 2025-11-07) & 1.93.0-nightly (0df64c578 2025-11-17 this is my default) the dots are things like

= note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: error: undefined symbol: spa_buffer_find_meta_data_libspa_rs
          >>> referenced by pw_utils.rs:1274 (src/pw_utils.rs:1274)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::Cast::dequeue_buffer_and_clear::h6701168f97d1b96a)
          >>> referenced by pw_utils.rs:1274 (src/pw_utils.rs:1274)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::Cast::dequeue_buffer_and_clear::h6701168f97d1b96a)
          >>> referenced by pw_utils.rs:1274 (src/pw_utils.rs:1274)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::Cast::dequeue_buffer_and_render::he52980df06301610)
          >>> referenced 3 more times

          rust-lld: error: undefined symbol: spa_format_parse_libspa_rs
          >>> referenced by format_utils.rs:18 (/niri/.cargo/git/checkouts/pipewire-rs-df61a2021ea5a343/93138d0/libspa/src/param/format_utils.rs:18)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::PipeWire::start_cast::_$u7b$$u7b$closure$u7d$$u7d$::h43c6c612be366af4)

          rust-lld: error: undefined symbol: spa_format_video_raw_parse_libspa_rs
          >>> referenced by raw.rs:382 (/niri/.cargo/git/checkouts/pipewire-rs-df61a2021ea5a343/93138d0/libspa/src/param/video/raw.rs:382)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::PipeWire::start_cast::_$u7b$$u7b$closure$u7d$$u7d$::h43c6c612be366af4)

          rust-lld: error: undefined symbol: spa_pod_is_object_libspa_rs
          >>> referenced by mod.rs:410 (/niri/.cargo/git/checkouts/pipewire-rs-df61a2021ea5a343/93138d0/libspa/src/pod/mod.rs:410)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::PipeWire::start_cast::_$u7b$$u7b$closure$u7d$$u7d$::h43c6c612be366af4)

          rust-lld: error: undefined symbol: spa_pod_object_find_prop_libspa_rs
          >>> referenced by mod.rs:583 (/niri/.cargo/git/checkouts/pipewire-rs-df61a2021ea5a343/93138d0/libspa/src/pod/mod.rs:583)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.niri-cf26d15992d96fbd.niri.8412b9a2c05a281c-cgu.15.rcgu.o.rcgu.o:(niri::pw_utils::PipeWire::start_cast::_$u7b$$u7b$closure$u7d$$u7d$::h43c6c612be366af4)

          rust-lld: error: undefined symbol: libspa_rs_type_video_format
          >>> referenced by raw.rs:140 (src/param/video/raw.rs:140)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.libspa-02d850aaa42f981a.libspa.40d15900ab6f3b6d-cgu.15.rcgu.o.rcgu.o:(_$LT$libspa..param..video..raw..VideoFormat$u20$as$u20$core..fmt..Debug$GT$::fmt::h5781fe4cf77453a7)

          rust-lld: error: undefined symbol: spa_debug_type_find_short_name_libspa_rs
          >>> referenced by raw.rs:139 (src/param/video/raw.rs:139)
          >>>               /home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600.libspa-02d850aaa42f981a.libspa.40d15900ab6f3b6d-cgu.15.rcgu.o.rcgu.o:(_$LT$libspa..param..video..raw..VideoFormat$u20$as$u20$core..fmt..Debug$GT$::fmt::h5781fe4cf77453a7)
          collect2: error: ld returned 1 exit status

FreeFull commented on 2025-11-16 12:25 (UTC)

@stevessr

Was there any more info where you've put the ...? I can't figure out what's wrong from just the error itself. Also, which version of rust are you using?

stevessr commented on 2025-11-16 11:07 (UTC)

well i met a problem while building recently

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-m64" "<1205 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/rustcWRYPRu/{liblibspa-02d850aaa42f981a,liblibspa_sys-e20af64b49a1d258}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lpipewire-0.3" "-lpipewire-0.3" "-lpangocairo-1.0" "-lpango-1.0" "-lcairo" "-lharfbuzz" "-lgobject-2.0" "-lglib-2.0" "-lpango-1.0" "-lharfbuzz" "-lgobject-2.0" "-lglib-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-lcairo-gobject" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-ldisplay-info" "-lgbm" "-lseat" "-ludev" "-linput" "-ldl" "-lpixman-1" "-lxkbcommon" "-ldl" "-lgbm" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcWRYPRu/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/steve/.cache/paru/clone/niri-git/src/niri/target/release/build/libspa-924bcaa6fcb2c2bc/out" "-L" "/home/steve/.cache/paru/clone/niri-git/src/niri/target/release/build/libspa-sys-ba36080f3591652a/out" "-L" "/usr/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/steve/.cache/paru/clone/niri-git/src/niri/target/release/deps/niri-1b41042a99d0c600" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
...
error: could not compile `niri` (bin "niri") due to 1 previous error

musta_ruhtinas commented on 2025-11-01 13:44 (UTC)

@FreeFull, @cosmo Of course it worked once makepkg-git-lfs-proto was installed on the host. I installed it into the chroot and still could not build.