Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

unable to build waybar-git from aur

Open alekgr opened this issue 2 months ago • 20 comments

I am not sure if this is related to pkg or it is an issue on the source.

I am getting

/waybar/test/hyprland/backend.cpp:12 ...............................................................................

../waybar/test/hyprland/backend.cpp:24: FAILED: REQUIRE( actualPath == expectedPath ) with expansion: "/tmp/hypr/59ff7b2f891d06f4097128faf7027a3863542167_1760887456_299454743" == "/tmp/hypr_test/run/user/1000/hypr/instance_sig"

=============================================================================== test cases: 4 | 3 passed | 1 failed assertions: 4 | 3 passed | 1 failed

stderr: [2025-10-19 10:27:34.095] [info] Hyprland IPC starting [2025-10-19 10:27:34.095] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr [2025-10-19 10:27:34.095] [error] Hyprland IPC: Unable to connect? [2025-10-19 10:27:34.095] [info] Hyprland IPC stopping... [2025-10-19 10:27:34.095] [info] Hyprland IPC starting [2025-10-19 10:27:34.095] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr [2025-10-19 10:27:34.095] [error] Hyprland IPC: Unable to connect? [2025-10-19 10:27:34.095] [info] Hyprland IPC stopping... [2025-10-19 10:27:34.095] [info] Hyprland IPC starting [2025-10-19 10:27:34.095] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr [2025-10-19 10:27:34.095] [error] Hyprland IPC: Unable to connect? [2025-10-19 10:27:34.096] [info] Hyprland IPC stopping... [2025-10-19 10:27:34.096] [info] Hyprland IPC starting [2025-10-19 10:27:34.096] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr [2025-10-19 10:27:34.096] [error] Hyprland IPC: Unable to connect? [2025-10-19 10:27:34.096] [info] Hyprland IPC stopping... ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

3/3 utils OK 0.01s

Summary of Failures:

2/3 hyprland FAIL 0.00s exit status 42

Ok: 2 Fail: 1

Full log written to /home/alek/.cache/paru/clone/waybar-git/src/build/meson-logs/testlog.txt ==> ERROR: A failure occurred in check(). Aborting... error: failed to build 'waybar-git-0.13.0.r41.g0776e69-1': error: packages failed to build: waybar-git-0.13.0.r41.g0776e69-1 rocket at alek ~ ❯

alekgr avatar Oct 19 '25 15:10 alekgr

You know, I thought it was https://github.com/Alexays/Waybar/issues/3663, but turns out it's actually a regression of the same bug that y'all can repro too, lol. CR, Hyprland on Arch.

ninetailedtori avatar Oct 19 '25 21:10 ninetailedtori

Getting the following with the aur package as well with the cava option set to true:

==> Starting check()...
1/3 waybar          OK              0.01s
2/3 hyprland        FAIL            0.00s   exit status 42
>>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=51 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/al/.cache/paru/clone/waybar-git/src/build/test/hyprland/hyprland_test
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
Randomness seeded to: 215453655

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hyprland_test is a Catch2 v3.11.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
XDGRuntimeDirExistsNoHyprDir
-------------------------------------------------------------------------------
../waybar/test/hyprland/backend.cpp:40
...............................................................................

../waybar/test/hyprland/backend.cpp:52: FAILED:
  REQUIRE( actualPath == expectedPath )
with expansion:
  "/tmp/hypr/892f642f58e6fcab7c69ecba79afb2d6ab461c89_1761226540_1998894233"
  ==
  "/tmp/hypr/instance_sig"

===============================================================================
test cases: 4 | 3 passed | 1 failed
assertions: 4 | 3 passed | 1 failed

stderr:
[2025-10-23 21:39:38.169] [info] Hyprland IPC starting
[2025-10-23 21:39:38.169] [error] Hyprland IPC: Unable to connect?
[2025-10-23 21:39:38.169] [info] Hyprland IPC stopping...
[2025-10-23 21:39:38.169] [info] Hyprland IPC starting
[2025-10-23 21:39:38.169] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr
[2025-10-23 21:39:38.169] [error] Hyprland IPC: Unable to connect?
[2025-10-23 21:39:38.169] [info] Hyprland IPC stopping...
[2025-10-23 21:39:38.169] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr
[2025-10-23 21:39:38.169] [info] Hyprland IPC starting
[2025-10-23 21:39:38.169] [info] Hyprland IPC stopping...
[2025-10-23 21:39:38.169] [error] Hyprland IPC: Unable to connect?
[2025-10-23 21:39:38.169] [warning] $XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr
[2025-10-23 21:39:38.169] [info] Hyprland IPC starting
[2025-10-23 21:39:38.169] [info] Hyprland IPC stopping...
[2025-10-23 21:39:38.169] [error] Hyprland IPC: Unable to connect?
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

3/3 utils           OK              0.01s

Summary of Failures:

2/3 hyprland FAIL            0.00s   exit status 42

Ok:                2   
Fail:              1   

Full log written to /home/al/.cache/paru/clone/waybar-git/src/build/meson-logs/testlog.txt

s0mebodyhelpme avatar Oct 23 '25 13:10 s0mebodyhelpme

@s0mebodyhelpme I am getting this kind of error, looks like hyprland tests are failing ,

