Package Details: hyprland-git 0.44.0.r46.0baf166d-1

Git Clone URL: https://aur.archlinux.org/hyprland-git.git (read-only, click to copy)
Package Base: hyprland-git
Description: Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
Upstream URL: https://github.com/hyprwm/Hyprland
Licenses: BSD-3-Clause
Conflicts: hyprland
Provides: hyprland
Submitter: hertog
Maintainer: Vaxry (zjeffer, alba4k)
Last Packager: alba4k
Votes: 94
Popularity: 8.13
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-10-17 15:07 (UTC)

Dependencies (54)

Required by (57)

Sources (2)

Pinned Comments

zjeffer commented on 2024-07-17 16:50 (UTC) (edited on 2024-07-17 16:52 (UTC) by zjeffer)

Tips & tricks, common issues

using ccache/sccache

Precompiled headers (PCH) was enabled by default, this would most likely invalidate the compiler cache if any of the upstream header files change. To disable PCH, add the meson build option -Db_pch=false to build().

build() {
  ...
  meson setup build \
    -D b_pch=false
  ...
}

Build with specific pull requests

Use pick_mr <pull request number> at the end of prepare() to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, use

prepare() {
    ...

    pick_mr 6268
}

Enable legacy renderer

In the build() function, add -D legacy_renderer=true to meson setup

Compilation errors

If you encounter compilation errors, try the following first:

  • If errors are raised by generated source files under protocols/, such as protocols/linux-dmabuf-v1.hpp, then rebuild or install hyprwayland-scanner-git;
  • Compile with makepkg --cleanbuild.

Symbol not declared

Errors like

  • <symbol> was not declared in this scope
  • <symbol> has not been declared

are usually caused by missing headers. Please consider reporting this upstream or creating a pull request if it has not already been done.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 30 Next › Last »

alekgr commented on 2024-06-09 05:13 (UTC)

looks like hyprutils( newe repo) is needed here to build hyprland

  • The C compiler identification is GNU 14.1.1 -- The CXX compiler identification is GNU 14.1.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 -- Configuring hyprlang in Release -- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1") -- Checking for module 'hyprutils>=0.1.1' -- Package 'hyprutils', required by 'virtual:world', not found CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:634 (message): The following required packages were not found:

  • hyprutils>=0.1.1

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

-- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred

zjeffer commented on 2024-06-08 14:47 (UTC)

Since latest PKGBUILD change:

error: could not find all required packages:
    hyprwayland-scanner>=0.3.10 (wanted by: hyprland-git)

when installing/updating the package. Preferably, this package would use the hyprwayland-scanner-git package.

<deleted-account> commented on 2024-06-06 02:48 (UTC)

@electwix

Update your hyprland source code. Remove --holdver flag if you use it.

See: https://github.com/hyprwm/Hyprland/commit/098ac916a6314a2b731532e0c85f357e3cf90d2f

electwix commented on 2024-06-05 18:36 (UTC) (edited on 2024-06-05 18:38 (UTC) by electwix)

I'm getting error with cleanbuild

FAILED: subprojects/wlroots-hyprland/libwlroots.a.p/backend_drm_libliftoff.c.o 
ccache cc -Isubprojects/wlroots-hyprland/libwlroots.a.p -Isubprojects/wlroots-hyprland -I../subprojects/wlroots-hyprland -Isubprojects/wlroots-hyprland/include -I../subprojects/wlroots-hyprland/include -Isubprojects/wlroots-hyprland/protocol -Isubprojects/wlroots-hyprland/render/gles2/shaders -Isubprojects/wlroots-hyprland/backend/drm -I/usr/include/libdrm -I/usr/include/pixman-1 -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -D_POSIX_C_SOURCE=200809L -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../subprojects/wlroots-hyprland/= -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/electwix/.cache/yay/hyprland-git/src=/usr/src/debug/hyprland-git -flto=auto -fPIC -MD -MQ subprojects/wlroots-hyprland/libwlroots.a.p/backend_drm_libliftoff.c.o -MF subprojects/wlroots-hyprland/libwlroots.a.p/backend_drm_libliftoff.c.o.d -o subprojects/wlroots-hyprland/libwlroots.a.p/backend_drm_libliftoff.c.o -c ../subprojects/wlroots-hyprland/backend/drm/libliftoff.c
../subprojects/wlroots-hyprland/backend/drm/libliftoff.c: In function ‘commit’:
../subprojects/wlroots-hyprland/backend/drm/libliftoff.c:412:27: error: too many arguments to function ‘liftoff_output_apply’
  412 |                 int ret = liftoff_output_apply(crtc->liftoff, req, flags, NULL);
      |                           ^~~~~~~~~~~~~~~~~~~~
