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: 93
Popularity: 6.80
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-10-17 15:07 (UTC)

Required by (56)

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

1 2 3 4 5 6 .. 30 Next › Last »

alba4k commented on 2024-10-19 20:10 (UTC)

Yes I think that's the best way to go. Weird tho, I don't remember those files being included in hl-git (checked before pushing that update and they weren't there. idk)

Radicality commented on 2024-10-19 13:51 (UTC)

Also had the same issue as ding, I solved my problem by removing hyprland-git then installing hyprland-protocols-git before reinstalling hyprland-git. Seemed like the cleanest workaround to me.

ding4 commented on 2024-10-18 15:34 (UTC)

I'm not using chaotic-aur.

I was able to solve my problem by removing the conflicting files and upgrading/installing from there. I think the issue lies in an upgrade where those hyprland-protocols files were formally a submodule (and therefore exist) and conflict with the addition of it as a dependency.

I'm assuming the issue doesn't happen from a clean install.

alba4k commented on 2024-10-18 06:12 (UTC)

Are you perchance using hyprland-git from chaotic-aur? That might be the issue

alekgr commented on 2024-10-17 21:10 (UTC)

same here. Im wonder it is still depended in pkg

makedepends=( cmake gdb git hyprwayland-scanner-git hyprland-protocols-git <----- jq make meson ninja patch pkgconf xorgproto )

ding4 commented on 2024-10-17 20:51 (UTC)

I've tried this latest version and still run into trouble with conflicting files from hyprland-protocols-git.

error: failed to commit transaction (conflicting files)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-focus-grab-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml exists in filesystem (owned by hyprland-git)
hyprland-protocols-git: /usr/share/pkgconfig/hyprland-protocols.pc exists in filesystem (owned by hyprland-git)
Errors occurred, no packages were upgraded.

I cleared caches and confirmed that the former line 90 for the hyprland-protocols-git git submodule is not present.

alekgr commented on 2024-10-17 15:03 (UTC)

@erius thank you.

@alba4k can you update pkg to remove Line 90

erius commented on 2024-10-16 22:32 (UTC) (edited on 2024-10-16 22:33 (UTC) by erius)

@alekgr If you are using yay as your AUR helper, you could run this command:

yay --editmenu -S hyprland-git

The third prompt will ask you for PKGBUILDs to edit, select hyprland-git and remove line 90.

If you are using some other AUR helper or none at all, you could just download the PKGBUILD directly from AUR and run makepkg -si