Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyprctl is looking in the wrong place & Hyprpm broken #5807

Closed
Theblackcat98 opened this issue Apr 30, 2024 · 11 comments
Closed

Hyprctl is looking in the wrong place & Hyprpm broken #5807

Theblackcat98 opened this issue Apr 30, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@Theblackcat98
Copy link

Hyprland Version

System/Version info
Couldn't connect to /run/user/1000/hypr/2e763764bfdaee2039961c6c220b5d6af31712d4_1714427843/.socket.sock. (3)

Bug or Regression?

Bug

Description

Hyprpm & Hyprctl

I wanted to try and install a plugin, when I ran 'hyprpm -v update'

[v] version returned: Couldn't connect to /run/user/1000/hypr/2e763764bfdaee2039961c6c220b5d6af31712d4_1714427843/.socket.sock. (3)


✖ You don't seem to be running Hyprland.
 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the hyprland reposi! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the hyprland reposi[v] will shallow since:
 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the hyprland repository
✖ Could not clone the hyprland repository. shell returned:
Cloning into 'hyprland-nicholas'...
fatal: error processing shallow info: 4

How to reproduce

So I went to /run/user/1000/ and found there is no hypr folder...
As I'm currently running hyprland is has to be there somewhere and found it at: /tmp/hypr/2e763[...]27843/.socket.sock
For info, the contents of /tmp/ both include the hypr and hyprpm folders too.

I haven't been able to find why hyperctl and hyprpm are looking in the wrong folder or how to change the folder.

Crash reports, logs, images, videos

No response

@Theblackcat98 Theblackcat98 added the bug Something isn't working label Apr 30, 2024
@thejch
Copy link
Contributor

thejch commented Apr 30, 2024

do a reboot/relog

@Theblackcat98
Copy link
Author

Hyprland Version

System/Version info
Hyprland, built from branch main at commit f2b03e9679bc1a091fecffd98b50a4179b5c7d43  ().
Date: Mon Apr 29 04:42:07 2024
Tag: , commits: 4564

flags: (if any)


System Information:
System name: Linux
Node name: fedora
Release: 6.8.7-200.fc39.x86_64
Version: #1 SMP PREEMPT_DYNAMIC Wed Apr 17 19:35:11 UTC 2024


GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2060 SUPER] [10de:1f06] (rev a1) (prog-if 00 [VGA controller])


os-release: NAME="Fedora Linux"
VERSION="39 (Workstation Edition)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12
VARIANT="Workstation Edition"
VARIANT_ID=workstation


plugins:

Strange... That did fix the issue of finding XDG_RUNTIME_DIR. But now I'm facing the same issue as #4566

Running hyprpm -v update:

Running `hyprpm -v update` returns:
[v] version returned: Hyprland, built from branch main at commit f2b03e9679bc1a091fecffd98b50a4179b5c7d43  ().
Date: Mon Apr 29 04:42:07 2024
Tag: , commits: 4564

flags: (if any)


[v] parsed commit f2b03e9679bc1a091fecffd98b50a4179b5c7d43 at branch main on Mon Apr 29 04:42:07 2024, commits 4564

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
[v] will shallow since: Mon Apr 22 04:42:07 2024

✔ cloned
[v] git returned (co): Already on 'main'
Your branch is up to date with 'origin/main'.

[v] git returned (rs): rm 'subprojects/tracy'
HEAD is now at f2b03e9 ext-idle-notify: move to new impl

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/nicholas/.local/share/hyprpm/headersRoot
[v] cmake returned: Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Gathering git info
fatal: No names found, cannot describe anything.
-- Found Python3: /usr/bin/python3.13 (found version "3.13.0") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5")
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring Hyprland in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so  found components: GLES3
-- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprwayland-scanner>=0.3.2;hyprlang>=0.3.2;hyprcursor>=0.1.7'
--   Package 'libinput', required by 'virtual:world', not found
--   Package 'hwdata', required by 'virtual:world', not found
--   Package 'libseat', required by 'virtual:world', not found
--   Package 'libdisplay-info', required by 'virtual:world', not found
--   Package 'libliftoff', required by 'virtual:world', not found
--   Package 'hyprlang', required by 'virtual:world', not found
--   Package 'hyprcursor', required by 'virtual:world', not found
CMake Error at /home/nicholas/.local/lib/python3.12/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - libinput
   - hwdata
   - libseat
   - libdisplay-info
   - libliftoff
   - hyprlang>=0.3.2
   - hyprcursor>=0.1.7

