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.66k stars 903 forks source link

hyprpm update fails due to wlroots subproject #5604

Closed zebogan closed 7 months ago

zebogan commented 7 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch at commit dirty (). Date: Tag: flags: (if any) System Information: System name: Linux Node name: bogans-laptop Release: 6.8.5-1-default Version: #1 SMP PREEMPT_DYNAMIC Thu Apr 11 04:31:19 UTC 2024 (542f698) GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller]) os-release: NAME="openSUSE Tumbleweed" # VERSION="20240412" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20240412" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" # CPE 2.3 format, boo#1217921 CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240412:*:*:*:*:*:*:*" #CPE 2.2 format #CPE_NAME="cpe:/o:opensuse:tumbleweed:20240412" BUG_REPORT_URL="https://bugzilla.opensuse.org" SUPPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed" plugins: ```

Bug or Regression?

Bug

Description

[v] version returned: Hyprland, built from branch  at commit  dirty ().
Date: 
Tag: 

flags: (if any)

[v] parsed commit  at branch 

! 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 79a139c9 flake.lock: update

✔ checked out to running ver                                                                                                                                                    
! configuring Hyprland                                                                                                                                                          
[v] setting PREFIX for cmake to /home/bogan/.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 PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- 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;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprlang>=0.3.2;hyprcursor>=0.1.7'
--   Found xkbcommon, version 1.7.0
--   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 pango, version 1.52.0
--   Found pangocairo, version 1.52.0
--   Found pixman-1, version 0.43.2
--   Found libdrm, version 2.4.120
--   Found libinput, version 1.25.0
--   Found hwdata, version 0.380
--   Found libseat, version 0.8.0
--   Found libdisplay-info, version 0.1.1
--   Found libliftoff, version 0.4.1
--   Found libudev, version 255
--   Found gbm, version 24.0.3
--   Found hyprlang, version 0.5.0
--   Found hyprcursor, version 0.1.7
-- 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'
--   Found xcb, version 1.16.1
--   Found xwayland, version 23.2.6
--   Found xcb-util, version 0.4.1
--   Found xcb-render, version 1.16.1
--   Found xcb-xfixes, version 1.16.1
--   Found xcb-icccm, version 0.4.2
--   Found xcb-composite, version 1.16.1
--   Found xcb-res, version 1.16.1
--   Found xcb-ewmh, version 0.4.2
-- Checking for module 'xcb-errors'
--   Package 'xcb-errors', required by 'virtual:world', not found
-- 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 (2.5s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/hyprpm/hyprland/build

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

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

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

it seems to fail due to Building Hyprlandsh: line 1: cd: /tmp/hyprpm/hyprland/subprojects/wlroots: No such file or directory, but i cant investigate /tmp/hyprpm because it seems to clear it.

How to reproduce

install hyprland on opensuse tumbleweed, deal with all of the dependency errors when running hyprpm update, then it just doesnt work

Crash reports, logs, images, videos

No response

vaxerski commented 7 months ago

this is a bug with opensuse's packaging.

zebogan commented 7 months ago

is there anything i can do to fix it @vaxerski ? do i just need to build hyprland?

vaxerski commented 7 months ago

if you build it from source it should work :)