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)

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 .. 8 9 10 11 12 13 14 15 16 17 18 .. 30 Next › Last »

MikeWalrus commented on 2024-02-02 07:24 (UTC)

Now that upstream doesn't patch the soversion of wlroots anymore, we can statically link with wlroots by adding the meson option -D wlroots:default_library=static and removing $pkgdir/usr/lib in package().

ogios commented on 2024-01-31 15:48 (UTC) (edited on 2024-01-31 15:56 (UTC) by ogios)

need help here, what should i do with this

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 'wlroots' (https://gitlab.freedesktop.org/wlroots/wlroots.git) registered for path 'subprojects/wlroots'
Cloning into '/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/hyprland-protocols'...
done.
Cloning into '/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/tracy'...
done.
Cloning into '/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/udis86'...
done.
Cloning into '/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots'...
done.
Submodule path 'subprojects/hyprland-protocols': checked out '0c2ce70625cb30aef199cb388f99e19a61a6ce03'
Submodule path 'subprojects/tracy': checked out '37aff70dfa50cf6307b3fee6074d627dc2929143'
Submodule path 'subprojects/udis86': checked out '5336633af70f3917760a6d441ff02d93477b0c86'
Submodule path 'subprojects/wlroots': checked out '00b869c1a96f300a8f25da95d624524895e0ddf2'
HEAD is now at 00b869c1 backend/drm: add support for atomic tearing page-flips
/home/ogios/.cache/yay/hyprland-git/PKGBUILD: line 92: subprojects/packagefiles/wlroots-meson-build.patch: No such file or directory
==> 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

and i've searched through, no such .patch thing:

$ sudo find ~/ | grep subprojects | grep wlroots | grep meson | grep hyprland-git
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/drm/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/headless/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/libinput/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/multi/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/session/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/wayland/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/backend/x11/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/examples/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/include/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/include/wlr/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/meson_options.txt
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/protocol/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/allocator/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/gles2/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/gles2/shaders/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/pixman/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/vulkan/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/render/vulkan/shaders/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/tinywl/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/types/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/util/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/xcursor/meson.build
/home/ogios/.cache/yay/hyprland-git/src/Hyprland/subprojects/wlroots/xwayland/meson.build

bvr commented on 2024-01-31 14:35 (UTC)

need to adjust a bit after commit

probably just

sed -E -i -e "s/(soversion = .*$)/soversion = 13032/g" subprojects/wlroots/meson.build

instead of patch and

mv "$pkgdir/usr/include/wlr" "$pkgdir/usr/include/hyprland/wlroots"

in package()

<deleted-account> commented on 2024-01-26 08:34 (UTC)

@UltraBlack Yes, clang works.

But you will need libc++, since clang-16 in the repo doesn't compile hyprland with libstdc++. See https://aur.archlinux.org/packages/hyprland-git?O=70#comment-937055

<deleted-account> commented on 2024-01-26 08:31 (UTC)

It is in the dependencies, but I don't think artix report has it.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprland-git#n34

therafal commented on 2024-01-25 06:25 (UTC)

After the latest update, I get an error related to the lack of libsystemd. I'm on Artix Linux with s6 as the init, been using this package for a while without any problems. If you want to add it as a hard dep, you should at least add it to the dependencies.

meson.build:54:14: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake

UltraBlack commented on 2024-01-13 17:16 (UTC) (edited on 2024-01-13 19:17 (UTC) by UltraBlack)

could you use clang instead of gcc for compiling this package? The gcc version on the arch arm mirrors is so outdated that this isn't buildable, and for months now. Clang allegedly works. They have a guide here

I sadly haven't been able to get this to work myself, but I might be missing something Edit: No idea what it was but it's using clang now. I added the following to the meson command: CC=clang CXX=clang++ meson setup build ... -Dcpp_args=--stdlib=libstdc++ -Dc_args=-Wno-unused-command-line-argument", it's still crashing at a compiler error. Weird...

kelvie commented on 2024-01-02 18:45 (UTC)

This PKGBUILD doesn't enable the systemd meson feature, which breaks user units (such as xdg-desktop-portal) if certain environment variables aren't set inside them, such as WAYLAND_DISPLAY

From 9f342f06273b45f3a49944bbbdfb1a85c81ee96b Mon Sep 17 00:00:00 2001
From: Kelvie Wong <kelvie@kelvie.ca>
Date: Tue, 2 Jan 2024 10:41:03 -0800
Subject: [PATCH] Enable systemd build option

This sets USES_SYSTEMD which does a bunch of useful things such as set
the WAYLAND_DISPLAY and a bunch of other useful variables for user
systemd units.
---
 PKGBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 45d0852..cec33fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -109,7 +109,8 @@ build() {
     -D           b_lto=true \
     -D           b_pie=true \
     -D           default_library=shared \
-    -D           xwayland=enabled
+    -D           xwayland=enabled \
+    -D           systemd=enabled

   ln -sf wlroots build/subprojects/wlroots/include/wlr
   meson compile -C build
-- 
2.43.0


sinasina commented on 2024-01-01 19:54 (UTC)

@bvr

You are the best, thank you!

bvr commented on 2024-01-01 19:46 (UTC)

@sinasina fixed upstream