Call Stack (most recent call first):
  /home/nicholas/.local/lib/python3.12/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
  CMakeLists.txt:107 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system
Version: 1.3.2
Source dir: /tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland
Build dir: /tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland/build
Build type: native build
Project name: wlroots
Project version: 0.18.0-dev
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)")
C linker for the host machine: cc ld.bfd 2.40-14
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/usr/bin/pkg-config) 1.9.5
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency xkbcommon found: YES 1.6.0
Run-time dependency pixman-1 found: YES 0.42.2
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.36
Build-time dependency wayland-scanner found: YES 1.22.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Has header "linux/dma-buf.h" : YES
Run-time dependency egl found: YES 1.5
Run-time dependency gbm found: YES 23.3.6
Run-time dependency glesv2 found: YES 3.2
Program ./embed.sh found: YES (/tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland/render/gles2/shaders/./embed.sh)
Dependency pixman-1 found: YES 0.42.2 (cached)
Dependency gbm found: YES 23.3.6 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES
Run-time dependency libudev found: YES 254
Found CMake: /home/nicholas/.local/bin/cmake (3.28.3)
Run-time dependency libseat found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libseat
Neither a subproject directory nor a seatd.wrap file was found.
Subproject  seatd is buildable: NO (disabling)
Dependency libseat from subproject seatd found: NO (subproject failed to configure)
Message: Required for session support.
Found CMake: /home/nicholas/.local/bin/cmake (3.28.3)
Build-time dependency hwdata found: NO (tried pkgconfig and cmake)
Message: Required for the DRM backend.
Run-time dependency libdisplay-info found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libdisplay-info
Neither a subproject directory nor a libdisplay-info.wrap file was found.
Subproject  libdisplay-info is buildable: NO (disabling)
Dependency libdisplay-info from subproject libdisplay-info found: NO (subproject failed to configure)
Message: Required for the DRM backend.
Run-time dependency libliftoff found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libliftoff
Neither a subproject directory nor a libliftoff.wrap file was found.
Subproject  libliftoff is buildable: NO (disabling)
Dependency libliftoff from subproject libliftoff found: NO (subproject failed to configure)
Run-time dependency libinput found: NO (tried pkgconfig and cmake)
Message: Required for libinput backend support.
Run-time dependency xcb found: YES 1.13.1
Run-time dependency xcb-dri3 found: YES 1.13.1
Run-time dependency xcb-present found: YES 1.13.1
Run-time dependency xcb-render found: YES 1.13.1
Run-time dependency xcb-renderutil found: NO (tried pkgconfig and cmake)
Message: Required for X11 backend support.
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency xwayland
Neither a subproject directory nor a xserver.wrap file was found.
Subproject  xserver is buildable: NO (disabling)
Dependency xwayland from subproject xserver found: NO (subproject failed to configure)
Configuring config.h using configuration
Configuring version.h using configuration
Configuring config.h using configuration
Message: Patches found. Applying...
Build targets in project: 135

