Duckonaut / split-monitor-workspaces

A small Hyprland plugin to provide awesome-like workspace behavior
BSD 3-Clause "New" or "Revised" License
336 stars 47 forks source link

Hyprland headers breakage #81

Closed Duckonaut closed 5 months ago

Duckonaut commented 6 months ago

Our CI is falling to build Hyprland itself for 2 days now. I don't see any issues open on the Hyprland repo, so I'm unsure whether this is our problem or theirs. Opening just in case, will close if a nightly build succeeds again

ttgg1 commented 6 months ago

I think this could be related to this: https://github.com/hyprwm/Hyprland/issues/6044. On my machine it seems that a the includes from the wlroots library are broken and some files are missing. If i try to install split-monitior-workspaces i get:


Version: 1.4.0
Source dir: /tmp/hyprpm/paul
Build dir: /tmp/hyprpm/paul/build
Build type: native build
Project name: split-monitor-workspaces
Project version: 0.1
C++ compiler for the host machine: ccache c++ (gcc 14.1.1 "c++ (GCC) 14.1.1 20240507")
C++ linker for the host machine: c++ ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -std=c++23: YES
meson.build:8: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23".
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency hyprland found: YES 0.39.1
Run-time dependency pixman-1 found: YES 0.43.4
Run-time dependency libdrm found: YES 2.4.120
Build targets in project: 1

Found ninja-1.12.1 at /usr/bin/ninja

 -> cd /tmp/hyprpm/paul && PKG_CONFIG_PATH="/home/paul/.local/share/hyprpm/headersRoot/share/pkgconfig" meson compile -C build
ninja: Entering directory `/tmp/hyprpm/paul/build'
[1/2] Compiling C++ object libsplit-monitor-workspaces.so.p/src_main.cpp.o
FAILED: libsplit-monitor-workspaces.so.p/src_main.cpp.o
ccache c++ -Ilibsplit-monitor-workspaces.so.p -I. -I.. -I../include -I/home/paul/.local/share/hyprpm/headersRoot/include/hyprland/protocols -I/home/paul/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland -I/home/paul/.local/share/hyprpm/headersRoot/include -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -std=c++23 -DWLR_USE_UNSTABLE -fPIC -MD -MQ libsplit-monitor-workspaces.so.p/src_main.cpp.o -MF libsplit-monitor-workspaces.so.p/src_main.cpp.o.d -o libsplit-monitor-workspaces.so.p/src_main.cpp.o -c ../src/main.cpp
In file included from /home/paul/.local/share/hyprpm/headersRoot/include/hyprland/src/includes.hpp:52,
                 from /home/paul/.local/share/hyprpm/headersRoot/include/hyprland/src/defines.hpp:1,
                 from /home/paul/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:7,
                 from ../src/main.cpp:3:
/home/paul/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland/wlr/types/wlr_layer_shell_v1.h:16:10: fatal error: wlr-layer-shell-unstable-v1-protocol.h: No such file or directory
   16 | #include "wlr-layer-shell-unstable-v1-protocol.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /tmp/hyprpm/paul/build```

And if i go and remove this include it throws similar "include-file not found" errors from different files.
Duckonaut commented 6 months ago

That looks accurate. Our CI was failing on moving headers so its probably an old build script in the AUR thats at fault there. I guess we'll have to wait til they sort it out, I see that vaxry is aware of the problem

Duckonaut commented 5 months ago

We're back to normal, seemingly, so closing this.