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

hyprpm update fails: pkexec returned: You need to run make all first. make: #4566

Open
AndreasBackx opened this issue Jan 30, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@AndreasBackx
Copy link

Hyprland Version

System/Version info
Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d  (props: bump ver to 0.34.0).
Date: Mon Jan 1 12:03:15 2024
Tag: v0.34.0

flags: (if any)

Bug or Regression?

Bug

Description

I cannot seem to update hyprpm:

➜ hyprpm update --verbose
[v] version returned: Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d  (props: bump ver to 0.34.0).
Date: Mon Jan 1 12:03:15 2024
Tag: v0.34.0

flags: (if any)


[v] parsed commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d 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 03ebbe18 props: bump ver to 0.34.0

✔ checked out to running ver
! configuring Hyprland
✔ configured Hyprland
! in order to install the sources, you will need to input your password.
  If nothing pops up, make sure you have polkit and an authentication daemon running.
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] pkexec returned: You need to run make all first.
make: *** [Makefile:75: installheaders] Error 1

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

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

How to reproduce

I have only tried this on my Fedora machine so far running Fedora 39 installed via https://copr.fedorainfracloud.org/coprs/solopasha/hyprland/. I would say to try installing it on a Fedora machine and then running hyprpm update.

Crash reports, logs, images, videos

No response

@AndreasBackx AndreasBackx added the bug Something isn't working label Jan 30, 2024
@vaxerski
Copy link
Member

can you try on -git?

@AndreasBackx
Copy link
Author

@vaxerski will try, let me get back to you tomorrow if it reproduces on my home Fedora work machine. If it does not, it will have to be Thursday when I'm at the office with the machine that I reported this on. I've put this in my calendar.

@AndreasBackx
Copy link
Author

Turns out the issue was that I had not installed hyprland-devel. Possibly add a reminder message to check if the user (aka me) has installed the relevant package for their OS? Thank you for the help.

@vaxerski
Copy link
Member

vaxerski commented Feb 1, 2024

it shouldn't be required.

@AndreasBackx
Copy link
Author

Likely, though that is what happened. Tried it again before installing it and same error. Trying it right after installing hyprland-devel seemed to do the trick.

@vaxerski
Copy link
Member

vaxerski commented Feb 1, 2024

#4585 should fix this

@ayushgun
Copy link

Getting this same error. I'm on version 0.35.0-2 on Arch Linux.

@AndreasBackx
Copy link
Author

I setup a new machine and was facing this again:

➜ hyprpm update --verbose
[v] version returned: Hyprland, built from branch HEAD at commit c5e28ebcfe00a510922779b2c568cfa52a317445  (props: bump ver 0.37.1).
Date: Sat Mar 16 14:51:49 2024
Tag: v0.37.1

flags: (if any)


[v] parsed commit c5e28ebcfe00a510922779b2c568cfa52a317445 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 c5e28ebc props: bump ver 0.37.1

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/andreasbackx/.local/share/hyprpm/headersRoot
[v] cmake returned: sh: line 1: cmake: command not found

[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/andreasbackx/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland/Makefile && cd /tmp/hyprpm/hyprland && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: You need to run make all first.
make: *** [Makefile:76: installheaders] Error 1

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

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

When installing hyprland-devel the issue changes:

[v] version returned: Hyprland, built from branch HEAD at commit c5e28ebcfe00a510922779b2c568cfa52a317445  (props: bump ver 0.37.1).
Date: Sat Mar 16 14:51:49 2024
Tag: v0.37.1

flags: (if any)


[v] parsed commit c5e28ebcfe00a510922779b2c568cfa52a317445 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 c5e28ebc props: bump ver 0.37.1

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/andreasbackx/.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/local/bin/python3 (found version "3.12.2") 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 "1.9.5")
-- Found OpenGL: /usr/lib64/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'
--   Package 'hyprcursor', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  CMakeLists.txt:104 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system
Version: 1.3.2
Source dir: /tmp/hyprpm/hyprland/subprojects/wlroots
Build dir: /tmp/hyprpm/hyprland/subprojects/wlroots/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.33
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/subprojects/wlroots/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.380
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
Run-time dependency xcb-renderutil found: YES 0.3.10
Run-time dependency xcb-shm found: YES 1.13.1
Run-time dependency xcb-xfixes found: YES 1.13.1
Run-time dependency xcb-xinput found: YES 1.13.1
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: YES 23.2.4
Dependency xcb found: YES 1.13.1 (cached)
Run-time dependency xcb-composite found: YES 1.13.1
Run-time dependency xcb-ewmh found: YES 0.4.2
Run-time dependency xcb-icccm found: YES 0.4.2
Dependency xcb-render found: YES 1.13.1 (cached)
Run-time dependency xcb-res found: YES 1.13.1
Dependency xcb-xfixes found: YES 1.13.1 (cached)
Found CMake: /usr/bin/cmake (3.27.7)
Run-time dependency xcb-errors found: NO (tried pkgconfig and cmake)
Message: Required for printing X11 errors.
Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ewmh, xcb-icccm, xcb-render, xcb-res, xcb-xfixes, xcb-errors: NO
Configuring config.h using configuration
Configuring version.h using configuration
Configuring config.h using configuration
Build targets in project: 136