wlroots 0.18.0-dev

    drm-backend     : NO
    x11-backend     : NO
    libinput-backend: NO
    xwayland        : NO
    gles2-renderer  : YES
    vulkan-renderer : NO
    gbm-allocator   : YES
    session         : NO
    xcb-errors      : NO
    egl             : YES

  Subprojects
    libdisplay-info : NO
                      Neither a subproject directory nor a libdisplay-info.wrap file was found.
    libliftoff      : NO
                      Neither a subproject directory nor a libliftoff.wrap file was found.
    seatd           : NO
                      Neither a subproject directory nor a seatd.wrap file was found.
    xserver         : NO
                      Neither a subproject directory nor a xserver.wrap file was found.

  User defined options
    examples        : false
    renderers       : gles2

Found ninja-1.11.1 at /usr/bin/ninja

✔ configured Hyprland
[v] installation will run: sed -i -e "s#PREFIX = /usr/local#PREFIX = /home/nicholas/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland-nicholas/Makefile && cd /tmp/hyprpm/hyprland-nicholas && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: rm -fr /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots-hyprland/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../..
cd subprojects/wlroots-hyprland/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../../..
cp ./protocols/*-protocol.h /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp: cannot stat './protocols/*-protocol.h': No such file or directory
make: *** [Makefile:101: installheaders] Error 1

✖ failed to install headers with error code 2
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Failed

✖ Headers missing. Please run hyprpm update to fix those.

I do see that hyprpm states:

  The following required packages were not found:
   - libinput
   - hwdata
   - libseat
   - libdisplay-info
   - libliftoff
   - hyprlang>=0.3.2
   - hyprcursor>=0.1.7

Except, checking using dnf; they are installed....

What should I do?

@vaxerski
Copy link
Member

do you have -devel packages of each? iirc fedora packages headers separately.

@marcellbarsony
Copy link

marcellbarsony commented Apr 30, 2024

I receive a similar error when I try to implement the Eww workspaces widget's example scripts, such as get-workspaces

 bash ~/.config/eww/scripts/get-workspaces
[{"id":"1","windows":2},{"id":"2","windows":2},{"id":"3","windows":1},{"id":"4","windows":1},{"id":"5","windows":0},{"id":"6","windows":0},{"id":"7","windows":0},{"id":"8","windows":0},{"id":"9","windows":0},{"id":"10","windows":0}]
2024/04/30 23:25:42 socat[7243] E connect(, AF=1 "/run/user/1000/hypr/fe7b748eb668136dd0558b7c8279bfcd7ab4d759_1714511860/.socket2.sock", 87): No such file or directory

get-active-workspace

 bash ~/.config/eww/scripts/get-active-workspace
1
2024/04/30 23:52:13 socat[17107] E connect(, AF=1 "/run/user/1000/hypr/fe7b748eb668136dd0558b7c8279bfcd7ab4d759_1714511860/.socket2.sock", 87): No such file or directory

and get-window-title

 bash ~/.config/eww/scripts/get-window-title
Alacritty
2024/04/30 23:55:53 socat[17765] E connect(, AF=1 "/run/user/1000/hypr/fe7b748eb668136dd0558b7c8279bfcd7ab4d759_1714511860/.socket2.sock", 87): No such file or directory

The directory hypr doesn't exist under /run/user/1000/.
I'm not sure how this is affecting the scripts, just thought about mentioning it.

Edit: apologies for the wacky links

@vaxerski
Copy link
Member

because you're not on latest -git so the change hasnt hit you yet...

@Theblackcat98
Copy link
Author

do you have -devel packages of each? iirc fedora packages headers separately.

I did not... after installing -devel packages of each; I do still get the same error, except of course now it does find the 'subprojects'.

Output of hyprpm -v update:

`hyprpm -v update`
[v] version returned: Hyprland, built from branch main at commit f2b03e9679bc1a091fecffd98b50a4179b5c7d43  ().
Date: Mon Apr 29 04:42:07 2024
Tag: , commits: 4564

flags: (if any)


[v] parsed commit f2b03e9679bc1a091fecffd98b50a4179b5c7d43 at branch main on Mon Apr 29 04:42:07 2024, commits 4564

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
[v] will shallow since: Mon Apr 22 04:42:07 2024

✔ cloned
[v] git returned (co): Already on 'main'
Your branch is up to date with 'origin/main'.

[v] git returned (rs): rm 'subprojects/tracy'
HEAD is now at f2b03e9 ext-idle-notify: move to new impl

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/nicholas/.local/share/hyprpm/headersRoot
[v] cmake returned: Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Gathering git info
fatal: No names found, cannot describe anything.
-- Found Python3: /usr/bin/python3.13 (found version "3.13.0") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5")
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring Hyprland in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so  found components: GLES3
-- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprwayland-scanner>=0.3.2;hyprlang>=0.3.2;hyprcursor>=0.1.7'
--   Found xkbcommon, version 1.6.0
--   Found uuid, version 2.39.4
--   Found wayland-server, version 1.22.0
--   Found wayland-client, version 1.22.0
--   Found wayland-cursor, version 1.22.0
--   Found wayland-protocols, version 1.36
--   Found cairo, version 1.18.0
--   Found pango, version 1.51.0
--   Found pangocairo, version 1.51.0
--   Found pixman-1, version 0.42.2
--   Found libdrm, version 2.4.120
--   Found libinput, version 1.25.0
--   Found hwdata, version 0.381
--   Found libseat, version 0.8.0
--   Found libdisplay-info, version 0.1.1
--   Found libliftoff, version 0.4.1
--   Found libudev, version 254
--   Found gbm, version 23.3.6
--   Found hyprwayland-scanner, version 0.3.2
--   Found hyprlang, version 0.5.1
--   Found hyprcursor, version 0.1.8
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Configuration supports execinfo
-- Looking for backtrace in execinfo
-- Looking for backtrace in execinfo - not found
-- Looking for sys/timerfd.h
-- Looking for sys/timerfd.h - found
-- Checking for module 'epoll-shim'
--   Package 'epoll-shim', required by 'virtual:world', not found
-- XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps...
-- Checking for modules 'xcb;xwayland;xcb-util;xcb-render;xcb-xfixes;xcb-icccm;xcb-composite;xcb-res;xcb-ewmh'
--   Package 'xwayland', required by 'virtual:world', not found
--   Package 'xcb-util', required by 'virtual:world', not found
--   Package 'xcb-icccm', required by 'virtual:world', not found
--   Package 'xcb-ewmh', required by 'virtual:world', not found
CMake Error at /home/nicholas/.local/lib/python3.12/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - xwayland
   - xcb-util
   - xcb-icccm
   - xcb-ewmh

Call Stack (most recent call first):
  /home/nicholas/.local/lib/python3.12/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
  CMakeLists.txt:183 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system
Version: 1.3.2
Source dir: /tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland
Build dir: /tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland/build
Build type: native build
Project name: wlroots
Project version: 0.18.0-dev
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)")
C linker for the host machine: cc ld.bfd 2.40-14
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Woverflow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Walloca: YES
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Found pkg-config: YES (/usr/bin/pkg-config) 1.9.5
Run-time dependency wayland-server found: YES 1.22.0
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency xkbcommon found: YES 1.6.0
Run-time dependency pixman-1 found: YES 0.42.2
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.36
Build-time dependency wayland-scanner found: YES 1.22.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Has header "linux/dma-buf.h" : YES
Run-time dependency egl found: YES 1.5
Run-time dependency gbm found: YES 23.3.6
Run-time dependency glesv2 found: YES 3.2
Program ./embed.sh found: YES (/tmp/hyprpm/hyprland-nicholas/subprojects/wlroots-hyprland/render/gles2/shaders/./embed.sh)
Dependency pixman-1 found: YES 0.42.2 (cached)
Dependency gbm found: YES 23.3.6 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES
Run-time dependency libudev found: YES 254
Run-time dependency libseat found: YES 0.8.0
Build-time dependency hwdata found: YES 0.381
Run-time dependency libdisplay-info found: YES 0.1.1
Run-time dependency libliftoff found: YES 0.4.1
Run-time dependency libinput found: YES 1.25.0
Run-time dependency xcb found: YES 1.13.1
Run-time dependency xcb-dri3 found: YES 1.13.1
Run-time dependency xcb-present found: YES 1.13.1
Run-time dependency xcb-render found: YES 1.13.1
Found CMake: /home/nicholas/.local/bin/cmake (3.28.3)
Run-time dependency xcb-renderutil found: NO (tried pkgconfig and cmake)
Message: Required for X11 backend support.
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency xwayland
Neither a subproject directory nor a xserver.wrap file was found.
Subproject  xserver is buildable: NO (disabling)
Dependency xwayland from subproject xserver found: NO (subproject failed to configure)
Configuring config.h using configuration
Configuring version.h using configuration
Configuring config.h using configuration
Message: Patches found. Applying...
Build targets in project: 136

wlroots 0.18.0-dev

    drm-backend     : YES
    x11-backend     : NO
    libinput-backend: YES
    xwayland        : NO
    gles2-renderer  : YES
    vulkan-renderer : NO
    gbm-allocator   : YES
    session         : YES
    xcb-errors      : NO
    egl             : YES
    libliftoff      : YES

  Subprojects
    xserver         : NO
                      Neither a subproject directory nor a xserver.wrap file was found.

  User defined options
    examples        : false
    renderers       : gles2

Found ninja-1.11.1 at /usr/bin/ninja

✔ configured Hyprland
[v] installation will run: sed -i -e "s#PREFIX = /usr/local#PREFIX = /home/nicholas/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland-nicholas/Makefile && cd /tmp/hyprpm/hyprland-nicholas && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: rm -fr /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland
mkdir -p /home/nicholas/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots-hyprland/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../..
cd subprojects/wlroots-hyprland/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland && cd ../../../..
cp ./protocols/*-protocol.h /home/nicholas/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp: cannot stat './protocols/*-protocol.h': No such file or directory
make: *** [Makefile:101: installheaders] Error 1

✖ failed to install headers with error code 2
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Failed

✖ Headers missing. Please run hyprpm update to fix those.

@vaxerski
Copy link
Member

  The following required packages were not found:

   - xwayland
   - xcb-util
   - xcb-icccm
   - xcb-ewmh

@ikalco
Copy link
Contributor

ikalco commented May 1, 2024

I had a similar issue with waybar trying to use the IPC at /tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE when they were actually at /run/user/$UID/hypr/$HYPRLAND_INSTANCE_SIGNATURE.
I used waybar-git instead of waybar and it was then correctly reading from /run/user/$UID/hypr/$HYPRLAND_INSTANCE_SIGNATURE.
So I think this is just an update issue like vaxerski said.

P.S. I believe these commits are related to this for anyone else trying to figure this out
core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr
hyprctl: use XDG_RUNTIME_DIR if available

@Heyian
Copy link

Heyian commented May 1, 2024

If anyone is reading this because the update broke the workspaces in waybar like me, know that it has been fixed on this Waybar PR : Fix Hyprland socketpath changed to XDG_RUNTIME_DIR #3183
Hasn't made it to a release yet, that's why waybar-git is a working fix for now. Personnaly, I'll wait for the next Waybar release.

@Theblackcat98
Copy link
Author

  The following required packages were not found:

   - xwayland
   - xcb-util
   - xcb-icccm
   - xcb-ewmh

All of those packages were installed; I'm not sure how or why, but in my case it seems I needed the "*-devel" version for all. Even those.

do you have -devel packages of each? iirc fedora packages headers separately.

As you stated, if anyone else is on Fedora; the -devel packages include the headers so they're a requirement.
I solved it by installing the "*-devel" version for any package that was reported as missing which required headers.

@solopasha
Copy link
Contributor

hyprland-devel should install all the needed -devel deps. As stated in https://wiki.hyprland.org/Getting-Started/Installation/ -> Fedora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants