hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.47k stars 898 forks source link

Bug: subprojects/wlroots points to a non existent blob. It's causing error in hyprpm update command #5476

Closed vkuasar0 closed 7 months ago

vkuasar0 commented 7 months ago

Hyprland Version

The link subprojects/wlroots in this repository doesn't point to any existing blob. I paste the link in the browser and get the following: 20240407_19h12m44s_grim

Bug or Regression?

Bug

Description

Error or running command:

[v] version returned: Hyprland, built from branch HEAD at commit 3875679755014997776e091ff8903acfb311dd2f  (props: bump ver to 0.38.0).
Date: Mon Apr 1 18:30:37 2024
Tag: v0.38.0

flags: (if any)

[v] parsed commit 3875679755014997776e091ff8903acfb311dd2f at branch HEAD

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.
✔ cloned
[v] git returned: Your branch is up to date with 'origin/main'.
HEAD is now at 38756797 props: bump ver to 0.38.0

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/vishwa/.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
-- Found Python3: /usr/bin/python3.11 (found version "3.11.8") found components: Interpreter
Building itab.c/itab.h...
-- Setting up wlroots
-- 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 PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Checking for modules 'wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;libdrm;xkbcommon;libinput;pango;pangocairo;pixman-1;hyprlang>=0.3.2;hyprcursor'
--   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.34
--   Found cairo, version 1.18.0
--   Found libdrm, version 2.4.120
--   Found xkbcommon, version 1.7.0
--   Found libinput, version 1.25.0
--   Found pango, version 1.52.2
--   Found pangocairo, version 1.52.2
--   Found pixman-1, version 0.43.4
--   Found hyprlang, version 0.5.0
--   Found hyprcursor, version 0.1.5
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Configuration supports execinfo
-- Looking for backtrace in execinfo
-- Looking for backtrace in execinfo - not found
-- XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps...
-- Checking for module 'xcb'
--   Found xcb, version 1.16.1
-- SYSTEMD support is requested (NO_SYSTEMD not defined) checking deps...
-- Looking for systemd/sd-daemon.h
-- Looking for systemd/sd-daemon.h - found
-- Checking for module 'libsystemd'
--   Found libsystemd, version 255
-- Systemd found
-- Setting precompiled headers
-- Setting link libraries
-- Checking for module 'tomlplusplus'
--   Found tomlplusplus, version 3.4.0
-- Configuring done (1.5s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/hyprpm/hyprland/build

[v] meson returned: sh: line 1: meson: command not found

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

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

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

The error clearly says subprojects/wlroots/build/include directory doesn't exist. That is because the link subprojects/wlroots in this repository is pointing to a blob that doesn't exist

Please do correct this issue. Operating system used: Arch Linux, but it should cause the same error in other distributions too.

How to reproduce

Command to reproduce error

hyprpm update --verbose

Crash reports, logs, images, videos

No response

vkuasar0 commented 7 months ago

The problem was that meson wasn't installed. After installing meson, and trying hyprpm update again, the error was solved. subprojects/wlroots is still an invalid link. Why does it still work? Please answer if someone knows

vaxerski commented 7 months ago

it's not an invalid link, it's just a repo hosted on gitlab and as such github won't automatically make a link to it