In file included from ../subprojects/wlroots-hyprland/backend/drm/libliftoff.c:2:
/usr/local/include/libliftoff.h:76:1: note: declared here
   76 | liftoff_output_apply(struct liftoff_output *output, drmModeAtomicReq *req,
      | ^~~~~~~~~~~~~~~~~~~~
[415/583] Precompiling header ../src/pch/pch.hpp
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: hyprland-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hyprland-git - exit status 4

<deleted-account> commented on 2024-06-04 00:22 (UTC)

@bmuks071

I can't reproduce it. Have you tried `makepkg --cleanbuild' or deleting source files?

bmuks071 commented on 2024-05-30 12:36 (UTC)

Been getting this issue.

==> Starting prepare()...
Submodule 'subprojects/hyprland-protocols' (https://github.com/hyprwm/hyprland-protocols) registered for path 'subprojects/hyprland-protocols'
Submodule 'subprojects/tracy' (https://github.com/wolfpld/tracy) registered for path 'subprojects/tracy'
Submodule 'subprojects/udis86' (https://github.com/canihavesomecoffee/udis86) registered for path 'subprojects/udis86'
Submodule 'subprojects/wlroots-hyprland' (https://github.com/hyprwm/wlroots-hyprland) registered for path 'subprojects/wlroots-hyprland'
Cloning into '/tmp/makepkg/hyprland-git/src/Hyprland/subprojects/hyprland-protocols'...
done.
Cloning into '/tmp/makepkg/hyprland-git/src/Hyprland/subprojects/tracy'...
done.
Cloning into '/tmp/makepkg/hyprland-git/src/Hyprland/subprojects/udis86'...
done.
Cloning into '/tmp/makepkg/hyprland-git/src/Hyprland/subprojects/wlroots-hyprland'...
done.
Submodule path 'subprojects/hyprland-protocols': checked out 'e06482e0e611130cd1929f75e8c1cf679e57d161'
error: Could not read b6ee9359b8584ed23b1d4dcc303cf60043f6f2be
fatal: Unable to checkout '37aff70dfa50cf6307b3fee6074d627dc2929143' in submodule path 'subprojects/tracy'
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: hyprland-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hyprland-git - exit status 4

<deleted-account> commented on 2024-05-20 01:48 (UTC)

@earlybird please update your local PKGBUILD file, it's probably out of sync if you're still getting the mv error.

earlybird commented on 2024-05-19 12:30 (UTC)

Working pkgbuild - please change this PKGBUILD

https://pastebin.com/NfwFhzSZ

mitch_mg2 commented on 2024-05-17 01:35 (UTC) (edited on 2024-05-17 01:37 (UTC) by mitch_mg2)

Currently cant build using paru with the following meson error:

protocols/meson.build:92:18: ERROR: File //usr/share/hyprland-protocols/protocols/hyprland-focus-grab-v1.xml does not exist.

ding4 commented on 2024-05-15 20:59 (UTC)

@Onyx0452, thanks. That was the trick. I must have had the PKGBUILD from the previous commit with the same pkgver number cached. I kept wondering why it was trying to mv that file when I could see that that line had been removed in the latest commit.