Please do not suggest people use the staging repos, see the warning here: https://wiki.archlinux.org/title/Official_repositories#Staging_repositories
This was brought up in the #archlinux-aur channel and I'm responding on behalf of them.
Git Clone URL: | https://aur.archlinux.org/river-git.git (read-only, click to copy) |
---|---|
Package Base: | river-git |
Description: | A dynamic tiling wayland compositor. |
Upstream URL: | https://github.com/riverwm/river |
Keywords: | river Tiling Wayland window-manager |
Licenses: | GPL3 |
Conflicts: | river, river-bin, river-noxwayland-git |
Provides: | river, riverctl, rivertile |
Submitter: | ifreund |
Maintainer: | andreafeletto (dedguy21, ifreund) |
Last Packager: | andreafeletto |
Votes: | 11 |
Popularity: | 1.33 |
First Submitted: | 2020-04-21 11:52 (UTC) |
Last Updated: | 2022-05-21 18:42 (UTC) |
Please do not suggest people use the staging repos, see the warning here: https://wiki.archlinux.org/title/Official_repositories#Staging_repositories
This was brought up in the #archlinux-aur channel and I'm responding on behalf of them.
At moment I cant update this package because it crashes during build on "require wlroots 0.15" but choices we have currently are and both wont work
wlroots-0.14.1-3 wlroots-git-0.16.0.r5328.5091118b-1
Hi There,
I understand that you guys don't ship the session file with river, however, wouldn't it be a 'good choice' to atleast ship river-git pkg with it, if not the river pkg itself?
If at some point you agree, then below changes should suffice:
add river.desktop file in the PKGBUILD directory
PKGBUILD modifications [ denoted by + ] --
source=(
+ "river.desktop"
)
sha256sums=(
//recalculate or skip
)
package() {
+ install -Dm644 "$srcdir/river.desktop" "$pkgdir/usr/share/wayland-sessions/river.desktop"
}
Thanks!
/usr/lib/libLLVM-13.so
is provided by llvm-libs
which is a dependency of zig.
Please check that llvm-libs
is not listed in /etc/pacman.conf
under IgnorePkg (which would prevent the package to be upgraded) and update the system with sudo pacman -Syu
.
LLVM13 isn't a listed dependency, but river-git fails to build without it. Not sure if this a me problem, or an actual problem.
zig: error while loading shared libraries: libLLVM-13.so: cannot open shared object file: No such file or directory
The version of upstream wlroots
is currently 0.15.0.
Still, the version of wlroots-git
is based on the last tag (0.14), so there is no way that I know of to prevent this during installation.
Installing wlroots
from the community repository will solve the issue.
Won't compile due to this:
./deps/zig-wlroots/src/wlroots.zig:165:9: error: zig-wlroots requires wlroots version 0.14
@compileError("zig-wlroots requires wlroots version 0.14");
^
I'm running wlroots-git ver 0.14.0.r347.g8274c85d-1
It possible to modify the PKGBUILD to remove the dependency. Why don't you do that?
For most use cases Xwayland is essential for Steam and other software.
I hope he doesn't make it optional, it'd be like asking for French fries without salt. Only the outliers like it that way
is it possible to make xwayland optional?
Please add 'git' to makedepends. It's not in base-devel.
Disowned by me. I don't have enough experience yet to be maintaining packages. Sorry.
As written, this package should have xorg-xwayland
as a dependency. The binary is built expecting the library to be present (-Dxwayland
). If xorg-xwayland
is not installed, the binary crashes at runtime because it is unable to create an Xwayland session.
That said, ideally the Xwayland dependency would be optional. I prefer to run without it, so I've been editing the PKGBUILD to remove -Dxwayland
.
It finally does work and install now.
I pushed a fix to build the package cleanly again.
However I'm going to disown this package: the lack of nvidia support in wlroots means I can't realistically use it.
This package still fails to build even with the patch. Might be because of this https://github.com/ifreund/river/issues/270#issuecomment-829324655
Same error as euclio, are you sure the dependencies are right? More importantly, could you fix this package? (see also: https://github.com/ifreund/river/issues/270)
I am getting build failures because the cc invoked by zig-wayland is unable to find wayland-util.h
in /usr/include
. Using --verbose-cc
it looks like the underlying C compiler is getting -nostdinc
but /usr/include
is not passed as an include directory.
LLVM Emit Output... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c:33:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c:5:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [2/9] pointer-gestures-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c:28:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c:29:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [4/9] pointer-constraints-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [6/9] river-status-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c:30:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [8/9] wlr-layer-shell-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c:28:10: fatal error: 'wayland-util.h' file not found
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
rivertile...The following command exited with error code 1:
/usr/bin/zig build-exe /home/euclio/.local/share/aur/river-git/src/river/rivertile/main.zig --library c --library wayland-client -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c -OReleaseSafe --cache-dir /home/euclio/.local/share/aur/river-git/src/river/zig-cache --global-cache-dir /home/euclio/.cache/zig --name rivertile -target x86_64-linux-gnu --pkg-begin wayland /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/o/dbe8cad39980afdc53d61155296a04dd/build /usr/bin/zig /home/euclio/.local/share/aur/river-git/src/river /home/euclio/.local/share/aur/river-git/src/river/zig-cache /home/euclio/.cache/zig --search-prefix /usr -Dtarget=x86_64-linux-gnu -Drelease-safe -Dxwayland -Dman-pages
Can you please make it work for aarch64 again? It was compiling fine before the last change and it seems it has some issue with wlroots (or maybe the wrapper) because it gives me an error, after I changed all the places with x86_64 to aarch64 in the PKGBUILD and tried to compile it:
ld.lld: error: undefined symbol: wlr_xdg_surface_for_each_popup_surface
>>> referenced by xdg_shell.zig:330 (/home/dwolf/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:330)
Edit: I saw that you have updated it for wlroots 0.13 in the git repository. My bad.
Ok, zig builds as of today with glib 2.32, but Arch has glib 2.33 which is causing build errors... just to clarify for anyone else though.
The work around is:
1)run the terminal command first: zig libc > libc-paths
2) using your favorite text editor (nvim for me): find ".linkLibC()" instances ( i think there are three) and underneath append the line for .setLibCFile("libc-paths") in file 'build.zig'
example:
found --> riverctl.linkLibC();
insert next line --> riverctl.setLibCFile("libc-paths");
Agian I believe there are three instances, save and then run the build per instructions
Thanks, this workaround has resolved the build failure in Arch, and I have successfully built and run River
I tried to build from wlroots today (2021-03-3) from the official Arch repo, got a similar build error that was being reported from before when it was a git master issue.
As explained here on my issue tracker, river requires wlroots 0.12.0. wlroots master will not work.
Currently gives a build error:
ld.lld: error: undefined symbol: wlr_xdg_surface_for_each_popup
referenced by xdg_shell.zig:325 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:325) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by xdg_shell.zig:325 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:325) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93)
ld.lld: error: undefined symbol: wlr_layer_surface_v1_for_each_popup
referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced 1 more times error: LLDReportedFailure river...The following command exited with error code 1: /usr/bin/zig build-exe /home/ekollof/.cache/yay/river-git/src/river/river/main.zig --library c --library evdev --library wayland-server --library xkbcommon --library pixman-1 --library wlroots -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c --pkg-begin build_options /home/ekollof/.cache/yay/river-git/src/river/zig-cache/river_build_options.zig --pkg-end -OReleaseSafe --cache-dir /home/ekollof/.cache/yay/river-git/src/river/zig-cache --global-cache-dir /home/ekollof/.cache/zig --name river --pkg-begin wayland /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --pkg-begin xkbcommon /home/ekollof/.cache/yay/river-git/src/river/deps/zig-xkbcommon/src/xkbcommon.zig --pkg-end --pkg-begin pixman /home/ekollof/.cache/yay/river-git/src/river/deps/zig-pixman/pixman.zig --pkg-end --pkg-begin wlroots /home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/wlroots.zig --pkg-begin wayland /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --pkg-begin xkbcommon /home/ekollof/.cache/yay/river-git/src/river/deps/zig-xkbcommon/src/xkbcommon.zig --pkg-end --pkg-begin pixman /home/ekollof/.cache/yay/river-git/src/river/deps/zig-pixman/pixman.zig --pkg-end --pkg-end -I /usr/include/libevdev-1.0 -I /usr/include/pixman-1 -I /usr/include/libdrm -I /usr/include/pixman-1 -I /usr/include/uuid --enable-cache error: the following build command failed with exit code 1: /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/5ea24304caa68294e730363f491c2640/build /usr/bin/zig /home/ekollof/.cache/yay/river-git/src/river /home/ekollof/.cache/yay/river-git/src/river/zig-cache /home/ekollof/.cache/zig -Drelease-safe -Dxwayland -Dman-pages
So is this package still orphaned?
no.
So is this package still orphaned?
Noticed it was updated on 11-04-2020 after the 11-01-2020 announcement.
I'm orphaning this as I don't use arch anymore. If someone has questions about packaging this feel free to ask in #river on freenode or my issue tracker.
For people wondering why build is currently failing : https://github.com/ifreund/river/issues/95
Will be fixed at 0.7 apparently
@Ordoviz thanks for the reminder. I updated the license and fixed a couple other things.
The license needs to be changed.
Note, this package requires the stable version of wlroots and an master branch build of zig. This means it likely won't work if you have wlroots-git
. installed or are using zig 0.6.0
. When zig 0.7.0
releases on the 26th river will stick with zig 0.7.0
and no longer depend on master.
Pinned Comments