alekgr avatar Oct 24 '25 21:10 alekgr

Both sockets exist for me on my machine, everything else can communicate with it but Waybar, but this isn't the first time that Waybar has been unable to find the IPC socket. hmmmm

ninetailedtori avatar Oct 27 '25 00:10 ninetailedtori

well I just did clean build again now and it build successfully. It must of been something with hyprland that was fixed. @s0mebodyhelpme is your building good now with current hyprland commit

alekgr avatar Oct 29 '25 19:10 alekgr

@alekgr do you have a hyprland version number that resolves this? I'm failing on stable v51.1-6 still.

ninetailedtori avatar Oct 31 '25 00:10 ninetailedtori

I don't. I use hyprland-git. Hyprland recommends to use the git version . Are you on arch

alekgr avatar Oct 31 '25 00:10 alekgr

Yes, Arch. Hyprland-git is hard to sync though, due to its unstable version control. Can you output hyprctl version?

ninetailedtori avatar Oct 31 '25 01:10 ninetailedtori

`` hyprctl version Hyprland 0.51.0 built from branch main at commit 8e9add2afda58d233a75e4c5ce8503b24fa59ceb clean (sessionlock: fix crash when sendScale is called on a disconnected ( 12171)). Date: Thu Oct 30 19:15:18 2025 Tag: v0.51.0-131-g8e9add2af, commits: 6549

Libraries: Hyprgraphics: built against 0.2.0, system has 0.2.0 Hyprutils: built against 0.10.0, system has 0.10.0 Hyprcursor: built against 0.1.13, system has 0.1.13 Hyprlang: built against 0.6.3, system has 0.6.3 Aquamarine: built against 0.9.5, system has 0.9.5

no flags were set``

alekgr avatar Oct 31 '25 01:10 alekgr

Hyprland 0.51.1 built from branch  at commit 71a1216abcc7031776630a6d88f105605c4dc1c9  ([gha] Nix: update inputs).
Date: Mon Sep 22 20:54:03 2025
Tag: v0.51.1, commits: 6436
built against:
 aquamarine 0.9.5
 hyprlang 0.6.3
 hyprutils 0.10.0
 hyprcursor 0.1.13
 hyprgraphics 0.2.0


no flags were set

I'm a little behind, still reading the same issues. I can't risk the instability on this system right now though. I wonder if there's a workaround for the time being, might have to skip tests, but I'm not sure of a method to do that for Meson managed projects.

ninetailedtori avatar Oct 31 '25 13:10 ninetailedtori

I wonder if there's a workaround for the time being, might have to skip tests, but I'm not sure of a method to do that for Meson managed projects.

You should be able to just add -Dtests=disabled to the meson build options to turn off the tests.

hunkyburrito avatar Nov 01 '25 19:11 hunkyburrito

Perfect, ty for the help :]

ninetailedtori avatar Nov 01 '25 19:11 ninetailedtori

For some reason I managed to fix this by cleaning my paru cache (rm -rf ~/.cache/paru/clone/) and then building waybar-git again (paru -S waybar-git)

zjeffer avatar Nov 02 '25 09:11 zjeffer

Tragically that didn't work for me. --mflags="--nocheck" works fine for AUR package managers, though, for me, and so does passing -Dtests=disabled option directly to meson.

ninetailedtori avatar Nov 02 '25 15:11 ninetailedtori

Hmm, building works but waybar resets several times upon failing to find the IPC. I'll risk the migration to git to test on that.

ninetailedtori avatar Nov 04 '25 14:11 ninetailedtori

With current Hyprland stable, I'm still getting random Waybar warnings for "Failed to open bar ipc connection: Socket path is empty", but then it proceeds to receive several hyprland IPC events. So confusing lol.

ninetailedtori avatar Nov 26 '25 21:11 ninetailedtori

With current Hyprland stable, I'm still getting random Waybar warnings for "Failed to open bar ipc connection: Socket path is empty", but then it proceeds to receive several hyprland IPC events. So confusing lol.

Do you have multiple monitors?

zjeffer avatar Nov 28 '25 19:11 zjeffer

With current Hyprland stable, I'm still getting random Waybar warnings for "Failed to open bar ipc connection: Socket path is empty", but then it proceeds to receive several hyprland IPC events. So confusing lol.

Do you have multiple monitors?

I do have two, yes. Is that a known issue I must've missed?

ninetailedtori avatar Nov 28 '25 22:11 ninetailedtori

With current Hyprland stable, I'm still getting random Waybar warnings for "Failed to open bar ipc connection: Socket path is empty", but then it proceeds to receive several hyprland IPC events. So confusing lol.

Do you have multiple monitors?

I do have two, yes. Is that a known issue I must've missed?

Not sure about any issue but the fact that it gets a warning and then still gets events after it likely indicates that it failed on one monitor but the events you see are from another monitor's connection.

But if I remember correctly, i thought the connection should be shared across the process. Which waybar version are you using?

zjeffer avatar Nov 29 '25 14:11 zjeffer

it still happens to me on a fresh Arch install with hyprland. i only have one monitor connected and no others configured.

s0mebodyhelpme avatar Dec 03 '25 04:12 s0mebodyhelpme