wlroots 0.18.0-dev

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

  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/andreasbackx/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland/Makefile && cd /tmp/hyprpm/hyprland && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: mkdir -p /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland/wlroots
mkdir -p /home/andreasbackx/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland/wlroots && cd ../../..
cd subprojects/wlroots/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland/wlroots && cd ../../../..
cp ./protocols/*-protocol.h /home/andreasbackx/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp: cannot stat './protocols/*-protocol.h': 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.

Is it expected that hyprpm update needs to be run on a fresh installation? Would it be possible to have the RPM include everything needed on Fedora?

@AndreasBackx AndreasBackx reopened this Apr 5, 2024
@vaxerski
Copy link
Member

vaxerski commented Apr 5, 2024

you're on a very old hyprland version, can you try on -git?

@gerhardadler
Copy link

I have a similar issue on OpenSUSE Tumbleweed. This is my version:

[v] version returned: Hyprland, built from branch v0.38.1-b at commit 360ede79d124ffdeebbe8401f1ac4bc0dbec2c91  (props: bump ver to 0.38.1).
Date: Sat Apr 6 14:24:13 2024
Tag:

I tried the Tumbleweed repo version first, then the newest release here.

Here is output from hyprpm -v update:

[v] version returned: Hyprland, built from branch v0.38.1-b at commit 360ede79d124ffdeebbe8401f1ac4bc0dbec2c91  (props: bump ver to 0.38.1).
Date: Sat Apr 6 14:24:13 2024
Tag: 

flags: (if any)


[v] parsed commit 360ede79d124ffdeebbe8401f1ac4bc0dbec2c91 at branch v0.38.1-b

! Cloning https://github.com/hyprwm/hyprland, this might take a moment.                                                                                                        
✔ cloned                                                                                                                                                                       
[v] git returned: Switched to a new branch 'v0.38.1-b'                                                                                                                         
branch 'v0.38.1-b' set up to track 'origin/v0.38.1-b'.
HEAD is now at 360ede79 props: bump ver to 0.38.1

✔ checked out to running ver                                                                                                                                                   
! configuring Hyprland                                                                                                                                                         
[v] setting PREFIX for cmake to /home/hyprhard/.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.12 (found version "3.12.2") 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/lib64/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'
--   Package 'hyprlang', required by 'virtual:world', not found
--   Package 'hyprcursor', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - hyprlang>=0.3.2
   - hyprcursor

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:847 (_pkg_check_modules_internal)
  CMakeLists.txt:104 (pkg_check_modules)


-- Configuring incomplete, errors occurred!

[v] meson returned: The Meson build system                                                                                                                                     
Version: 1.4.0
Source dir: /tmp/hyprpm/hyprland/subprojects/wlroots
Build dir: /tmp/hyprpm/hyprland/subprojects/wlroots/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 (SUSE Linux) 13.2.1 20240206 [revision 67ac78caf31f7cb3202177e6428a46d829b70f23]")
C linker for the host machine: cc ld.bfd 2.42.0.20240130-2
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) 2.1.1
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.7.0
Run-time dependency pixman-1 found: YES 0.43.2
Library m found: YES
Library rt found: YES
Run-time dependency wayland-protocols found: YES 1.34
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 24.0.3
Run-time dependency glesv2 found: YES 3.2
Program ./embed.sh found: YES (/tmp/hyprpm/hyprland/subprojects/wlroots/render/gles2/shaders/./embed.sh)
Dependency pixman-1 found: YES 0.43.2 (cached)
Dependency gbm found: YES 24.0.3 (cached)
Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES 
Run-time dependency libudev found: YES 255
Run-time dependency libseat found: YES 0.8.0
Build-time dependency hwdata found: YES 0.380
Found CMake: /usr/bin/cmake (3.29.0)
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: YES 1.25.0
Run-time dependency xcb found: YES 1.16.1
Run-time dependency xcb-dri3 found: YES 1.16.1
Run-time dependency xcb-present found: YES 1.16.1
Run-time dependency xcb-render found: YES 1.16.1
Run-time dependency xcb-renderutil found: YES 0.3.10
Run-time dependency xcb-shm found: YES 1.16.1
Run-time dependency xcb-xfixes found: YES 1.16.1
Run-time dependency xcb-xinput found: YES 1.16.1
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency xwayland found: YES 23.2.5
Dependency xcb found: YES 1.16.1 (cached)
Run-time dependency xcb-composite found: YES 1.16.1
Run-time dependency xcb-ewmh found: YES 0.4.2
Run-time dependency xcb-icccm found: YES 0.4.2
Dependency xcb-render found: YES 1.16.1 (cached)
Run-time dependency xcb-res found: YES 1.16.1
Dependency xcb-xfixes found: YES 1.16.1 (cached)
Run-time dependency xcb-errors found: YES 1.0.1
Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ewmh, xcb-icccm, xcb-render, xcb-res, xcb-xfixes, xcb-errors: YES 
Configuring config.h using configuration
Configuring version.h using configuration
Configuring config.h using configuration
Build targets in project: 135

wlroots 0.18.0-dev

    drm-backend     : NO
    x11-backend     : YES
    libinput-backend: YES
    xwayland        : YES
    gles2-renderer  : YES
    vulkan-renderer : NO
    gbm-allocator   : YES
    session         : YES
    xcb-errors      : YES
    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.

  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/hyprhard/.local/share/hyprpm/headersRoot#" /tmp/hyprpm/hyprland/Makefile && cd /tmp/hyprpm/hyprland && make installheaders
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing sources[v] installer returned: rm -fr /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland   
mkdir -p /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland
mkdir -p /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland/protocols
mkdir -p /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland/wlroots
mkdir -p /home/hyprhard/.local/share/hyprpm/headersRoot/share/pkgconfig
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland
cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland/wlroots && cd ../../..
cd subprojects/wlroots/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland/wlroots && cd ../../../..
cp ./protocols/*-protocol.h /home/hyprhard/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp: cannot stat './protocols/*-protocol.h': No such file or directory
make: *** [Makefile:86: 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

vaxerski commented Apr 7, 2024

The following required packages were not found:

  • hyprlang>=0.3.2
  • hyprcursor

idk is reading that hard?

@gerhardadler
Copy link

I had the Tumbleweed versions of these installed. (At least hyprcursor). Though there must be some issue with them, as installing directly from Github worked. Thanks for the pointer.

@runesign
Copy link

hi there, I found a reason which cause this bug!
because the "cmake" is not installed, I run the "hyprpm update -v", the error is returned: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━ 3 / 5 Building Hyprla[v] cmake returned: sh: line 1: cmake: command not found for me its the solution.

@runesign
Copy link

✔ checked out to running ver
! configuring Hyprland
[v] setting PREFIX for cmake to /home/andreasbackx/.local/share/hyprpm/headersRoot
[v] cmake returned: sh: line 1: cmake: command not found

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

oh found same error here in your outputs just now

@runesign
Copy link

IMO a better way is check these commands first and output the "command not found" error,
or add a line advice to use "-v/--verbose" option while occur error

@vaxerski
Copy link
Member

IIRC in 0.39 hyprpm will print if any of the three are missing as per

bool CPluginManager::hasDeps() {
std::vector<std::string> deps = {"meson", "cpio", "cmake"};
for (auto& d : deps) {
if (!execAndGet("which " + d + " 2>&1").contains("/"))
return false;
}
return true;
}

@runesign
Copy link

I'm actually using a fresh install archlinux and up to date with everything. (but not -git in AUR) hyprland-0.39.1-5, just returned failed to install headers with error code 2 if without verbose option

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

5 participants